.alta-hero-carousel-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
}

.alta-hero-carousel,
.alta-hero-carousel * {
  box-sizing: border-box;
}

.alta-hero-carousel {
  position: relative;
  width: 100vw;
  overflow: hidden;
  isolation: isolate;
}

.alta-hero-carousel__track {
  display: flex;
  align-items: center;
  will-change: transform;
  scroll-snap-type: x mandatory;
}

.alta-hero-carousel__slide {
  flex: 0 0 auto;
  width: 80vw;
  max-width: 1440px;
  margin-right: 24px;
  scroll-snap-align: center;
  transform: scale(0.92);
  opacity: 0.5;
  filter: blur(2px) brightness(0.7);
  transition:
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.alta-hero-carousel__slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0) brightness(1);
  z-index: 10;
}

.alta-hero-carousel__slide.is-near-active {
  transform: scale(0.96);
  opacity: 0.75;
  filter: blur(1px) brightness(0.85);
}

.alta-hero-carousel__slide a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.alta-hero-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  user-select: none;
  transition: transform 0.3s ease;
}

.alta-hero-carousel__slide:hover img {
  transform: scale(1.02);
}

.alta-hero-carousel__arrows {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.alta-hero-carousel__arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #800080;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  transition:
    background 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    scale 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: auto;
}

.alta-hero-carousel__arrow:hover {
  background: #fff;
  scale: 1.1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.alta-hero-carousel__arrow:active {
  scale: 0.95;
}

.alta-hero-carousel__gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 20;
  width: 12%;
  pointer-events: none;
}

.alta-hero-carousel__gradient--left {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.alta-hero-carousel__gradient--right {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.alta-hero-carousel__nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 0 28px;
}

.alta-hero-carousel__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 42px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--nav-background-color, rgba(18, 18, 20, 0.48));
  border: 1px solid var(--nav-border-color, rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.alta-hero-carousel__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dot-color, rgba(255, 255, 255, 0.46));
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.alta-hero-carousel__dot:hover {
  transform: scale(1.12);
}

.alta-hero-carousel__dot.is-active {
  width: 42px;
  border-radius: 999px;
  background: var(--active-dot-color, rgba(255, 255, 255, 0.26));
}

.alta-hero-carousel__dot-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  border-radius: inherit;
  background: var(--dot-progress-color, #ffffff);
  transform: scaleX(var(--dot-progress-scale, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
  will-change: transform;
}


.alta-hero-carousel__play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--nav-border-color, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background: var(--nav-background-color, rgba(18, 18, 20, 0.48));
  color: var(--dot-color, rgba(255, 255, 255, 0.46));
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.alta-hero-carousel__play-toggle:hover {
  transform: scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 34px rgba(0, 0, 0, 0.22);
}

.alta-hero-carousel__pause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.alta-hero-carousel__pause-icon span {
  display: block;
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
}

.alta-hero-carousel__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

@media (max-width: 767px) {
  .alta-hero-carousel__slide {
    width: 100vw;
    max-width: none;
    margin-right: 0;
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .alta-hero-carousel__slide.is-active,
  .alta-hero-carousel__slide.is-near-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .alta-hero-carousel__slide img {
    border-radius: 0;
  }

  .alta-hero-carousel__slide:hover img {
    transform: scale(1);
  }

  .alta-hero-carousel__gradient {
    display: none;
  }

  .alta-hero-carousel__play-toggle {
    width: 36px;
    height: 36px;
  }

  .alta-hero-carousel__pause-icon {
    gap: 4px;
  }

  .alta-hero-carousel__pause-icon span {
    width: 4px;
    height: 14px;
  }

  .alta-hero-carousel__play-icon {
    margin-left: 3px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alta-hero-carousel__track,
  .alta-hero-carousel__slide,
  .alta-hero-carousel__slide img,
  .alta-hero-carousel__dot,
  .alta-hero-carousel__arrow {
    transition: none !important;
    animation: none !important;
  }

  .alta-hero-carousel__slide {
    transform: scale(1) !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

