.hero-slider {
  --hero-height: 200px;
  --hero-radius: 16px;
  position: relative;
}

.hero-slider-track {
  display: flex;
  height: var(--hero-height);
  border-radius: var(--hero-radius);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  background-color: rgb(31, 33, 35);
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slider-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 6px rgba(10, 11, 15, 1) solid;
  border-radius: 90px;
  background-color: rgba(255, 141, 40, 1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity .2s, visibility .2s, background-color .2s;
}

.hero-slider-arrow img {
  display: block;
  width: 20px;
  height: 20px;
}

.hero-slider-arrow-prev {
  left: -20px;
}

.hero-slider-arrow-prev img {
  transform: rotate(180deg);
}

.hero-slider-arrow-next {
  right: -20px;
}

.hero-slider-arrow:hover {
  background-color: rgba(255, 160, 77, 1);
}

.hero-slider-arrow:focus-visible {
  outline: 2px solid rgba(255, 141, 40, 1);
  outline-offset: 2px;
}

@media (hover: hover) {
  .hero-slider:hover .hero-slider-arrow,
  .hero-slider:focus-within .hero-slider-arrow {
    opacity: 1;
    visibility: visible;
  }
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 90px;
  background: rgba(10, 11, 15, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

.hero-slider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  padding: 0 4px;
  border: 0;
  border-radius: 90px;
  background: none;
  cursor: pointer;
}

.hero-slider-dot span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 90px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width .25s, background-color .25s;
}

.hero-slider-dot:hover span {
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-slider-dot.is-active span {
  width: 20px;
  background-color: rgba(255, 141, 40, 1);
}

.hero-slider-dot:focus-visible {
  outline: 2px solid rgba(255, 141, 40, 1);
  outline-offset: 0;
}

@media (max-width: 1250px) {
  .hero-slider-arrow-prev {
    left: -12px;
  }

  .hero-slider-arrow-next {
    right: -12px;
  }
}

@media (max-width: 450px) {
  .hero-slider {
    --hero-height: 150px;
  }

  .hero-slider-arrow {
    width: 35px;
    height: 35px;
    border: 4px rgba(10, 11, 15, 1) solid;
  }

  .hero-slider-arrow img {
    width: 16px;
    height: 16px;
  }

  .hero-slider-dots {
    bottom: 8px;
  }
}

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