.stage-gallery{--frame-h:min(42rem, 66svh);--max-w:min(86vw, 64rem)}.stage-gallery:focus{outline:none}.stage-gallery__head{align-items:center}.stage-gallery__nav[hidden],.stage-gallery__ruler[hidden]{display:none}.stage-gallery__nav{z-index:200;pointer-events:none;position:absolute;inset:0}.stage-gallery__arrow{bottom:var(--mid,50%);border:1px solid var(--rule-strong);background:var(--paper);width:48px;height:48px;color:var(--blue);cursor:pointer;pointer-events:auto;transition:background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);border-radius:2px;place-items:center;padding:0;display:grid;position:absolute;translate:0 50%}.stage-gallery__arrow--prev{left:calc(50% - var(--edge,0px) - 24px)}.stage-gallery__arrow--next{left:calc(50% + var(--edge,0px) - 24px)}.stage-gallery__arrow--prev .arw{rotate:180deg}.stage-gallery__stage{margin-inline:calc(50% - 50vw);scroll-snap-type:x mandatory;scrollbar-width:none;align-items:flex-end;gap:clamp(.75rem,2vw,2rem);width:100vw;margin-top:clamp(1.5rem,3vw,2.5rem);padding-inline:max(1.25rem,50vw - 16rem);display:flex;position:relative;overflow-x:auto}.stage-gallery__stage::-webkit-scrollbar{display:none}.stage-gallery__stage:after{content:"";background:var(--rule-strong);height:1px;position:absolute;bottom:0;left:0;right:0}.stage-gallery__slide{z-index:1;width:min(var(--max-w), calc(var(--frame-h) * var(--ratio,.8)));aspect-ratio:var(--ratio,.8);background:var(--paper-cool);scroll-snap-align:center;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent;flex:none;display:block;position:relative;overflow:hidden}.stage-gallery__slide img{object-fit:cover;filter:saturate(.94)contrast(1.04);width:100%;height:100%;transition:scale .55s var(--ease);user-select:none;-webkit-user-drag:none;position:absolute;inset:0}.stage-gallery__slide:focus-visible{outline-offset:4px}.stage-gallery__expand{background:var(--paper);color:var(--blue);font-size:var(--t-micro);letter-spacing:.16em;text-transform:uppercase;align-items:center;gap:.6rem;padding:.65rem .85rem;font-weight:600;display:flex;position:absolute;bottom:0;right:0}.stage-gallery.is-ready .stage-gallery__stage{height:var(--frame-h);scroll-snap-type:none;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;padding:0;display:block;overflow:hidden}.stage-gallery.is-dragging .stage-gallery__stage{cursor:grabbing}.stage-gallery.is-ready .stage-gallery__slide{transform-origin:50% 100%;position:absolute;bottom:0;left:50%}.stage-gallery.is-ready .stage-gallery__slide:not(.is-active){cursor:pointer}.stage-gallery.is-dragging .stage-gallery__slide{cursor:grabbing}.stage-gallery.is-ready .stage-gallery__expand{opacity:0;transition:opacity .45s var(--ease), translate .45s var(--ease);translate:0 100%}.stage-gallery.is-ready .is-active .stage-gallery__expand{opacity:1;transition-delay:.2s;translate:0}.stage-gallery.is-dragging .stage-gallery__expand{opacity:0;transition-delay:0s}.stage-gallery__foot{justify-content:space-between;align-items:flex-end;gap:1rem 2.5rem;padding-top:1.1rem;display:flex}.stage-gallery__caption{max-width:52ch;min-height:3.2em;font-size:var(--t-body);text-wrap:pretty;line-height:1.6}.stage-gallery__ruler{border-bottom:1px solid var(--rule-strong);flex:none;display:flex}.stage-gallery__tick{cursor:pointer;background:0 0;border:0;width:24px;height:32px;padding:0;position:relative}.stage-gallery__tick:before{content:"";background:var(--rule-strong);transform-origin:50% 100%;width:1px;height:24px;transition:scale .45s var(--ease), background-color .45s var(--ease);position:absolute;bottom:0;left:50%;scale:1 .375}.stage-gallery__tick[aria-current=true]:before{background:var(--accent);scale:2 1}.stage-gallery__tick:focus-visible{outline-offset:-2px}@media (hover:hover){.stage-gallery__arrow:hover{background:var(--blue);color:var(--paper);border-color:var(--blue)}.stage-gallery__slide.is-active:hover img,.stage-gallery:not(.is-ready) .stage-gallery__slide:hover img{scale:1.035}.stage-gallery__tick:hover:before{background:var(--fg);scale:1 .67}.stage-gallery__tick[aria-current=true]:hover:before{background:var(--accent);scale:2 1}}.stage-gallery__slide.is-active:focus-visible img{scale:1.035}@media (width<=599px){.stage-gallery{--frame-h:min(92vw, 60svh);--max-w:70vw}.stage-gallery__foot{flex-direction:column;align-items:stretch}.stage-gallery__ruler{order:-1}.stage-gallery__tick{flex:1 1 0;width:auto;min-width:24px}.stage-gallery__caption{font-size:var(--t-small)}.stage-gallery__expand{padding:.55rem .7rem}.stage-gallery__arrow{width:40px;height:40px}.stage-gallery__arrow--prev{left:calc(50% - var(--edge,0px) - 20px)}.stage-gallery__arrow--next{left:calc(50% + var(--edge,0px) - 20px)}}@media (prefers-reduced-motion:reduce){.stage-gallery__slide img,.stage-gallery__expand,.stage-gallery__tick:before{transition:none!important}}.stage-gallery--headless .stage-gallery__stage{margin-top:0}
