/* XMS Theme v1.4.20 — screen-height homepage video.
   Keep the original full-width banner flush under the white header.
   The measured header height is set by the small companion script. */
body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > .xms-top-video {
  --xms-video-h: max(260px, calc(100vh - var(--xms-video-measured-header, 80px) - var(--xms-video-toolbar-height, 0px))) !important;
  height: var(--xms-video-h) !important;
  min-height: 260px !important;
  max-height: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}
/* Dynamic viewport units prevent the address-bar collapse from causing
   a height jump on modern mobile browsers. */
@supports (height: 100svh) {
  body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > .xms-top-video {
    --xms-video-h: max(260px, calc(100svh - var(--xms-video-measured-header, 80px) - var(--xms-video-toolbar-height, 0px))) !important;
  }
}
body.admin-bar.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > .xms-top-video {
  --xms-video-toolbar-height: 32px;
}
@media (max-width: 782px) {
  body.admin-bar.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > .xms-top-video {
    --xms-video-toolbar-height: 46px;
  }
}
/* Maintain the entire original 16:9 video in view without cropping
   its branding/text. Its poster/backdrop provides side coverage. */
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame {
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame video.xms-top-video-native,
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame iframe.xms-top-video-embed {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(100vw, calc(var(--xms-video-h) * 16 / 9)) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100vw !important;
  max-height: none !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}
