/* V13 — scoped gallery, inspired by the reference's stacked work slider. */
#gallery{position:relative;background:#000;color:#f8f4f0;isolation:isolate;width:100%;font-family:light-font,Arial,sans-serif;overflow:clip}
#gallery .dd-gallery-intro{min-height:43svh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10svh 5vw 5svh;box-sizing:border-box;text-align:center}
#gallery .dd-gallery-intro h2{font-size:clamp(68px,16vw,250px);line-height:.85;letter-spacing:-.055em;color:#d60407;font-weight:700;margin:0}
#gallery .dd-gallery-intro p{font-size:clamp(15px,1.35vw,24px);color:#d60407;margin:1.4rem 0 0;letter-spacing:.025em}
#gallery .dd-gallery-track{position:relative;height:400svh}
#gallery .dd-gallery-stage{position:sticky;top:0;height:100svh;width:100%;overflow:hidden;isolation:isolate;background:#080000}
#gallery .dd-gallery-scene{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:5vw;box-sizing:border-box;padding:15svh 8vw 14svh;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden}
#gallery .dd-gallery-scene:first-child{opacity:1;visibility:visible}
#gallery .dd-gallery-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.26;filter:brightness(.6) saturate(.8);z-index:-2;transform:scale(1.08)}
#gallery .dd-gallery-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#000e 0%,#17000070 52%,#0008 100%),linear-gradient(0deg,#000 0%,transparent 20%,transparent 76%,#000b 100%);z-index:-1;pointer-events:none}
#gallery .dd-gallery-copy{position:relative;z-index:3;min-width:0;transform:translateY(var(--dd-copy-y,0px));opacity:var(--dd-copy-opacity,1)}
#gallery .dd-gallery-copy small{font-size:clamp(12px,1vw,17px);letter-spacing:.15em;color:#fff;display:block;margin-bottom:1.1rem}
#gallery .dd-gallery-copy h3{font-size:clamp(44px,6.1vw,112px);line-height:.93;letter-spacing:-.05em;font-weight:700;color:#d60407;margin:0 0 1.2rem;text-wrap:balance}
#gallery .dd-gallery-copy p{font-size:clamp(16px,1.45vw,25px);line-height:1.4;color:#fff;max-width:33ch;margin:0}
#gallery .dd-gallery-media{position:relative;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;transform:translateY(var(--dd-media-y,0%)) scale(var(--dd-media-scale,1));transform-origin:center 65%;will-change:transform;gap:1vw}
#gallery .dd-gallery-frame{position:relative;overflow:hidden;background:#160707;box-shadow:0 24px 70px #0009;flex:none;margin:0}
#gallery .dd-gallery-frame video,#gallery .dd-gallery-frame img{display:block;width:100%;height:100%;object-fit:cover}
#gallery .dd-gallery-frame--main{width:min(100%,36vw,49svh);height:min(100%,72svh);aspect-ratio:9/16}
#gallery .dd-gallery-scene--hair .dd-gallery-frame--main{width:min(100%,39vw,53svh);aspect-ratio:3/4}
#gallery .dd-gallery-scene--nails{grid-template-columns:1fr 1.4fr;gap:3vw}
#gallery .dd-gallery-scene--nails .dd-gallery-frame--main{width:min(48%,24vw,38svh);height:min(86%,60svh);z-index:2;transform:translateX(-10%)}
#gallery .dd-gallery-frame--small{position:absolute;width:45%;height:42%;z-index:1}
#gallery .dd-gallery-frame--small:nth-of-type(2){right:0;top:0}
#gallery .dd-gallery-frame--small:nth-of-type(3){right:0;bottom:0}
#gallery .dd-gallery-scene--skin{grid-template-columns:1.1fr 1fr}
#gallery .dd-gallery-scene--skin .dd-gallery-copy{grid-column:2;grid-row:1}
#gallery .dd-gallery-scene--skin .dd-gallery-media{grid-column:1;grid-row:1}
#gallery .dd-gallery-scene--skin:after{background:linear-gradient(270deg,#000e 0%,#17000070 52%,#0008 100%),linear-gradient(0deg,#000 0%,transparent 20%,transparent 76%,#000b 100%)}
#gallery .dd-gallery-scene--salon .dd-gallery-bg{opacity:.46;filter:brightness(.66)}
#gallery .dd-gallery-scene--salon .dd-gallery-frame--main{width:min(100%,36vw,46svh);height:min(100%,69svh)}
#gallery .dd-gallery-progress{position:absolute;z-index:9;top:13svh;right:5vw;display:flex;align-items:center;gap:12px;color:#fff;font-size:12px;letter-spacing:.14em;pointer-events:none}
#gallery .dd-gallery-progress svg{width:62px;height:62px;transform:rotate(-90deg)}
#gallery .dd-gallery-progress circle{fill:none;stroke:#ffffff35;stroke-width:1.5}
#gallery .dd-gallery-progress .dd-gallery-ring{stroke:#d60407;stroke-dasharray:1;stroke-dashoffset:1}
#gallery .dd-gallery-progress strong{font-weight:400}
#gallery .dd-gallery-end{min-height:16svh;background:#000}
/* Static fallback and reduced motion. */
#gallery:not(.dd-gallery-ready) .dd-gallery-track{height:auto}
#gallery:not(.dd-gallery-ready) .dd-gallery-stage{position:relative;height:auto;overflow:visible}
#gallery:not(.dd-gallery-ready) .dd-gallery-scene{position:relative;opacity:1;visibility:visible;min-height:90svh}
#gallery:not(.dd-gallery-ready) .dd-gallery-progress{display:none}
@media(max-width:800px){
 #gallery .dd-gallery-intro{min-height:32svh;padding-top:8svh}
 #gallery .dd-gallery-intro h2{font-size:19vw}
 #gallery .dd-gallery-intro p{font-size:14px}
 #gallery .dd-gallery-scene,#gallery .dd-gallery-scene--nails,#gallery .dd-gallery-scene--skin{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:2.4svh;align-content:center;padding:14svh 7vw 13svh}
 #gallery .dd-gallery-scene .dd-gallery-copy{grid-row:2;grid-column:1}
 #gallery .dd-gallery-scene .dd-gallery-media{grid-row:1;grid-column:1;min-height:0}
 #gallery .dd-gallery-copy h3{font-size:clamp(34px,10vw,65px);margin-bottom:.5rem}
 #gallery .dd-gallery-copy p{font-size:clamp(14px,3.8vw,19px);max-width:100%;line-height:1.3}
 #gallery .dd-gallery-copy small{font-size:10px;margin-bottom:.5rem}
 #gallery .dd-gallery-frame--main,#gallery .dd-gallery-scene--hair .dd-gallery-frame--main,#gallery .dd-gallery-scene--salon .dd-gallery-frame--main{width:auto;max-width:92%;height:100%;max-height:47svh}
 #gallery .dd-gallery-scene--nails .dd-gallery-frame--main{width:48%;height:86%;max-height:42svh;transform:translateX(-24%)}
 #gallery .dd-gallery-frame--small{width:42%;height:44%}
 #gallery .dd-gallery-progress{top:12svh;right:5vw;font-size:10px;gap:5px}
 #gallery .dd-gallery-progress svg{width:38px;height:38px}
 #gallery .dd-gallery-scene:after,#gallery .dd-gallery-scene--skin:after{background:linear-gradient(0deg,#000 0%,#000c 24%,#0004 70%,#000b 100%)}
}
@media(max-width:800px) and (max-height:650px){#gallery .dd-gallery-scene{gap:1.5svh;padding-top:14svh;padding-bottom:12svh}#gallery .dd-gallery-copy h3{font-size:clamp(28px,8.5vw,45px)}#gallery .dd-gallery-copy p{font-size:13px}#gallery .dd-gallery-copy small{margin-bottom:.3rem}}
