/*
 * ANCOR HERO FULLSCREEN FINAL
 * Independent from previous hero CSS versions.
 */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#heroSlider {
  position: relative !important;
  display: block !important;
  width: 100% !important;

  height:
    var(
      --ancor-hero-full-height,
      100vh
    ) !important;

  height:
    var(
      --ancor-hero-full-height,
      100dvh
    ) !important;

  min-height: 560px !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Every generated hero layer fills the hero */

#heroSlider > .slides,
#heroSlider > .hero-slides,
#heroSlider .slides,
#heroSlider .slide,
#heroSlider .hero-slide {
  height: 100% !important;
  min-height: 100% !important;
}

#heroSlider .slide,
#heroSlider .hero-slide {
  inset: 0 !important;
}

#heroSlider .slide img,
#heroSlider .hero-slide img,
#heroSlider .slides img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;
}

/* Generated V3/V4 containers */

#heroSlider .ahv3-container,
#heroSlider .ahv4-container {
  height: 100% !important;
  min-height: 100% !important;
  box-sizing: border-box !important;
}

/* Do not allow the following section to overlap */

#heroSlider + section,
#heroSlider + main,
#heroSlider + div {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

/* Keep the glass panels transparent and compact */

#heroSlider .ahv4-brand-panel,
#heroSlider .ahv3-brand-card {
  background: rgba(7, 21, 34, 0.22) !important;

  border-color:
    rgba(255, 255, 255, 0.15) !important;

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.12) !important;

  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
}

#heroSlider .ahv4-fact,
#heroSlider .ahv4-badge,
#heroSlider .ahv4-stats,
#heroSlider .hero-stats,
#heroSlider .ahv3-meta span {
  background:
    rgba(7, 21, 34, 0.16) !important;

  border-color:
    rgba(255, 255, 255, 0.14) !important;

  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}

/* Prevent a white strip caused by borders */

#heroSlider {
  border-bottom: 0 !important;
}

@media (max-width: 760px) {
  #heroSlider {
    min-height: 590px !important;
  }

  #heroSlider .ahv4-container,
  #heroSlider .ahv3-container {
    padding-bottom: 115px !important;
  }
}

/*
 * Landscape phones and short laptop screens:
 * keep the full viewport but compact the content.
 */

@media (max-height: 700px) and (min-width: 761px) {
  #heroSlider {
    min-height: 520px !important;
  }

  #heroSlider .ahv4-container,
  #heroSlider .ahv3-container {
    padding-top: 75px !important;
    padding-bottom: 85px !important;
  }

  #heroSlider .ahv4-project-title,
  #heroSlider #slideTitle {
    font-size:
      clamp(34px, 4.4vw, 54px) !important;
  }
}
