/* Gallery only. Static content is the default; motion is an enhancement. */
body [data-gallery-cinema] {display:block!important;padding:var(--gallery-header-height,120px) 0 0!important;background:#080808!important;isolation:isolate;overflow:visible!important;clip-path:none!important;}
[data-gallery-cinema] > .section-border {display:none!important;}
body:has([data-gallery-cinema]) :is(#siteWrapper,#page,#page-regions,#page-regions > .region) {overflow:visible!important;}
[data-gallery-cinema] > .content-wrapper {position:relative;z-index:2;padding:clamp(18px,3vw,52px)!important;width:100%!important;max-width:none!important;box-sizing:border-box;overflow:clip;background:#080808;}
[data-gallery-cinema] .content {width:100%!important;}
[data-gallery-cinema] [data-gallery-image] {position:absolute;inset:0;display:block;width:100%;height:100%;cursor:zoom-in;}
[data-gallery-cinema] [data-gallery-image]:focus-visible {outline:3px solid #f5e8cf;outline-offset:-5px;}
[data-gallery-cinema] .gallery-grid-item {opacity:1!important;transition:none!important;}
[data-gallery-cinema] .gallery-grid-item-wrapper {position:relative;overflow:hidden;opacity:1!important;animation:none!important;}
[data-gallery-hero-track] {position:relative;z-index:1;background:#080808;}
[data-gallery-hero-stage] {position:relative;background:#080808;overflow:hidden;}
[data-gallery-title] {position:relative;padding:10svh 5vw;box-sizing:border-box;text-align:center;color:#fff8ee;}
[data-gallery-title] .gallery-cinema-title {margin:0!important;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:clamp(56px,9.2vw,190px)!important;font-weight:600!important;line-height:1.03!important;letter-spacing:-.055em!important;color:#fff8ee!important;text-align:center!important;max-width:100%;margin-inline:auto!important;text-wrap:balance;}
[data-gallery-hero-photo] {position:relative!important;width:100%!important;height:calc(100svh - var(--gallery-header-height,120px))!important;min-height:240px;margin:0!important;padding:0!important;opacity:1!important;transform:none!important;}
[data-gallery-hero-photo] .gallery-grid-item-wrapper {position:absolute!important;inset:0!important;padding:0!important;width:100%!important;height:100%!important;clip-path:none!important;}
[data-gallery-hero-photo] img {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
/* Native pinning stays synchronized with compositor scrolling. */
[data-gallery-cinema][data-gallery-motion] [data-gallery-hero-track] {height:420svh;}
[data-gallery-cinema][data-gallery-motion] [data-gallery-hero-stage] {position:sticky;top:var(--gallery-header-height,120px);width:100%;height:calc(100svh - var(--gallery-header-height,120px));contain:paint;isolation:isolate;}
[data-gallery-motion] [data-gallery-title] {position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:5vw;opacity:1;will-change:transform,opacity;pointer-events:none;}
[data-gallery-motion] [data-gallery-hero-photo] {position:absolute!important;inset:0!important;height:100%!important;min-height:0;opacity:0!important;will-change:opacity;}
[data-gallery-motion] [data-gallery-hero-photo] img {inset:auto!important;left:0!important;top:0!important;height:100%!important;object-position:center top!important;transform-origin:0 0;transform:none!important;will-change:transform;}
html.gallery-viewer-open {overflow:hidden;}
dialog.gallery-viewer {position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;border:0;padding:0;background:rgba(12,13,12,.98);color:#fff8ee;box-sizing:border-box;overflow:hidden;}
dialog.gallery-viewer::backdrop {background:rgba(0,0,0,.8);}
.gallery-viewer[open] {display:grid;grid-template-rows:64px minmax(0,1fr) 48px;}
.gallery-viewer .gallery-toolbar {display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 18px;padding-top:max(8px,env(safe-area-inset-top));}
.gallery-viewer :is(button,a) {display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:12px;border:1px solid #ffffff30;border-radius:50%;color:#fff8ee;background:#ffffff08;box-sizing:border-box;cursor:pointer;}
.gallery-viewer :is(button,a):hover {background:#ffffff20;}
.gallery-viewer :is(button,a):focus-visible {outline:2px solid #f5dbaa;outline-offset:3px;}
.gallery-viewer svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;}
.gallery-viewer .gallery-full-stage {position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:8px 80px;}
.gallery-viewer .gallery-full-image {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain!important;object-position:center!important;touch-action:pan-y pinch-zoom;}
.gallery-viewer .gallery-step {position:absolute;top:50%;transform:translateY(-50%);}
.gallery-viewer .gallery-prev {left:16px;}.gallery-viewer .gallery-next {right:16px;}
.gallery-viewer .gallery-count {text-align:center;align-self:center;font:14px/1.4 sans-serif;color:#d9d3c8;}
@media(max-width:899px){
 [data-gallery-cinema][data-gallery-motion] [data-gallery-hero-track] {height:380svh;}
 [data-gallery-title] .gallery-cinema-title {font-size:clamp(48px,13vw,110px)!important;max-width:100%;}
 [data-gallery-cinema] > .content-wrapper {padding:16px!important;}
 .gallery-viewer .gallery-full-stage {padding:6px 12px 58px;}
 .gallery-viewer .gallery-step {top:auto;bottom:0;transform:none;}
 .gallery-viewer .gallery-prev {left:calc(50% - 56px);}.gallery-viewer .gallery-next {right:calc(50% - 56px);}
}
@media(prefers-reduced-motion:reduce),print{
 [data-gallery-cinema] [data-gallery-hero-track] {height:auto!important;}
 [data-gallery-cinema] [data-gallery-hero-stage] {position:relative!important;top:0!important;height:auto!important;transform:none!important;}
 [data-gallery-cinema] [data-gallery-title] {position:relative!important;opacity:1!important;transform:none!important;}
 [data-gallery-cinema] [data-gallery-hero-photo] {position:relative!important;opacity:1!important;height:70svh!important;}
 [data-gallery-cinema] .gallery-grid-item,[data-gallery-hero-photo] img {transform:none!important;}
 [data-gallery-cinema] [data-gallery-hero-photo] img {height:100%!important;}
}
/* Gallery alone: one stable dark surface behind every navigation state. */
body:has([data-gallery-cinema]) #header {background:#111110!important;color:#fff8ee!important;--di-nav-solid:#111110!important;--di-nav-glass:#111110!important;}
body:has([data-gallery-cinema]) #header::before,
body:has([data-gallery-cinema]) #header .header-background {background:#111110!important;opacity:1!important;}
body:has([data-gallery-cinema]) #header :is(.header-title-text a,.header-nav-item a,.header-actions a,.header-burger-btn) {color:#fff8ee!important;}
body:has([data-gallery-cinema]) #header .icon {fill:currentColor!important;}
body:has([data-gallery-cinema]) #header :is(.top-bun,.patty,.bottom-bun) {background:#fff8ee!important;}
body:has([data-gallery-cinema]) .header-menu {background:#111110!important;color:#fff8ee!important;}
body:has([data-gallery-cinema]) .header-menu a {color:#fff8ee!important;}

[data-gallery-title] .gallery-cinema-title > span {display:block;}

[data-gallery-title] .gallery-cinema-title > span:last-child {font-size:.45em;line-height:1.2;letter-spacing:.02em;font-weight:400;margin-top:.42em;}
body:has([data-gallery-cinema]) #header::before {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
/* Old engines that fail to pin fall back to the bounded translated stage. */
[data-gallery-motion][data-gallery-pin-fallback] [data-gallery-hero-stage] {position:absolute;top:0;left:0;}
