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

.hero-carousel {
  z-index: 0;
  background: #172124;
}

.hero-carousel-images {
  overflow: hidden;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel-image.is-active {
  opacity: 1;
}

.hero-carousel-shade {
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 5%), rgb(0 0 0 / 12%) 40%, rgb(0 0 0 / 56%) 72%, rgb(0 0 0 / 70%));
}

#home p {
  color: rgb(255 255 255 / 95%);
  text-shadow: 0 2px 8px rgb(0 0 0 / 65%);
}

.hero-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 25%);
  backdrop-filter: blur(12px);
}

.hero-carousel-button,
.hero-carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.hero-carousel-button {
  font-size: 28px;
  line-height: 1;
}

.hero-carousel-toggle {
  margin-left: 2px;
  font-size: 13px;
}

.hero-carousel-button:hover,
.hero-carousel-dot:hover {
  background: rgb(255 255 255 / 12%);
}

.hero-carousel-button:focus-visible,
.hero-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.hero-carousel-dots {
  display: flex;
}

.hero-carousel-dot {
  width: 28px;
}

.hero-carousel-dot span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 45%);
  transition: width 180ms ease, background 180ms ease;
}

.hero-carousel-dot.is-active span {
  width: 18px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-image,
  .hero-carousel-dot span {
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero-carousel-dot {
    width: 24px;
  }
}
