.home-hero-carousel {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 624 / 351;
  isolation: isolate;
}

.home-hero-carousel-track,
.home-hero-carousel-slide {
  position: absolute;
  inset: 0;
}

.home-hero-carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.home-hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-hero-carousel-slide .hero-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.home-hero-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #123b70;
  box-shadow: 0 12px 28px rgba(18, 59, 112, .2), 0 2px 8px rgba(18, 59, 112, .12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.home-hero-carousel-control span {
  display: block;
  margin-top: -3px;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.home-hero-carousel-control:hover,
.home-hero-carousel-control:focus-visible {
  background: linear-gradient(135deg, #0f6eea, #13a673);
  color: #fff;
  box-shadow: 0 16px 32px rgba(18, 59, 112, .28), 0 3px 10px rgba(18, 59, 112, .16);
  transform: translateY(-50%) scale(1.06);
}

.home-hero-carousel-control:focus-visible {
  outline: 3px solid rgba(15, 110, 234, .28);
  outline-offset: 3px;
}

.home-hero-carousel-control-prev {
  left: -18px;
}

.home-hero-carousel-control-next {
  right: -18px;
}

@media (max-width: 980px) {
  .home-hero-carousel-control-prev {
    left: 10px;
  }

  .home-hero-carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 640px) {
  .home-hero-carousel-control {
    width: 38px;
    height: 38px;
  }

  .home-hero-carousel-control span {
    font-size: 1.75rem;
  }
}

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