/* ==============================
   CINEMA SLIDER
   ============================== */

.cinema-slider {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  background-color: black;
  padding-bottom: max(60px, 8vh);
}

.cinema-slider__viewport {
  overflow: hidden;
  width: 100vw;
  cursor: grab;
  touch-action: pan-y;
}

.cinema-slider__viewport.is-dragging {
  cursor: grabbing;
}

.cinema-slider__track {
  display: flex;
  align-items: center;
  will-change: transform;
}

.cinema-slider__track.is-animated {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Single slide wrapper --- */
.cinema-slider__slide {
  flex: 0 0 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.cinema-slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* --- Dots --- */
.cinema-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 16px;
}

.cinema-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text, #333);
  opacity: 0.25;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  padding: 0;
}

.cinema-slider__dot.is-active {
  opacity: 1;
  transform: scale(1.3);
}

.cinema-slider.is-snapping .cinema-slider__track,
.cinema-slider.is-snapping .cinema-slider__slide {
  transition: none !important;
}

/* =============================================
   DESKTOP (>768px) – 3 images visible, center one centered in viewport
   ============================================= */
@media (min-width: 769px) {
  .cinema-slider__slide {
    flex: 0 0 50vw;
    opacity: 0.35;
    transform: scale(0.82);
    filter: brightness(0.5);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      filter 0.5s ease;
  }

  .cinema-slider__slide.is-center {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    z-index: 2;
  }

  .cinema-slider__slide.is-adjacent {
    opacity: 0.5;
    transform: scale(0.9);
    filter: brightness(0.7);
  }
}

/* =============================================
   MOBILE (≤768px) – 1 slide
   ============================================= */
@media (max-width: 768px) {
  .cinema-slider__slide {
    flex: 0 0 100vw;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
