/* ═══════════════════════════════════════════════════
   GALLERY PAGE — Vedaa Saktee
   Premium Himalayan Wellness Visual Sanctuary
   ═══════════════════════════════════════════════════ */

body {
  background-color: #F7F2E8 !important;
  color: #071B11 !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#navbar {
  background: rgba(247, 242, 232, 0.92) !important;
  border-bottom: 1px solid rgba(7, 27, 17, 0.08) !important;
}

.gallery-wrapper {
  padding: 140px 5% 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.gallery-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9A7A20;
  margin-bottom: 16px;
  padding: 6px 20px;
  border: 1px solid rgba(184, 148, 42, 0.35);
  border-radius: 30px;
  background: rgba(184, 148, 42, 0.08);
}

.gallery-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: #071B11;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.gallery-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(7, 27, 17, 0.65);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(7, 27, 17, 0.06);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid rgba(184, 148, 42, 0.18);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(7, 27, 17, 0.12);
  border-color: rgba(184, 148, 42, 0.5);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 27, 17, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 17, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 30px;
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(229, 197, 127, 0.3);
}

.gallery-lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #E5C57F;
  font-size: 38px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
  padding: 10px;
}

.gallery-lightbox-close:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .gallery-wrapper {
    padding: 110px 16px 60px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .gallery-title {
    font-size: 2.2rem;
  }
  .gallery-item {
    border-radius: 12px;
  }
}
