/* Homepage (page 82) "Meet xLocums" brand video: muted autoplay when 50%
   in view, plus a Tap for sound / Mute control. CSS only for the chrome.
   Off switch: xl_home_video_autoplay_enabled.
   Does not edit the Elementor HTML widget (e2dde17). No yellow. */

body.home .xl-bv.is-xl-autoplay .xl-bv__media,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__media {
  position: relative;
}

/* The existing full-frame play overlay would sit on top of the iframe and
   block autoplay / the sound control. Hide it when this switch is on and
   reduced-motion is not in effect (JS adds is-xl-autoplay only then). */
body.home .xl-bv.is-xl-autoplay .xl-bv__play,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__play {
  display: none !important;
}

body.home .xl-bv.is-xl-autoplay .xl-bv__sound,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(3, 18, 50, 0.88);
  color: #fff;
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 14px rgba(3, 18, 50, 0.28);
}

body.home .xl-bv.is-xl-autoplay .xl-bv__sound:hover,
body.home .xl-bv.is-xl-autoplay .xl-bv__sound:focus-visible,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound:hover,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound:focus-visible {
  background: #4169E1;
  color: #fff;
}

body.home .xl-bv.is-xl-autoplay .xl-bv__sound:focus-visible,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.home .xl-bv.is-xl-autoplay .xl-bv__sound[aria-pressed="true"],
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound[aria-pressed="true"] {
  background: #4169E1;
}

@media (max-width: 767px) {
  body.home .xl-bv.is-xl-autoplay .xl-bv__sound,
  .elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__sound {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Keep the player above the poster (the thumb uses transform, which
   creates a stacking context) until is-playing hides the thumb. */
body.home .xl-bv.is-xl-autoplay .xl-bv__frame,
.elementor-page-82 .xl-bv.is-xl-autoplay .xl-bv__frame {
  z-index: 2;
}
