/* ══════════════════════════════════════════════════
   GALLERY PAGE — gallery.css
══════════════════════════════════════════════════ */

/* ── PAGE BANNER ─────────────────────────────── */
.page-banner {
  position: relative;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute; inset: 0;
  background:
    url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?w=1600&q=80')
    center/cover no-repeat;
  z-index: 0;
  transform: scale(1.04);
}
.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,46,42,0.82) 0%, rgba(52,143,122,0.72) 100%);
  z-index: 1;
}
.page-banner-content { position: relative; z-index: 2; text-align: center; }
.page-banner-title {
  font-family: 'Inter', 'Lato', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; color: #fff;
  letter-spacing: -1px; margin-bottom: 18px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.breadcrumb a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #C9A84C; }
.breadcrumb a i { font-size: 12px; }
.breadcrumb-sep { color: rgba(255,255,255,0.4); font-size: 10px; }
.breadcrumb-current { color: #C9A84C; font-size: 14px; font-weight: 600; }

/* ══════════════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════════════ */
.gallery-section {
  background: #fff;
  padding: 70px 60px 90px;
}
.gallery-inner { max-width: 1200px; margin: 0 auto; }

/* ── Tab Nav ── */
.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid #e8efed;
}

.gtab {
  background: none; border: none;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  color: #78787B;
  padding: 14px 28px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.gtab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C9A84C, #E8C96A);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
  border-radius: 2px 2px 0 0;
}
.gtab:hover { color: var(--text-dark); }
.gtab.active {
  color: var(--primary);
  font-weight: 700;
}
.gtab.active::after { transform: scaleX(1); }

/* ── Tab Panes ── */
.gallery-pane {
  display: none;
  animation: fadeUp 0.45s ease both;
}
.gallery-pane.active { display: block; }

/* ── Masonry grid ── */
.gmasonry {
  columns: 4;
  column-gap: 12px;
}

/* ── Individual item ── */
.gitem {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gitem img {
  width: 100%; display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
  border-radius: 4px;
}
.gitem:hover img { transform: scale(1.07); }

/* Hover overlay */
.goverlay {
  position: absolute; inset: 0;
  background: rgba(52,143,122,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 4px;
}
.goverlay i { color: #fff; font-size: 22px; }
.gitem:hover .goverlay { opacity: 1; }

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lb-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lb-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 88vw;
  max-height: 85vh;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-img-wrap img {
  max-width: 88vw;
  max-height: 85vh;
  display: block;
  object-fit: contain;
}

/* Close / Prev / Next buttons */
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-size: 16px;
  z-index: 2002;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--primary);
  transform: scale(1.1);
}
.lb-close { top: 24px; right: 28px; width: 44px; height: 44px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }


}



  .gallery-tabs { gap: 0; flex-wrap: wrap; justify-content: center; }
  .gtab { padding: 10px 14px; font-size: 13px; }
  .gmasonry { columns: 2; column-gap: 8px; }
  .gitem { margin-bottom: 8px; }
}

@media (max-width: 768px) {
  .page-banner { height: 200px; }
  .gallery-section { padding: 36px 12px 60px; }
  .gallery-tabs { flex-wrap: wrap; justify-content: center; }
  .gtab { padding: 10px 12px; font-size: 13px; }
  .gmasonry { columns: 2; column-gap: 8px; }
  .gitem { margin-bottom: 8px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
@media (max-width: 400px) {
  .gmasonry { columns: 1; }
}