/* Homepage (page 82) hero 0e6a733 on phones: still image instead of the
   background video. The plugin also stops Elementor from loading the
   video below 768px, so nothing is downloaded for it on phones.
   Image: a frame of the same video, 720x404 WebP, 13 KB.
   The navy overlay (Elementor background overlay) still sits on top.
   Off switch: xl_home_hero_poster_enabled. */

@media (max-width: 767px) {
  body.home .elementor-82 .elementor-element.elementor-element-0e6a733,
  .elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733 {
    background-color: #0d1d4e !important;
    background-image: url("../img/home/hero-poster-720.webp") !important;
    background-size: cover !important;
    background-position: 62% center !important;
    background-repeat: no-repeat !important;
  }
  body.home .elementor-82 .elementor-element-0e6a733 > .elementor-background-video-container,
  .elementor-page-82 .elementor-82 .elementor-element-0e6a733 > .elementor-background-video-container {
    display: none !important;
  }
}

/* 1.5.9 Phone video after load (xl_home_phone_video_enabled): the plugin
   JS starts the video once the page has fully loaded, then fades it in
   over the still image. Until then the video layer stays hidden.
   Chrome and Android: the video plays as a hidden 2px element and its
   frames are drawn on a full-size canvas, so it is never measured as a
   new Largest Contentful Paint. Safari and iPhone show the video itself
   (1.7.7: they also report LCP, but a canvas paint is unreliable there). */
@media (max-width: 767px) {
  body.home .elementor-82 .elementor-element-0e6a733.xl-hero-vid-on > .elementor-background-video-container,
  .elementor-page-82 .elementor-82 .elementor-element-0e6a733.xl-hero-vid-on > .elementor-background-video-container {
    display: block !important;
    opacity: 0;
    transition: opacity 0.8s ease;
  }
  body.home .elementor-82 .elementor-element-0e6a733.xl-hero-vid-in > .elementor-background-video-container,
  .elementor-page-82 .elementor-82 .elementor-element-0e6a733.xl-hero-vid-in > .elementor-background-video-container {
    opacity: 1;
  }
  body.home .elementor-82 .elementor-element-0e6a733.xl-hero-vid-canvas video.elementor-background-video-hosted,
  .elementor-page-82 .elementor-82 .elementor-element-0e6a733.xl-hero-vid-canvas video.elementor-background-video-hosted {
    opacity: 0 !important;
    width: 2px !important;
    height: 2px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: fill !important;
  }
  body.home .elementor-82 .elementor-element-0e6a733 .xl-hero-canvas,
  .elementor-page-82 .elementor-82 .elementor-element-0e6a733 .xl-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
}
