/* Shared video and image viewing on classic, motion, and case pages. */
html:has(.portfolio-dialog[open]){overflow:hidden}
dialog.portfolio-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;border:0;max-width:none;max-height:calc(100dvh - 20px);overflow:auto;box-shadow:none;background:transparent;color:#faf7ff}
dialog.portfolio-dialog::backdrop{background:#0a0711f5}
dialog.portfolio-dialog a{color:#ebc9ff;text-underline-offset:.22em}
dialog#player.portfolio-dialog{width:min(1450px,calc(100% - 28px),calc((100dvh - 110px)*16/9));}
.portfolio-dialog .media-top{display:flex;justify-content:flex-end;margin:0 0 .2rem}
.portfolio-dialog button{background:#21172a;color:#fff;border:1px solid #b88ed26b;border-radius:99px;min-width:44px;min-height:44px;cursor:pointer}
.portfolio-dialog button:disabled{opacity:.4;cursor:default}
.portfolio-dialog button[hidden]{display:none}
.portfolio-dialog .media-close{font:300 1.75rem/1 system-ui,sans-serif}
#video-frame iframe{width:100%;display:block;border:0;aspect-ratio:16/9;background:#100d16}
.portfolio-dialog .media-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem .85rem;padding:.65rem .1rem}
.portfolio-dialog .media-meta h2{margin:0;font:650 1rem/1.35 system-ui,sans-serif}
.portfolio-dialog .media-meta a{font-size:.82rem}
dialog#image-viewer.portfolio-dialog{width:min(1840px,calc(100% - 24px));background:transparent}
.portfolio-dialog .media-image-figure{margin:0}
.portfolio-dialog #gallery-large{display:block;width:100%;height:calc(100dvh - 145px);max-height:none;object-fit:contain;background:#120d18}
.portfolio-dialog .media-img-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.4rem 1rem;padding:.4rem 0}
.portfolio-dialog .media-img-controls div{display:flex;align-items:center;gap:.45rem}
.portfolio-dialog #image-position,.portfolio-dialog #image-status{font-size:.78rem;color:#dbc5e5}
.portfolio-dialog .media-img-controls a{font-size:.82rem}
.portfolio-dialog .media-meta p{margin:0}
.motion-screening{padding-block:clamp(3.5rem,7vw,6rem)}
.motion-screening h2{font:400 clamp(2.3rem,5.3vw,5rem)/1.05 var(--display);margin:.24em 0 .32em}
.motion-screening>p:not(.kicker){color:var(--muted);max-width:44ch}
.motion-screening .reel-track{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.motion-screening .reel-link{display:block;text-decoration:none}
.motion-screening .reel-image{position:relative;display:block;overflow:hidden;background:#291d33}
.motion-screening .reel-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.motion-screening .reel-copy,.motion-screening .reel-label,.motion-screening .reel-label strong,.motion-screening .reel-label small{display:block}
.motion-screening .reel-label{padding:.5rem 0}
.motion-screening .reel-label small,.motion-screening .reel-kicker{font-size:.79rem;color:var(--muted);line-height:1.45;margin:.2rem 0}
.motion-screening .reel-no{display:none}
.motion-screening .reel-play{position:absolute;right:.65rem;bottom:.65rem;padding:.35rem .52rem;border-radius:100%;background:#150f1feb;color:#fff}
.journal-tiles article .journal-site{margin-inline-end:.75rem}
.journal-tiles a[data-gallery],.visual-cell[data-gallery]{cursor:zoom-in}
@media(max-width:630px){.motion-screening .reel-track{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-dialog #gallery-large{height:calc(100dvh - 159px)}}
.project-hero figure>a{display:block;height:100%;cursor:zoom-in}
