/* auto-slider.css - responsive, minimal, accessible */
.auto-slider {
  position: absolute;
  overflow: hidden;
  --slider-aspect: 56.25%; /* 16:9 by default; change to 75% for 4:3, etc */
  background: #111; /* visible while images load */
  border-radius: 8px;
  height: 100%;
  width: 100%;
}

/* aspect ratio box */
.auto-slider::before {
  content: "";
  display: block;
  padding-top: var(--slider-aspect);
}

/* slides container positioned absolutely */
.auto-slider .slides {
  position: absolute;
  inset: 0;
  display: flex;
  touch-action: pan-y;
}

.auto-slider .slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  transform: translateX(100%);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 400ms ease;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: center / cover no-repeat;
}

/* active / previous classes */
.auto-slider .slide.is-active {
  transform: translateX(0);
  opacity: 1;
}
.auto-slider .slide.is-prev {
  transform: translateX(-100%);
  opacity: 0.6;
}

/* image inside slide for better performance (object-fit) */
.auto-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* controls */
.auto-slider .control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
}
.auto-slider .control.prev { left: 10px; }
.auto-slider .control.next { right: 10px; }

/* indicators (dots) */
.auto-slider .indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.auto-slider .indicator {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  cursor: pointer;
}
.auto-slider .indicator.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.15);
}

/* small screens tweak */
@media (max-width: 600px) {
  .auto-slider .control { padding: 6px 8px; font-size: 14px; }
  .auto-slider { border-radius: 4px; }
}
