.xima-hero-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #fff;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.xima-hero-slider:active {
  cursor: grabbing;
}

.xima-hero-slider--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: #f4f4f5;
  border: 1px dashed #d4d4d8;
}

.xima-hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.xima-hero-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(100%, 0, 0);
  transition: transform 700ms ease-out;
}

.xima-hero-slider.is-dragging .xima-hero-slider__slide {
  transition: none;
}

.xima-hero-slider__slide picture,
.xima-hero-slider__slide img,
.xima-hero-slider__link {
  display: block;
  width: 100%;
  height: 100%;
}

.xima-hero-slider__slide img {
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.xima-hero-slider__arrow {
  position: absolute;
  bottom: 16px;
  z-index: 30;
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #3f3f46;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: all 300ms ease;
}

.xima-hero-slider:hover .xima-hero-slider__arrow {
  opacity: 1;
}

.xima-hero-slider__arrow:hover {
  background: #f4f4f5;
}

.xima-hero-slider__arrow--prev {
  right: 32px;
}

.xima-hero-slider__arrow--next {
  right: 80px;
}

.xima-hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.xima-hero-slider__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 300ms ease;
}

.xima-hero-slider__dot:hover {
  background: #fff;
}

.xima-hero-slider__dot.is-active {
  width: 28px;
  background: #fff;
}

@media (min-width: 640px) {
  .xima-hero-slider {
    height: 300px;
  }

  .xima-hero-slider__dots {
    bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .xima-hero-slider {
    height: 380px;
  }

  .xima-hero-slider__arrow {
    display: flex;
  }
}
