.hero-with-collage .hero-image {
  inset: 0;
  width: auto;
  height: auto;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
}

.hero-collage-frame {
  position: relative;
  overflow: hidden;
}

.hero-collage-frame > :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-collage-frame > video,
.hero-collage-frame.video-ready > img {
  opacity: 0;
}

.hero-collage-frame.video-ready > video {
  opacity: 1;
}

.hero-with-collage::after {
  background:
    linear-gradient(90deg, #181e1bcd, #181e1bad 36%, #181e1b85 53%, #181e1b20 76%, transparent),
    linear-gradient(180deg, #181e1bc0, transparent 25%, transparent 77%, #181e1b80);
}

.hero-with-collage .hero-copy {
  text-shadow: 0 2px 14px #111813d0;
}

.hero-video-toggle {
  position: absolute;
  inset: auto max(32px, calc((100% - 1344px) / 2)) 20px auto;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #ffffff65;
  border-radius: 3px;
  background: #17211cdd;
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
}

.hero-video-toggle:hover {
  background: #17211c;
}

.hero-video-toggle:focus-visible {
  outline-color: var(--white);
}

@media (max-width: 980px) {
  .hero-video-toggle {
    inset: 96px 32px auto auto;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .hero-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: min(48%, 86vw) minmax(0, 1fr);
  }

  .hero-collage-featured {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .hero-with-collage::after {
    background: linear-gradient(180deg, #181e1bc0, #181e1b25 23%, #181e1b9e 42%, #181e1bc7 58%, #181e1bd4);
  }

  .hero-with-collage .hero-inner {
    padding-top: clamp(230px, 72vw, 340px);
  }

  .hero-video-toggle {
    inset: 82px 20px auto auto;
  }
}
