/* Final responsive homepage hero override.
   Keep the hero square on phones/tablets and force the media to crop/fill it. */
@media (max-width: 900px) {
  .hero.hero-media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: clamp(18px, 5vw, 34px) !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background: #111516 !important;
  }

  .hero.hero-media .hero-background,
  .hero.hero-media .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero.hero-media .hero-background {
    overflow: hidden !important;
  }

  .hero.hero-media .hero-video,
  .hero.hero-media .hero-background-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* The uploaded hero video contains black letterbox areas inside the file itself.
     Zoom only the video on mobile so those bars are cropped out, like desktop. */
  .hero.hero-media .hero-video {
    transform: scale(1.82) !important;
    transform-origin: center center !important;
  }

  .hero.hero-media .hero-copy {
    position: relative !important;
    z-index: 2 !important;
    width: min(88%, 620px) !important;
    max-width: none !important;
  }

  .hero.hero-media h1 {
    max-width: 16ch !important;
    margin: 0 !important;
    font-size: clamp(22px, 6vw, 36px) !important;
    line-height: 1.28 !important;
    letter-spacing: .08em !important;
  }

  html[dir="rtl"] .hero.hero-media h1 {
    max-width: 18ch !important;
    font-size: clamp(25px, 7vw, 40px) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
  }

  .hero.hero-media .scroll-cue {
    left: clamp(18px, 5vw, 34px) !important;
    bottom: clamp(14px, 4vw, 24px) !important;
    font-size: 9px !important;
  }
}

@media (max-width: 420px) {
  .hero.hero-media .hero-video {
    transform: scale(1.9) !important;
  }

  .hero.hero-media h1 {
    font-size: clamp(20px, 6.4vw, 28px) !important;
    line-height: 1.3 !important;
  }

  html[dir="rtl"] .hero.hero-media h1 {
    font-size: clamp(24px, 7.6vw, 34px) !important;
  }
}
