.gallery-page{background:#070f1c;min-height:var(--gallery-height,100svh)}
.gallery-page__header{position:relative;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.5rem var(--gutter);min-height:88px}
.gallery-page__brand{display:block;width:clamp(130px,15vw,180px)}
.gallery-page__brand img{display:block;width:100%;height:auto}
.gallery-page__return{display:inline-flex;align-items:center;gap:.7rem;min-height:44px;font-size:.78rem;letter-spacing:.05em;color:#fff;transition:color .25s}
.gallery-page__return span{font-size:1.25rem}
.gallery-page__return:hover{color:var(--brass)}
.gallery-page .g3d{padding-top:1.3rem;min-height:calc(var(--gallery-height,100svh) - 88px)}
.gallery-page .g3d__head{margin-bottom:clamp(1.3rem,3vw,2rem)}
.gallery-page .g3d__head .eyebrow{margin-bottom:.7rem}
.gallery-page .g3d__head h2{font-size:clamp(2.6rem,5vw,4.4rem)}
.gallery-page .cf{height:clamp(360px,calc(var(--gallery-height,100svh) * 0.57),620px)}
@media(max-width:600px){.gallery-page__header{padding:1rem 1.25rem;min-height:76px}.gallery-page__brand{width:125px}.gallery-page__return{font-size:.7rem}.gallery-page .g3d{padding-top:1rem}.gallery-page .g3d__head{padding-inline:1.25rem}.gallery-page .cf{height:clamp(360px,calc(var(--gallery-height,100svh) * 0.55),520px)}}
@media(max-height:520px) and (orientation:landscape){.gallery-page__header{padding-block:.7rem;min-height:64px}.gallery-page .g3d__head h2{font-size:2.5rem}.gallery-page .g3d{padding-top:.5rem}}
@media(prefers-reduced-motion:reduce){.gallery-page__return{transition:none}}
/* Centre the complete gallery composition inside the viewport. */
.gallery-page__header{position:absolute;inset:0 0 auto;min-height:0;height:84px;padding:12px var(--gutter);pointer-events:none}
.gallery-page__brand{width:100px;pointer-events:auto}
.gallery-page__brand img{max-height:64px;object-fit:contain}
.gallery-page__return{position:fixed;right:24px;bottom:18px;z-index:30;pointer-events:auto;cursor:pointer!important}
.gallery-page main{min-height:var(--gallery-height,100svh)}
.gallery-page .g3d{min-height:var(--gallery-height,100svh);padding:88px 0 55px;display:flex;flex-direction:column;justify-content:center}
.gallery-page .g3d__head{text-align:center;margin-bottom:12px}
.gallery-page .g3d__head h2{max-width:none;font-size:clamp(36px,4.5vw,58px);line-height:1.05;margin:0}
.gallery-page .g3d__head .eyebrow{font-size:9px;margin-bottom:8px}
.gallery-page .cf-cats{justify-content:center;margin-top:14px}
.gallery-page .cf{height:clamp(240px,calc(var(--gallery-height,100svh) * 0.44),440px);flex-shrink:0}
.gallery-page .cf__item{width:clamp(145px,min(18vw,calc((var(--gallery-height,100svh) - 300px)*.56)),220px)}
.gallery-page .cf__cap{margin-top:8px;padding-bottom:0}
.gallery-page:has(.gallery-page__return:hover) .cursor,.gallery-page:has(.gallery-page__return:hover) .cursor-ring{visibility:hidden!important}
@media(max-width:600px){.gallery-page__header{height:74px;padding:10px 20px}.gallery-page__brand{width:84px}.gallery-page .g3d{padding:80px 0 60px}.gallery-page .g3d__head{padding-inline:16px}.gallery-page .cf-cats{flex-wrap:wrap;gap:6px}.gallery-page .cf-cat{font-size:8px;padding:7px 9px}.gallery-page .cf{height:clamp(240px,calc(var(--gallery-height,100svh) * 0.4),370px)}.gallery-page__return{right:18px;bottom:12px}}
@media(max-height:540px) and (orientation:landscape){.gallery-page .g3d{padding:64px 0 38px}.gallery-page .g3d__head .eyebrow{display:none}.gallery-page .g3d__head h2{font-size:30px}.gallery-page .cf{height:205px}.gallery-page .cf__item{width:130px}.gallery-page .cf__cap{margin-top:0}.gallery-page .cf__cap h3{font-size:20px}}
.gallery-page__return *{cursor:pointer!important}
/* A restrained sky-to-midnight field; native cursor rendering keeps the return immediate. */
.gallery-page{background:linear-gradient(180deg,#102033 0%,#0b1727 42%,#070f1c 100%);background-attachment:fixed}
.gallery-page__return,.gallery-page__return *{cursor:url('/assets/img/cursor-harmony.svg') 12 12,crosshair!important}
.gallery-page__return svg{display:block;width:28px;height:28px;color:var(--brass,#cdb384);transition:transform .35s cubic-bezier(.16,1,.3,1)}
.gallery-page__return:hover svg{transform:translateX(-3px)}
@media(prefers-reduced-motion:reduce){.gallery-page__return svg{transition:none}.gallery-page__return:hover svg{transform:none}}
/* Entry starts at the camera centre, with one clean face, and unfolds immediately. */
.gallery-page:not(.is-gallery-ready) .cf__stage{opacity:0}
.gallery-page .cf.is-gallery-entering .cf__item{box-shadow:none!important;filter:none!important;transition:none!important}
.gallery-page .cf.is-gallery-entering .cf__item::after{opacity:0!important}
.gallery-page .cf__item{box-shadow:none!important}
.gallery-page .cf__item::before,.gallery-page .cf__refl{opacity:.22}
.gallery-page .cf__stage{transition:transform .65s cubic-bezier(.16,1,.3,1),opacity .2s}

.gallery-page .r{opacity:1!important;transform:none!important}
.gallery-page__brand{width:100px}.gallery-page__brand img{max-height:none}
.gallery-page .cf__cap{height:96px;min-height:96px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.gallery-page .cf__cap h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gallery-page .cf-cats{min-height:38px}
.gallery-loading{position:absolute;inset:0;z-index:2;pointer-events:none;perspective:1250px;transition:opacity .15s ease}
.gallery-loading img{position:absolute;top:50%;left:50%;width:clamp(145px,min(18vw,calc((var(--gallery-height,100svh) - 300px)*.56)),220px);aspect-ratio:4/5;object-fit:cover;border-radius:9px;transform:translate(-50%,-54%)}
.gallery-page.is-gallery-ready .gallery-loading{opacity:0}
@media(max-width:600px){.gallery-page__brand{width:96px}.gallery-page .cf-cats{min-height:64px}}

/* Keep the viewport width stable throughout entrance and image decoding. */
.gallery-page{height:var(--gallery-height,100svh);overflow:hidden}


/* The standalone gallery owns horizontal gestures; no page pan or iOS rubber-banding. */
html:has(.gallery-page){overflow:hidden;overscroll-behavior:none}
.gallery-page,.gallery-page main,.gallery-page .g3d{overscroll-behavior:none}
.gallery-page .cf{touch-action:none}

/* Short browser windows may scroll to the caption instead of clipping it below the viewport. */
html:has(.gallery-page){overflow-x:clip;overflow-y:auto;overscroll-behavior-y:auto}
.gallery-page{height:auto;min-height:var(--gallery-height,100svh);overflow-x:clip;overflow-y:visible}
.gallery-page main,.gallery-page .g3d{overflow:visible;min-height:max(660px,var(--gallery-height,100svh));overscroll-behavior-y:auto}
.gallery-page .cf{touch-action:pan-y}
