/* Scoped to film dialogs; gallery, membership and order screens keep their layout. */
#modal.film-screen{
 box-sizing:border-box;width:min(1180px,calc(100vw - 24px));max-width:1180px;
 max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);
 padding:0;overflow:hidden;border:3px double #b9aa8b;
 background:linear-gradient(145deg,#211e19,#0d0e0c);
}
#modal.film-screen #modal-content{
 box-sizing:border-box;padding:18px 20px 22px;overflow:auto;overscroll-behavior:contain;
 max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);scrollbar-gutter:stable;
}
#modal.film-screen .modal-close{
 position:absolute;inset:8px 10px auto auto;z-index:10;width:44px;height:44px;
 display:grid;place-items:center;padding:0;border:1px solid #a69370;border-radius:50%;
 background:#171612;color:#f4e5c7;font:28px/1 Georgia,serif;box-shadow:0 2px 12px #0008;
}
#modal.film-screen #modal-content>.eyebrow{
 margin:0 50px 6px 0;font-size:10px;line-height:1.5;letter-spacing:.1em;overflow-wrap:anywhere;
}
#modal.film-screen h2{
 margin:0 50px 14px 0;font-size:clamp(23px,3vw,36px);line-height:1.15;overflow-wrap:anywhere;
}
.burn-film-stage{
 --film-display-ratio:1.777777778;
 position:relative;box-sizing:border-box;aspect-ratio:var(--film-display-ratio);
 width:min(100%,calc((100vh - 160px) * var(--film-display-ratio)));
 width:min(100%,calc((100dvh - 160px) * var(--film-display-ratio)));
 margin:0 auto 16px;overflow:hidden;background:#060707;
 outline:1px solid #96805a66;box-shadow:0 12px 34px #0007;
}
#modal.film-screen .burn-film-stage>video,
#modal.film-screen .burn-film-stage>iframe{
 display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;
 aspect-ratio:auto;object-fit:contain;object-position:center;background:#060707;
}
#modal.film-screen #modal-content>p:not(.eyebrow){
 max-width:78ch;margin:12px auto 0;font-size:clamp(14px,1.2vw,16px);line-height:1.65;
 white-space:pre-line;overflow-wrap:anywhere;
}
#modal.film-screen .server-video:fullscreen{width:100%;height:100%;object-fit:contain;background:#000;}
@media(max-width:760px) and (orientation:portrait){
 #modal.film-screen{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);}
 #modal.film-screen #modal-content{padding:16px 12px 20px;max-height:calc(100dvh - 18px);}
 .burn-film-stage{--film-display-ratio:var(--film-source-ratio,1.777777778);}
}
@media(max-height:500px) and (orientation:landscape){
 #modal.film-screen #modal-content{padding-top:10px;}
 #modal.film-screen #modal-content>.eyebrow{font-size:9px;margin-bottom:3px;}
 #modal.film-screen h2{font-size:23px;margin-bottom:10px;}
 .burn-film-stage{width:min(100%,calc((100dvh - 115px) * var(--film-display-ratio)));}
}
