/* ============================================================
   GALLERY SLIDER — PREMIUM EDITION
   PT. Powerindo Biru Lestari
   ============================================================ */

#picture-slider.gallery-section {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56, 99, 168, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, #060b16 0%, #0a1426 55%, #060b16 100%);
  overflow: hidden;
}

/* ---------- Ambient floating particles ---------- */
.gallery-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.gallery-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 6px 1px rgba(125, 211, 252, 0.6);
  opacity: 0;
  animation-name: floatParticle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 0.55; }
  80%  { opacity: 0.35; }
  100% { transform: translateY(-140px) translateX(24px); opacity: 0; }
}

/* ---------- Section header ---------- */
.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(13, 38, 64, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.gallery-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px 1px rgba(56, 189, 248, 0.8);
  flex-shrink: 0;
}
.gallery-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.gallery-section-title span {
  background: linear-gradient(90deg, #93c5fd 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gallery-section-sub {
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ---------- Slider shell ---------- */
.slider-wrapper-premium {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Fixed, contained stage so images never blow up oversized */
.slider-stage-premium {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  border: 10px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(56, 189, 248, 0.28),
    0 24px 50px -18px rgba(15, 23, 42, 0.5);
}

.slider-track-premium {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ---------- Individual slide (stacked crossfade) ---------- */
.slide-premium {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 1;
}
.slide-premium.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-img-wrap-premium {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Image is always cropped to the stage, never stretches the layout */
.slide-img-premium {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.1);
  transition: transform 6.5s ease;
}
.slide-premium.active .slide-img-premium {
  transform: scale(1);
}

/* Overlays for legible text on top of any photo */
.slide-overlay-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
}
.slide-overlay-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
}

.slide-content-premium {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
}
.slide-premium.active .slide-content-premium {
  animation: slideContentIn 0.8s 0.25s ease forwards;
}
@keyframes slideContentIn {
  to { opacity: 1; transform: translateY(0); }
}

.slide-tag-premium {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: var(--color-primary, #1d4ed8);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.slide-title-premium {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.slide-desc-premium {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 480px;
}

/* ---------- Counter badge ---------- */
.slide-counter-premium {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(6, 11, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.counter-sep { opacity: 0.5; margin: 0 2px; }

/* ---------- Autoplay timer bar ---------- */
.timer-bar-premium {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  z-index: 3;
}

/* ---------- Prev / next buttons ---------- */
.nav-btn-premium {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-btn-premium svg { width: 18px; height: 18px; }
.nav-btn-premium:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.nav-btn-premium:focus-visible {
  outline: 2px solid var(--color-primary, #1d4ed8);
  outline-offset: 2px;
}
.nav-prev-premium { left: 14px; }
.nav-next-premium { right: 14px; }

/* ---------- Dots ---------- */
.dots-bar-premium {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.dot-premium {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.dot-premium:hover { background: #94a3b8; }
.dot-premium.active {
  width: 24px;
  border-radius: 5px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

/* ---------- Thumbnail strip ---------- */
.thumb-strip-premium {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.thumb-strip-premium::-webkit-scrollbar { height: 5px; }
.thumb-strip-premium::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.thumb-premium {
  flex: 0 0 auto;
  width: 74px; height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.thumb-premium img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-premium:hover { opacity: 0.85; }
.thumb-premium.active {
  opacity: 1;
  border-color: #38bdf8;
}

/* ---------- Empty state ---------- */
.gallery-empty { color: #94a3b8; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide-img-premium,
  .slide-content-premium,
  .gallery-particle {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .slider-stage-premium {
    aspect-ratio: 4 / 3;
    max-height: 300px;
    border-radius: 14px;
  }
  .slide-content-premium { padding: 18px; }
  .nav-btn-premium { width: 36px; height: 36px; }
  .thumb-premium { width: 60px; height: 42px; }
}