/* The screening room keeps the gallery shell. Only the light changes. */
@font-face {
  font-family: 'Gallery Hand'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/kalam-film-label.woff2') format('woff2');
}
/* The small horizontal rule is part of the rail, never a control. Each ray
   stays inside the last button's own box, with its center clear for lettering. */
#viewing-room .exhibition-tabs { align-items: center; }
.film-nav-divider { display: block; flex: none; width: 10px; height: 1px; margin: 0 3px; border-bottom: 1px solid #96948a80; pointer-events: none; }
#viewing-room #tab-films { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: 0 0 auto; min-height: 38px; padding: 0 18px; }
#tab-films::before { content: ''; position: absolute; inset: 2px 3px; background: center / 100% 100% no-repeat url('/brand/film-sun-rays.svg'); pointer-events: none; }
#tab-films .film-nav-name { position: relative; white-space: nowrap; display: inline-block; font: 400 15px/1.15 'Gallery Hand', 'Segoe Print', cursive; transform: translateY(1px); }
html.cinema-open .film-nav-divider { border-color: #c9c6b970; }
html.cinema-open #viewing-room .exhibition-tabs button[aria-selected=false]:is(:hover,:focus-visible) { color: #fffdf5; background: #35362f; }
@media (max-width:650px) {
  #viewing-room .exhibition-tabs button { padding-inline: 10px; }
  #viewing-room #tab-films { padding-inline: 14px; min-height: 44px; }
  #tab-films .film-nav-name { font-size: 14px; }
  #tab-films::before { inset: 4px 2px; }
  .film-nav-divider { width: 8px; margin-inline: 2px; }
}
@media (max-width:360px) {
  #viewing-room .exhibition-tabs button { padding-inline: 5px; }
  #viewing-room #tab-films { padding-inline: 10px; }
  #tab-films .film-nav-name { font-size: 12.5px; }
  .film-nav-divider { width: 7px; margin-inline: 1px; }
}
@media (orientation:landscape) and (max-height:560px) { #viewing-room #tab-films { min-height: 40px; } }
@media (forced-colors:active) { .film-nav-divider { border-color: GrayText; } }
.cinema-panel { --cinema: #141512; --cinema-gutter: clamp(20px,5vw,86px); --film-headspace: calc(var(--signature-mast-height) + 76px); }
#panel-films:not([hidden]) { display:grid; }
#panel-films { box-sizing:border-box; color:#edeae1; background:var(--cinema); min-height:calc(100svh - var(--viewing-footer-height)); padding:var(--film-headspace) var(--cinema-gutter) 26px; }
#panel-films .screening-room {
  width:min(100%,1280px); margin:auto; display:grid; align-items:center;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); column-gap:clamp(24px,4vw,76px);
}
.screening-title { min-width:0; place-self:end start; padding-bottom:3px; }
#film-title { margin:0; color:#eeeae0; font:400 clamp(28px,3.1vw,54px)/1.02 var(--serif,Georgia,serif); letter-spacing:-.045em; }
#film-title span { display:block; }
#panel-films .film-list { grid-column:2; display:block; padding:0; margin:0; min-width:0; }
#panel-films .film { margin:0; width:clamp(120px,calc((100svh - var(--film-headspace) - var(--viewing-footer-height) - 28px)*.5625),min(49vw,620px)); }
#panel-films .screen {
  isolation:isolate; width:100%; aspect-ratio:9/16; position:relative; display:block; overflow:hidden;
  background:#10100e; border:0; outline:1px solid #b3ac974e;
  box-shadow:0 0 0 5px #191a16,0 0 0 6px #88847429,0 12px 36px #05050380;
}
#panel-films .screen :is(video,.reel-picture,.poster) { object-fit:contain; display:block; inset:0; width:100%; height:100%; }
#panel-films .film-toggle {
  left:auto; bottom:12px; right:12px; width:46px; height:46px; border-radius:50%;
  color:#fffdf4; background:rgba(25,24,21,.82); border:1px solid #e3ddcb96; box-shadow:0 1px 6px #0003;
}
#panel-films .film-toggle:hover { background:#12130f; }
#panel-films .film-toggle:focus-visible,html.cinema-open .exhibition-tabs button:focus-visible { outline:2px solid #f6ecd1; outline-offset:3px; }
#panel-films .film-toggle svg { width:16px; height:16px; }
#panel-films .film-status:not(:empty) { position:absolute; left:8px; bottom:8px; right:68px; width:auto; height:auto; margin:0; padding:3px 7px; clip-path:none; overflow:visible; white-space:normal; color:#fffaf1; background:#25251fe6; font:12px/1.45 var(--sans); }
html.cinema-open, html.cinema-open body,html.cinema-open .room#viewing-room { background:#141512; }
html.cinema-open .mast { background:rgba(24,25,22,.94); border-bottom-color:#b3ac971f; }
html.cinema-open .signature-logo { filter:invert(1); opacity:.92; }
html.cinema-open #viewing-room .exhibition-tabs { border:1px solid #aaa89849; background:#20211de8; color:#e6e3d9; box-shadow:none; }
html.cinema-open .exhibition-tabs button[aria-selected=true] { color:#25261e; background:#e7e4d8; }
html.cinema-open footer.viewing-footer { background:#141512; border-top-color:#afaa9626; }
html.cinema-open footer.viewing-footer .copyright { color:#b5b4aa; }
@media(min-width:651px) and (min-height:561px) and (max-width:950px) {
  #film-title { font-size:clamp(25px,3.5vw,36px); }
  #panel-films .screening-room { column-gap:20px; }
}
@media(max-width:650px) and (orientation:portrait), (min-aspect-ratio:2/3) and (max-aspect-ratio:1/1) and (max-width:1100px) {
  .cinema-panel { --film-headspace:calc(var(--signature-mast-height) + 72px); }
  #panel-films { padding:var(--film-headspace) max(18px,env(safe-area-inset-right)) 17px max(18px,env(safe-area-inset-left)); }
  #panel-films .screening-room { display:flex; flex-direction:column; gap:13px; width:100%; }
  .screening-title { place-self:auto; padding:0; text-align:center; }
  #film-title { font-size:clamp(22px,5.8vw,34px); line-height:1.05; letter-spacing:-.03em; }
  #film-title span { display:inline; }
  #panel-films .film { width:min(calc(100vw - 44px),calc(max(180px,100svh - var(--film-headspace) - var(--viewing-footer-height) - 74px)*.5625)); }
}
@media(orientation:landscape) and (max-height:560px) {
  .cinema-panel { --film-headspace:calc(var(--signature-mast-height) + 54px); }
  #panel-films { padding-bottom:10px; }
  #panel-films .film { width:calc(max(108px,100svh - var(--film-headspace) - var(--viewing-footer-height) - 12px)*.5625); }
  #panel-films .screening-title { max-width:265px; }
  #film-title { font-size:clamp(22px,3vw,34px); }
  #panel-films .film-toggle { width:40px; height:40px; right:6px; bottom:6px; }
}
@media(prefers-reduced-motion:no-preference) {
  .mast,.viewing-footer,.mast .signature-logo { transition:background-color .26s ease,border-color .26s ease,filter .26s ease; }
}

/* The screening wall receives still, pre-blurred light; only opacity changes.
   Feather the picture itself, never the title, captions, or playback button. */
#panel-films { position:relative; isolation:isolate; }
#panel-films .screening-room { position:relative; z-index:1; }
.cinema-atmosphere { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; opacity:0; transition:opacity .7s ease; }
#panel-films.has-atmosphere .cinema-atmosphere { opacity:.66; }
.cinema-atmosphere::after { content:''; position:absolute; inset:0; z-index:3; pointer-events:none; background:linear-gradient(180deg,rgba(15,16,15,.73),rgba(15,16,15,.12) 25%,rgba(15,16,15,.03) 62%,rgba(15,16,15,.52)),radial-gradient(ellipse at 54% 50%,transparent 29%,rgba(14,15,14,.37) 100%); }
.cinema-still { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; opacity:0; pointer-events:none; user-select:none; }
.cinema-still.is-visible { opacity:1; }
.cinema-still.is-entering { transition:opacity .95s ease-in-out; }
#panel-films .screen { transition:background-color .65s ease,outline-color .65s ease,box-shadow .65s ease; }
#panel-films.has-atmosphere .screen { background-color:transparent; outline-color:transparent; box-shadow:0 0 0 0 transparent; }
#panel-films.has-atmosphere .screening-title { text-shadow:0 1px 12px rgba(0,0,0,.36); }
@property --film-feather-x { syntax:'<length>'; initial-value:0px; inherits:false; }
@property --film-feather-y { syntax:'<length>'; initial-value:0px; inherits:false; }
#panel-films .screen :is(video,.reel-picture) { --film-feather-x:0px; --film-feather-y:0px; transition:--film-feather-x .65s ease,--film-feather-y .65s ease;
  --feather-x:linear-gradient(90deg,transparent 0,#000 calc(var(--film-feather-x) + .01px),#000 calc(100% - var(--film-feather-x) - .01px),transparent 100%);
  --feather-y:linear-gradient(180deg,transparent 0,#000 calc(var(--film-feather-y) + .01px),#000 calc(100% - var(--film-feather-y) - .01px),transparent 100%);
  -webkit-mask-image:var(--feather-x),var(--feather-y); -webkit-mask-composite:source-in;
  mask-image:var(--feather-x),var(--feather-y); mask-composite:intersect; }
#panel-films.has-atmosphere .screen :is(video,.reel-picture) { --film-feather-x:clamp(12px,2.1vw,29px); --film-feather-y:clamp(16px,3.5svh,36px); }
@media (max-width:650px) { #panel-films.has-atmosphere .cinema-atmosphere { opacity:.72; } }
@media (prefers-reduced-motion:reduce) { #panel-films :is(.cinema-atmosphere,.cinema-still,.screen,.screen video,.reel-picture) { transition:none; } }

/* The background is part of the composition, not a thin strip at the edge. */
#panel-films .screen .reel-picture { position:absolute; display:block; width:100%; height:100%; pointer-events:none; }
#panel-films .screen .poster { z-index:1; }
#panel-films .screen :is(.film-toggle,.film-status) { z-index:2; }
@media (max-width:650px) and (orientation:portrait), (min-aspect-ratio:2/3) and (max-aspect-ratio:1/1) and (max-width:1100px) {
  #panel-films .screening-room { gap:clamp(18px,2.7svh,32px); }
  #panel-films .film { width:min(68vw,calc(max(160px,100svh - var(--film-headspace) - var(--viewing-footer-height) - 104px)*.5625)); }
  #panel-films.has-atmosphere .screen :is(video,.reel-picture) { --film-feather-x:clamp(13px,3.5vw,21px); --film-feather-y:clamp(17px,3svh,30px); }
  #panel-films .film-toggle { bottom:8px; right:7px; }
}
