html.shared-grid-review.editorial-site-review body .shared-media-viewer {
  position:fixed !important; inset:0 !important; width:100% !important; max-width:none !important;
  height:100dvh !important; max-height:none !important; margin:0 !important; padding:64px 0 0 !important;
  box-sizing:border-box; border:0 !important; border-radius:0 !important;
  background:var(--color-paper) !important; color:var(--color-cobalt) !important;
  grid-template-rows:minmax(0,1fr) auto !important; gap:0 !important; overflow:hidden !important;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer:not([hidden]) { display:grid !important; }
html.shared-grid-review.editorial-site-review body .shared-media-viewer[hidden] { display:none !important; }
html.shared-grid-review.editorial-site-review body .shared-media-viewer::before { content:''; position:absolute; inset:63px 0 auto; border-top:1px solid var(--color-cobalt); }
html.shared-grid-review.editorial-site-review body .shared-media-viewer .shared-media-close {
  position:absolute !important; inset:10px var(--site-edge) auto auto !important;
  width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important;
  margin:0 !important; padding:0 !important; display:grid !important; place-items:center;
  border:0 !important; border-radius:0 !important; background:none !important; color:var(--color-cobalt) !important;
  font:400 28px/1 "Inter Tight",sans-serif !important; transform:none !important;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-stage,.annie-video-viewer-stage,.residency-viewer-stage,.award-film-viewer-stage) {
  display:grid !important; place-items:center; min-width:0; min-height:0; padding:24px var(--site-edge) !important; overflow:hidden;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer .annie-viewer-stage img {
  width:100% !important; height:100% !important; max-height:100% !important; max-width:100% !important;
  min-height:0 !important; object-fit:contain !important;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-video-viewer-frame,.residency-viewer-frame,.award-film-viewer-frame) {
  width:min(100%,calc((100dvh - 240px) * 16 / 9)) !important; height:auto !important; aspect-ratio:16 / 9; max-height:100%;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-footer,.residency-viewer-footer,.award-film-viewer-footer) {
  position:static !important; display:flex !important; align-items:flex-start; justify-content:space-between; gap:24px;
  padding:16px var(--site-edge) !important; border-top:1px solid var(--color-cobalt) !important;
  background:var(--color-paper) !important; color:var(--color-cobalt) !important;
  max-height:28dvh; overflow:auto; min-width:0;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(p,span,strong,small,.annie-viewer-details) {
  font:400 14px/1.4 "Inter Tight",sans-serif !important; color:var(--color-cobalt) !important; letter-spacing:0 !important;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-caption-wrap,.residency-viewer-caption) { min-width:0; max-width:70ch; }
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-controls,.residency-viewer-controls) { display:flex; flex-shrink:0; gap:24px; }
html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-controls,.residency-viewer-controls) button {
  min-height:44px; border:0 !important; padding:0 !important; border-radius:0 !important; background:none !important;
  color:var(--color-cobalt) !important; font:400 20px/1.3 "Inter Tight",sans-serif !important;
}
html.shared-grid-review.editorial-site-review body .shared-media-viewer button:focus-visible { outline:2px solid var(--color-cobalt); outline-offset:3px; }
html.shared-grid-review.editorial-site-review body .shared-info-overlay[hidden] { display:none !important; }
@media(max-width:600px) {
  html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-footer,.residency-viewer-footer,.award-film-viewer-footer) { flex-direction:column; gap:8px; }
  html.shared-grid-review.editorial-site-review body .shared-media-viewer :is(.annie-viewer-controls,.residency-viewer-controls) { align-self:flex-end; }
}

/* One drawer rhythm for reading, search, and full-size media. Display/overlay
   transitions retain the closing surface until it has left the viewport. */
@media(prefers-reduced-motion:no-preference) {
  .info-panel-shade {
    opacity:0;
    transition:opacity 750ms ease, display 750ms allow-discrete;
  }
  .info-panel-shade:not([hidden]) { opacity:1; }
  @starting-style {
    .info-panel-shade:not([hidden]) { opacity:0; }
  }
  html.shared-grid-review.editorial-site-review body :is(.shared-info-overlay,.shared-media-viewer,.search-overlay) {
    translate:100% 0 !important;
    transition:translate 750ms cubic-bezier(.22,1,.36,1), display 750ms allow-discrete, overlay 750ms allow-discrete !important;
  }
  html.shared-grid-review.editorial-site-review body :is(dialog.shared-info-overlay[open],.shared-info-overlay:not(dialog):not([hidden]),.shared-media-viewer:not([hidden]),.search-overlay.is-open) {
    translate:0 0 !important;
  }
  @starting-style {
    html.shared-grid-review.editorial-site-review body :is(dialog.shared-info-overlay[open],.shared-info-overlay:not(dialog):not([hidden]),.shared-media-viewer:not([hidden]),.search-overlay.is-open) {
      translate:100% 0 !important;
    }
  }
  html.shared-grid-review.editorial-site-review body .search-overlay {
    translate:none !important; background:transparent !important; pointer-events:none;
    transition:background 750ms ease, display 750ms allow-discrete !important;
  }
  html.shared-grid-review.editorial-site-review body .search-overlay.is-open {
    background:rgba(37,39,34,.12) !important; pointer-events:auto;
  }
  html.shared-grid-review.editorial-site-review body .search-panel {
    translate:0 100%; transition:translate 750ms cubic-bezier(.22,1,.36,1);
  }
  html.shared-grid-review.editorial-site-review body .search-overlay.is-open .search-panel { translate:0 0; }
  @starting-style {
    html.shared-grid-review.editorial-site-review body .search-overlay.is-open .search-panel { translate:0 100%; }
  }
}
@media(prefers-reduced-motion:reduce) {
  html.shared-grid-review.editorial-site-review body :is(.shared-info-overlay,.shared-media-viewer,.search-overlay) {
    translate:none !important; transition:none !important; animation:none !important;
  }
}
