/* XMS 1.4.24 — MOBILE ONLY: use the actual video proportions instead of the
 * desktop 800px banner height. Keep the video flush below the site header.
 * Native MP4 metadata can update --xms-video-mobile-aspect (default 16:9). */
@media screen and (max-width: 767px) {
  body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > section.xms-top-video {
    --xms-video-h: auto !important;
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    height: 56.25vw !important; /* fallback for older mobile browsers */
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  @supports (aspect-ratio: 16 / 9) {
    body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > section.xms-top-video {
      height: auto !important;
      aspect-ratio: var(--xms-video-mobile-aspect, 16 / 9) !important;
    }
  }
  body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > section.xms-top-video > .xms-top-video-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > section.xms-top-video > .xms-top-video-frame > video.xms-top-video-native,
  body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > section.xms-top-video > .xms-top-video-frame > iframe.xms-top-video-embed {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }
  body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video .xms-top-video-frame > .xms-top-video-fallback {
    background-size: cover !important;
    background-position: center center !important;
  }
}
