/* Native modal dialog keeps keyboard focus inside the enlarged poster. */
body.sg-poster-open{overflow:hidden}
dialog.sg-poster-lightbox{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;padding:24px;background:#141414f5;color:#fff;overflow:hidden;font-family:var(--sans,'DM Sans',Arial,sans-serif)}
dialog.sg-poster-lightbox::backdrop{background:#141414e8}
.sg-poster-lightbox .sg-poster-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:44px 0 12px}
.sg-poster-lightbox figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:100%;max-height:100%;margin:0}
.sg-poster-lightbox figure img{display:block;width:auto;height:auto;max-width:calc(100vw - 64px);max-height:calc(100vh - 145px);max-height:calc(100dvh - 145px);object-fit:contain;margin:0}
.sg-poster-lightbox figure img[hidden]{display:none}
.sg-poster-lightbox figcaption{color:#fff;font-size:14px;line-height:1.5;text-align:center;margin:0}
.sg-poster-lightbox .sg-poster-close{position:absolute;right:0;top:0;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:44px;min-width:100px;padding:8px 12px;border:1px solid #ffffff70;background:transparent;color:#fff;font:500 15px/1.5 var(--sans,'DM Sans',Arial,sans-serif);cursor:pointer}
.sg-poster-lightbox .sg-poster-close span{font-size:26px;line-height:1}
.sg-poster-lightbox .sg-poster-close:hover{background:#ffffff18}
.sg-poster-lightbox .sg-poster-close:focus-visible{outline:2px solid #fff;outline-offset:4px}
.sg-poster-lightbox .sg-poster-status{position:absolute;top:50%;left:0;right:0;text-align:center;font-size:15px;line-height:1.6;margin:0;padding:0 20px;pointer-events:none}
.sg-poster-lightbox .sg-poster-status:empty{display:none}
@media(max-width:540px){
 dialog.sg-poster-lightbox{padding:16px}
 .sg-poster-lightbox .sg-poster-stage{padding-top:50px}
 .sg-poster-lightbox figure img{max-width:calc(100vw - 32px);max-height:calc(100vh - 145px);max-height:calc(100dvh - 145px)}
 .sg-poster-lightbox figcaption{font-size:13px;max-width:calc(100vw - 40px)}
}
