/* ========================================================
   6. PHOTO GALLERY (CAROUSEL & LIGHTBOX MODAL)
   ======================================================== */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: var(--red-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  height: 350px;
  perspective: 900px;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  margin: 15px 0 10px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: block;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(210px, 56vw);
  height: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(35, 8, 12, 0.28);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease, filter 0.55s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
}

.slide-caption {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 76, 49, 0.25);
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--red-primary);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
}
