/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: 70px 2rem 90px;
  background: var(--gray);
}
.gallery-container {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: #eee;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 26, 46, 0.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.gallery-overlay span {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== PROOF BOX ===== */
.proof-box {
  background: var(--orange-pale);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.8rem;
}
.proof-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.proof-box p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

/* shown via jQuery .fadeIn() which sets display:block — re-center with flex trick */
.lightbox[style*="display: block"] {
  display: flex !important;
}

.lb-content {
  position: relative;
  max-width: 88vw;
  max-height: 85vh;
  display: flex; flex-direction: column;
  align-items: center;
  animation: lbZoomIn 0.25s ease both;
}
@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}

.lb-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 0.9rem;
  text-align: center;
  font-style: italic;
  max-width: 600px;
}

/* Close button */
.lb-close {
  position: fixed; top: 1.2rem; right: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover {
  background: var(--orange);
  transform: rotate(90deg);
}

/* Prev / Next arrows */
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.2s;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.lb-arrow:hover { background: var(--orange); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
  }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-arrow { width: 38px; height: 38px; font-size: 0.9rem; }
  .lb-content { max-width: 95vw; }
}
