/* Homepage (page 82) hero, section 0e6a733 (background video):
   same rendered height as the old xlocums.com hero.
   Old site, measured 2026-11-26 in headless Chrome:
     768px and wider: padding-top 50, padding-bottom 0, container
     min-height 700 = 750px tall at every window size.
     Phones: padding-top 100, container grows with its content =
     744px at 360 wide, 704px at 414, 546px at 600.
   Staging before this file: container max(580px, 65vh) plus 50/50
   padding, so it grew with window height (1075px on a 1500px-tall
   window, 685px at 900, 540px on a 390 phone).
   Off switch: option xl_home_hero_height_enabled = 0, or
   add_filter( 'xl_home_hero_height_enabled', '__return_false' ).
   Overrides the HTML widget style blocks xl-fix4 / xl-fix7 by
   specificity only; no Elementor data is changed. */

body.home .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax,
.elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 50px !important;
  padding-bottom: 0 !important;
}

body.home .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container,
.elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container {
  height: auto !important;
  min-height: 700px !important;
  align-items: center !important;
}

/* Same positioning Elementor gives these layers, applied from the head
   so the taller hero does not cause a layout shift while Elementor's
   own CSS is still loading. */
body.home .elementor-82 .elementor-element.elementor-element-0e6a733,
.elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733 {
  position: relative;
}
body.home .elementor-82 .elementor-element-0e6a733 > .elementor-background-overlay,
body.home .elementor-82 .elementor-element-0e6a733 > .elementor-background-video-container,
.elementor-page-82 .elementor-82 .elementor-element-0e6a733 > .elementor-background-overlay,
.elementor-page-82 .elementor-82 .elementor-element-0e6a733 > .elementor-background-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Phones: old site used padding-top 100 and its content (headline,
   two buttons, profession search box) made it 744px at 360 wide down
   to 546px at 600 wide. Staging has no search box in the hero, so the
   container gets that same height as a minimum, and the headline,
   subtitle and 3 buttons sit centered inside it with room to spare.
   Content taller than this still grows the hero (no clipping). */
@media (max-width: 767px) {
  body.home .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax,
  .elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax {
    padding-top: 100px !important;
    padding-bottom: 0 !important;
  }
  body.home .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container,
  .elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container {
    min-height: clamp(446px, calc(604px - (100vw - 414px) * 0.849), 604px) !important;
  }
}
@media (max-width: 400px) {
  body.home .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container,
  .elementor-page-82 .elementor-82 .elementor-element.elementor-element-0e6a733.bannermax > .elementor-container {
    min-height: 644px !important;
  }
}
