/* =============================================
   Smooth Image Slider — slider.css
   ============================================= */

/* ── Wrapper ── */
.sis-slider {
  position: relative;
  width: 100%;
  /* Aspect-ratio mode: height auto-scales with width so no black bars ever appear.
     Override with height="600px" shortcode param if you prefer a fixed height. */
  height: var(--sis-height, auto);
  /* Fallback for browsers that don't support aspect-ratio */
  aspect-ratio: var(--sis-ratio, 1320 / 790);
  overflow: hidden;
  background: #0a0a0a;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Track (holds all slides) ── */
.sis-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Individual slide ── */
.sis-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity var(--sis-transition, 900ms) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--sis-transition, 900ms) cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.sis-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

/* ── Background image — fills full slider, matched to aspect ratio so no crop ── */
.sis-bg {
  position: absolute;
  inset: 0;
  background-size: cover;             /* fills the container edge-to-edge */
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #0a0a0a;
}

/* ── Ken-Burns subtle zoom on active slide ── */
.sis-slide.is-active .sis-bg {
  animation: sis-kenburns var(--sis-speed, 5000ms) ease-in-out forwards;
}

@keyframes sis-kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* ── Arrows ── */
.sis-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
  outline: none;
}

.sis-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.sis-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.sis-prev { left: 20px; }
.sis-next { right: 20px; }

.sis-arrow svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Dots ── */
.sis-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  outline: none;
}

.sis-dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.35);
}

.sis-dot:hover:not(.is-active) {
  background: rgba(255,255,255,0.45);
}

/* ── Progress bar ── */
.sis-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 10;
  transition: width linear;
}

/* ── Empty state ── */
.sis-empty {
  padding: 2rem;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .sis-slider {
    /* Keep aspect ratio on mobile — no forced fixed height */
    aspect-ratio: var(--sis-ratio, 1320 / 790);
    height: auto !important;
  }

  .sis-arrow {
    width: 36px;
    height: 36px;
  }

  .sis-arrow svg {
    width: 16px;
    height: 16px;
  }

  .sis-prev { left: 10px; }
  .sis-next { right: 10px; }
}
