.hero-carousel {
  margin: 0 0 3em;
  color: #fff;
}

.hero-carousel__viewport {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--hero-ratio-mobile, var(--hero-ratio, 16 / 9));
  overflow: hidden;
  background: #1a1a1a;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.hero-carousel__slide:first-child {
  opacity: 1;
  visibility: visible;
}

.hero-carousel.is-ready .hero-carousel__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.hero-carousel.is-ready .hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-carousel__slide--text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.hero-carousel__content {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 18%;
  top: 12%;
  max-width: 46rem;
}

.hero-carousel__title {
  margin: 0;
  font-family: "Nunito Sans Bold", "Nunito Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 6rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 5px 5px 10px #000;
}

.hero-carousel__subtitle {
  margin: 0.45em 0 0;
  max-width: 38rem;
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(1rem, 2.4vw, 3rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  text-shadow: 1px 1px 5px #000;
  white-space: pre-line;
}

.hero-carousel__button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0 1.15em;
  background-color: #bbd406;
  border-radius: 10px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 2.6;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.35);
}

.hero-carousel__button:hover {
  background-color: #a4bc05;
  color: #000;
}

.hero-carousel__banner-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel__slide--linked .hero-carousel__content {
  pointer-events: none;
}

.hero-carousel__slide--linked a.hero-carousel__button {
  pointer-events: auto;
}

.hero-carousel__banner-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.hero-carousel__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-carousel__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}

.hero-carousel__arrow--prev {
  left: 0.8rem;
}

.hero-carousel__arrow--next {
  right: 0.8rem;
}

.hero-carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-carousel__dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
}

.hero-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-carousel__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.hero-carousel__dot.is-active::before,
.hero-carousel__dot[aria-selected="true"]::before {
  background: #bbd406;
  border-color: #bbd406;
}

.hero-carousel__arrow:focus-visible,
.hero-carousel__dot:focus-visible,
.hero-carousel__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 700px) {
  .hero-carousel__viewport {
    aspect-ratio: var(--hero-ratio-tablet, var(--hero-ratio, 16 / 9));
  }
}

@media (min-width: 1100px) {
  .hero-carousel__viewport {
    aspect-ratio: var(--hero-ratio, 16 / 9);
  }

  .hero-carousel__content {
    left: 10%;
    top: 12%;
  }

  .hero-carousel__subtitle {
    width: 70%;
    max-width: none;
  }
}

@media (max-width: 699px) {
  .hero-carousel__content {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 3.4rem;
    max-width: none;
  }

  .hero-carousel__slide--text::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.62) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel.is-ready .hero-carousel__slide {
    transition: none;
  }
}
