  .views-container{
    position:relative;
    width:100%;
    min-height:400px;
  }
  .view-layer{
    position:absolute;
    top:0;left:0;right:0;
    width:100%;
    opacity:0;
    visibility:hidden;
    transform:translateY(20px) scale(0.98);
    transition:opacity var(--dur-slow) var(--ease-out),
              visibility var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
    pointer-events:none;
  }
  .view-layer.active{
    position:relative;
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
    pointer-events:auto;
    z-index:10;
  }
  .gallery-view{
    width:100%;padding:var(--sp-4) 0;
    position:relative;
  }
  .gallery-carousel{
    width:100%;
    max-width:1100px;
    height:clamp(300px,55vh,520px);
    perspective:1800px;
    perspective-origin:center 40%;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto;
  }
  .gallery-3d{
    width:100%;height:100%;
    position:relative;
    transform-style:preserve-3d;
    will-change:transform;
  }
  .gallery-cell{
    position:absolute;
    width:clamp(180px,20vw,260px);
    height:clamp(260px,30vw,380px);
    left:50%;top:50%;
    margin-left:calc(clamp(180px,20vw,260px)/-2);
    margin-top:calc(clamp(260px,30vw,380px)/-2);
    border-radius:var(--r-lg);
    overflow:hidden;
    box-shadow:0 8px 32px rgba(82,56,110,0.5);
    backface-visibility:visible;
    cursor:pointer;
    transition:transform 0.3s var(--ease-bounce),box-shadow 0.3s ease,opacity 0.3s ease,filter 0.3s ease;
    border:1px solid var(--white-08);
  }
  .gallery-cell:hover{
    box-shadow:0 12px 48px rgba(82,56,110,0.4);
    z-index:20;
    border-color:var(--ring);
    filter:brightness(1.15);
  }
  .gallery-cell img{width:100%;height:100%;object-fit:cover;display:block}
  .gallery-cell .cell-overlay{
    position:absolute;bottom:0;left:0;right:0;
    padding:1rem;
    background:linear-gradient(to top,rgba(0,0,0,0.9) 0%,transparent 100%);
    opacity:0;
    transform:translateY(8px);
    transition:all 0.3s var(--ease-out);
  }
  .gallery-cell:hover .cell-overlay{opacity:1;transform:translateY(0)}
  .cell-title{font-size:0.82rem;font-weight:600;color:#ffffff}
  .cell-tag{font-size:0.6rem;font-family:'Baloo 2', cursive;letter-spacing:0.12em;text-transform:uppercase;color:rgba(255,255,255,0.78)}
  @keyframes cellIn {
    from{opacity:0;}
    to{opacity:1;}
  }
  .gallery-cell{animation:cellIn 0.6s var(--ease-out) both;}

  .gallery-actions{
    position:absolute;
    top:var(--sp-2);right:var(--sp-2);
    display:flex;gap:var(--sp-1);
    z-index:10;
  }
  .gallery-btn{
    display:flex;align-items:center;justify-content:center;
    width:38px;height:38px;border-radius:50%;
    background:var(--card);
    border:var(--solid);
    color:var(--text-soft);
    cursor:pointer;
    box-shadow:var(--shadow-md);
    transition:transform var(--dur-fast) var(--ease-bounce),background var(--dur-base) var(--ease-out),color var(--dur-base) var(--ease-out);
  }
  .gallery-btn:hover{transform:translateY(-2px) scale(1.05);background:var(--lav);color:var(--promo-text);}
  .gallery-btn .ico{width:17px;height:17px;}

  .gallery-carousel{position:relative;cursor:grab;}
  .gallery-carousel:active{cursor:grabbing;}

  .gallery-info{
    display:flex;align-items:center;gap:1.5rem;
    padding:0.75rem 1.5rem;
    background:var(--card-soft);
    border:var(--solid);
    border-radius:var(--r-pill);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    margin-top:var(--sp-8);
    justify-content:center;
  }
  .gallery-counter{font-size:0.72rem;font-family:'Quicksand', sans-serif;color:var(--text-faint);letter-spacing:0.05em}
  @keyframes counterPop{
    0%{transform:scale(1);}
    40%{transform:scale(1.35) rotate(-4deg);}
    100%{transform:scale(1) rotate(0);}
  }
  .gallery-counter.counter-pop{animation:counterPop 0.45s var(--ease-bounce) both;}
  .gallery-current{text-align:center}
  .gallery-current-title{display:block;font-size:0.85rem;font-weight:600;color:var(--text)}
  .gallery-current-sub{display:block;font-size:0.65rem;font-family:'Quicksand', sans-serif;color:var(--text-soft);letter-spacing:0.08em;text-transform:uppercase;margin-top:0.1rem}

  @media (max-width:760px){
    .gallery-carousel{height:clamp(240px,45vh,400px)}
    .gallery-info{gap:0.75rem;padding:0.5rem 1rem}
    .view-controls{gap:var(--sp-1)}
    .view-btn span{display:none}
    .view-btn{padding:var(--sp-2) var(--sp-3)}
    .gallery-actions{top:var(--sp-1);right:var(--sp-1)}
    .gallery-btn{width:34px;height:34px}
  }
  @media (max-width:480px){
    .gallery-carousel{height:clamp(200px,35vh,300px)}
    .gallery-btn{width:30px;height:30px}
  }
  @media (max-width:600px) and (pointer:coarse){
    .gallery-carousel{
      height:auto;
      perspective:none;
      overflow-x:auto;
      overflow-y:hidden;
      scroll-snap-type:x mandatory;
      padding:var(--sp-2) var(--sp-2) var(--sp-4);
      -webkit-overflow-scrolling:touch;
    }
    .gallery-carousel::-webkit-scrollbar{height:5px}
    .gallery-carousel::-webkit-scrollbar-thumb{background:var(--lav);border-radius:99px}
    .gallery-carousel::-webkit-scrollbar-track{background:transparent}
    .gallery-3d{
      display:flex;
      transform:none !important;
      flex-wrap:nowrap;
      gap:var(--sp-3);
      align-items:stretch;
      width:max-content;
    }
    .gallery-cell{
      position:relative;
      left:auto !important;
      top:auto !important;
      margin:0 !important;
      width:min(78vw,300px);
      height:clamp(260px,48vh,400px);
      flex:none;
      transform:none !important;
      scroll-snap-align:center;
    }
    .gallery-cell img{object-fit:cover}
    .gallery-cell .cell-overlay{opacity:1;transform:translateY(0)}
  }
  .gallery-view:fullscreen{
    background:var(--bg);
    display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    width:100%;
  }
  .gallery-view:fullscreen .gallery-carousel{
    max-width:none;
    height:clamp(320px,55vh,540px);
  }
