/* Applied after V9 content-global-layout and the source gallery stylesheet.
   These stages keep their own source geometry rather than the generic 4:3
   gallery raster frame. Official provider stages have their own scoped rule. */
@media (min-width: 761px) {
  .continuous-edition .related-case-media > .case-media > .case-plate:is(.op-motion-stage,.video-stage) {
    aspect-ratio: var(--primary-media-aspect-ratio, 16 / 9) !important;
  }
  /* Preserve the original demo's reviewed reserved-height behavior. */
  .continuous-edition .related-case-media > .case-media > .case-plate[data-original-demo] {
    width: min(100%, 960px) !important;
    max-width: 100% !important;
    height: clamp(620px, 195vw, 760px) !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  .continuous-edition .related-case-media > .case-media > .case-plate[data-original-demo] > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
