.home-hero-gallery {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.home-hero-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  opacity: 0;
  transition: opacity 850ms ease-in-out;
}

.home-hero-gallery-slide.is-active {
  opacity: 1;
}

.home-hero-gallery-slide:nth-child(3) {
  object-position: 86% center;
}

.home-hero-gallery-controls:not([hidden]) {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 5vw, 85px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  color: #fff;
  background: #07151beb;
  border: 1px solid #ffffff55;
  border-radius: 999px;
}

.home-hero-gallery-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.home-hero-gallery-controls button:hover {
  border-color: #ffffff70;
}

.home-hero-gallery-controls button[aria-current="true"] {
  background: #83ebed;
  color: #07151b;
}

.home-hero-gallery-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.home-hero-gallery-controls button[aria-current="true"]:focus-visible {
  outline-color: #07151b;
}

.home-hero-gallery-controls button:disabled {
  opacity: .45;
}

.home-hero-pause-icon {
  width: 12px;
  height: 14px;
  border-inline: 4px solid currentColor;
}

.home-hero-play-icon {
  display: none;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

[data-hero-toggle].is-paused .home-hero-play-icon {
  display: block;
}

[data-hero-toggle].is-paused .home-hero-pause-icon {
  display: none;
}

@media (min-width: 901px) {
  .home-hero-gallery {
    bottom: 14%;
    mask-image: linear-gradient(#000 75%, transparent);
  }
}

@media (max-width: 650px) {
  .home-hero-v29 .home-hero-gallery {
    bottom: auto;
    height: clamp(310px, 77vw, 480px);
  }

  .home-hero-v29[data-home-hero] .hero-gradient {
    bottom: auto;
    height: clamp(310px, 77vw, 480px);
    background:
      linear-gradient(0deg, #080d11 0%, #080d11ef 13%, #080d1166 35%, transparent 72%),
      linear-gradient(90deg, #080d1150, transparent 85%);
  }

  .home-hero-v29[data-home-hero] .hero-v29-copy {
    padding-top: clamp(225px, 54vw, 350px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-gallery-slide {
    transition: none;
  }
}
