.hero,
.page-hero {
  isolation: isolate;
  background: #2d1318;
  position: relative;
  overflow: hidden;
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 2;
}

.hero-carousel-images,
.hero-carousel-images::after,
.hero-carousel-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel-images {
  z-index: 0;
  overflow: hidden;
}

.hero-carousel-images::after {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgba(16, 7, 9, .9) 0%, rgba(32, 12, 17, .66) 42%, rgba(20, 10, 12, .12) 72%);
  pointer-events: none;
}

.hero-carousel-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  transition: opacity .9s ease, transform 6s ease;
}

.hero-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, 4vw);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-carousel-arrow,
.hero-carousel-dot {
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(20, 10, 12, .36);
  color: #fff;
  cursor: pointer;
}

.hero-carousel-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.hero-carousel-dots {
  display: flex;
  gap: 7px;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}

.hero-carousel-dot.active {
  width: 24px;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 850px) {
  .hero-carousel-images::after {
    background: linear-gradient(90deg, rgba(12, 6, 8, .9), rgba(18, 8, 11, .42));
  }

  .hero-carousel-slide {
    background-position: 62% center;
  }

  .hero-carousel-controls {
    right: 16px;
    bottom: 16px;
  }
}

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