/* Blocco "depth-gallery" — galleria in profondità; usa anche hscroll.css per la versione semplice (js/blocks/depth-gallery.js) */
/* ---------------- galleria in profondità (js/blocks/depth-gallery.js) ---------------- */
.lab-depth__gl, .lab-depth__label, .lab-depth__chip{ display:none; }
.lab-depth.is-3d .lab-hscroll__stage{ justify-content:flex-start; padding-top:calc(62px + 4vh); }
.lab-depth.is-3d .lab-hscroll__track{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.lab-depth.is-3d .lab-depth__gl{ display:block; position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.lab-depth.is-3d .lab-hscroll__head{ position:relative; z-index:2; pointer-events:none; }
.lab-depth.is-3d .lab-depth__label, .lab-depth.is-3d .lab-depth__chip{ display:grid; position:absolute; z-index:2; top:50%; transform:translateY(-50%); }
.lab-depth__label{ left:var(--pad); margin:0; gap:6px; font-family:var(--font-mono); max-width:min(12rem,16vw); }
.lab-depth__n{ font-size:.75rem; opacity:.7; }
.lab-depth__cap{ font-family:var(--font-serif); font-style:italic; font-size:clamp(1.1rem,1.8vw,1.5rem); line-height:1.2; }
.lab-depth__chip{ right:var(--pad); margin:0; grid-template-columns:auto auto; gap:4px 16px; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.06em; }
.lab-depth__chip i{ grid-column:1 / 3; width:40px; height:40px; margin-bottom:8px; transition:background .6s; }
.lab-depth__chip dt{ opacity:.6; } .lab-depth__chip dd{ margin:0; }
.lab-depth.swap .lab-depth__label, .lab-depth.swap .lab-depth__chip dd{ animation:labDepthIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes labDepthIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.lab-depth.swap .lab-depth__label{ animation-name:labDepthInL; }
@keyframes labDepthInL{ from{ opacity:0; transform:translateY(calc(-50% + 10px)); } to{ opacity:1; transform:translateY(-50%); } }
@media (max-width:760px){
  .lab-depth.is-3d .lab-depth__label, .lab-depth.is-3d .lab-depth__chip{ top:auto; bottom:74px; transform:none; }
  .lab-depth.swap .lab-depth__label{ animation-name:labDepthIn; }
  .lab-depth__chip{ font-size:.62rem; gap:2px 10px; }
  .lab-depth__chip i{ width:26px; height:26px; margin-bottom:4px; }
}


@media (max-width:760px){
  .lab-depth__label{ max-width:52vw; }
}
