.lottie-animation-container {
  background-image: url("../images/image\ \(99\).jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(85%);
}



/* ============================================================
   gallery.css — Slideshow / Lightbox for KISU Foundation
   ============================================================ */

/* ── LIGHTBOX OVERLAY ───────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(25, 10, 45, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* ── CLOSE BUTTON ───────────────────────────────────────── */
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

/* ── COUNTER ────────────────────────────────────────────── */
.lb-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

/* ── MAIN STAGE ─────────────────────────────────────────── */
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  padding: 60px 80px 20px;
  flex: 1;
}

.lb-image-wrap {
  width: 100%;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lb-img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

/* ── NAV ARROWS ─────────────────────────────────────────── */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 5;
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

.lb-prev:hover,
.lb-next:hover {
  background: var(--primary-purple, rgb(72, 13, 149));
  border-color: var(--primary-purple, rgb(72, 13, 149));
  transform: translateY(-50%) scale(1.1);
}

/* ── CAPTION ────────────────────────────────────────────── */
.lb-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 16px;
  min-height: 1.4em;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.lb-caption.fade-out {
  opacity: 0;
}

/* ── THUMBNAILS ─────────────────────────────────────────── */
.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 24px 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  max-width: 100%;
  justify-content: center;
}

.lb-thumbs::-webkit-scrollbar {
  display: none;
}

.lb-thumb {
  width: 60px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* override global transition on img */
  transition: none !important;
  transform: none !important;
}

.lb-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.lb-thumb.active {
  border-color: var(--primary-purple, rgb(72, 13, 149));
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(72, 13, 149, 0.35);
}

/* ── GALLERY ITEMS — open lightbox on click ─────────────── */
.gallery-item {
  cursor: pointer;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--primary-purple, rgb(72, 13, 149));
  outline-offset: 4px;
  border-radius: 20px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .lb-stage {
    padding: 52px 52px 16px;
  }

  .lb-prev {
    left: 4px;
    width: 40px;
    height: 40px;
    font-size: .85rem;
  }

  .lb-next {
    right: 4px;
    width: 40px;
    height: 40px;
    font-size: .85rem;
  }

  .lb-img {
    max-height: 52vh;
    border-radius: 10px;
  }

  .lb-thumb {
    width: 48px;
    height: 36px;
  }

  .lb-caption {
    font-size: 0.85rem;
  }

  .lb-thumbs {
    padding: 12px 16px 20px;
  }
}