/* =====================================================
   AAW Addons — Vertical Fullscreen Slider
   ===================================================== */

/* ── Outer wrapper ── */
.aaw-vertical-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* GPU layer */
  transform: translateZ(0);
  will-change: contents;
}

/* ── Track: holds all slides stacked vertically ── */
.aaw-vs-track {
  --aaw-spv: 1;                          /* overridden by widget setting */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height = N slides × (100vh / slides-per-view) */
  height: calc( var(--slide-count, 1) * (100vh / var(--aaw-spv)) );
  will-change: transform;
  transition: transform var(--aaw-speed, 700ms) cubic-bezier(0.77, 0, 0.175, 1);
}

/* Track is locked while animating */
.aaw-vs-track.is-animating {
  pointer-events: none;
}

/* ── Individual slide ── */
.aaw-vs-slide {
  position: relative;
  width: 100%;
  height: calc(100vh / var(--aaw-spv));   /* full view or fraction */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Inner content wrapper — fills slide, centred */
.aaw-vs-slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Make inner Elementor elements fill properly */
.aaw-vs-slide .elementor-widget-wrap {
  width: 100%;
}

/* ── Navigation dots ── */
.aaw-vs-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 0 14px;
}

.aaw-vs-dots--right { right: 0; }
.aaw-vs-dots--left  { left: 0; }

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

.aaw-vs-dot:hover {
  background: rgba(255,255,255,0.75);
  transform: scale(1.25);
}

.aaw-vs-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ── Progress bar (thin line, bottom) ── */
.aaw-vs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.aaw-vs-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.7);
  width: 0%;
  transition: width var(--aaw-speed, 700ms) linear;
}

/* ── Slide enter/exit animations ── */
.aaw-vs-slide {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* ── Scroll-lock indicator on body ── */
body.aaw-vs-locked {
  overflow: hidden !important;
}

/* ── Responsive: on very small screens keep at least 1 slide visible ── */
@media (max-height: 500px) {
  .aaw-vs-slide {
    height: 100vh;
  }
  .aaw-vs-track {
    height: calc( var(--slide-count, 1) * 100vh );
  }
}
