/* ═══════════════════════════════════════════════════════════════
   Gallery Detail — Editorial Photography Gallery
   ═══════════════════════════════════════════════════════════════ */

/* ── Full-Width Hero Image ──────────────────────────────────── */
.gd-hero-img {
  position: relative;
  width: 100%;
  height: calc(100vh - 132px);
  min-height: 500px;
  overflow: hidden;
}

.gd-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gd-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.02) 30%,
    rgba(0,0,0,0.45) 100%
  );
}

.gd-hero-img-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 40px 48px;
  z-index: 2;
  text-align: center;
}

.gd-hero-bc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.gd-hero-bc a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.gd-hero-bc a:hover { color: #fff; }
.gd-hero-bc span { color: rgba(255,255,255,0.5); }

.gd-hero-img-title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  font-family: var(--font-poppins);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.gd-hero-img-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin: 0 0 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.gd-hero-img-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* ── Season Tabs ───────────────────────────────────────────── */
.gd-tabs-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 12px 0;
}

.gd-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gd-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-poppins);
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.gd-tab i { font-size: 14px; }

.gd-tab:hover {
  border-color: var(--primary-color1);
  color: var(--primary-color1);
}

.gd-tab.active {
  background: var(--primary-color1);
  color: #fff;
  border-color: var(--primary-color1);
}

/* ── Gallery Area ──────────────────────────────────────────── */
.gd-gallery-area {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* ── Panel (one per season, only active visible) ───────────── */
.gd-panel {
  display: none;
  padding-top: 8px;
}

.gd-panel.active {
  display: block;
}

/* ── Panel Header ──────────────────────────────────────────── */
.gd-panel-head {
  margin-bottom: 20px;
}

.gd-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-color1);
  margin-bottom: 4px;
}

.gd-heading {
  font-size: 44px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px;
  font-family: var(--font-poppins);
  line-height: 1.15;
}

.gd-subtext {
  font-size: 16px;
  color: #888;
  margin: 0 0 10px;
  line-height: 1.5;
}

.gd-accent-line {
  width: 44px;
  height: 3px;
  background: var(--primary-color1);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   MASONRY GRID — CSS Columns (true masonry, zero dead space)
   ═══════════════════════════════════════════════════════════════ */
.gd-grid {
  column-count: 3;
  column-gap: 16px;
}

.gd-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #e8e8e8;
  position: relative;
}

.gd-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gd-item:hover img {
  transform: scale(1.04);
}

.gd-item.gd-hidden { display: none; }

/* ── Per-season column count ────────────────────────────────── */
.gd-grid--summer  { column-count: 3; }
.gd-grid--monsoon { column-count: 3; }
.gd-grid--winter  { column-count: 3; }
.gd-grid--spring  { column-count: 3; }

/* ── View All CTA ──────────────────────────────────────────── */
.gd-cta-wrap {
  text-align: center;
  padding: 32px 0 10px;
}

.gd-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1.5px solid var(--primary-color1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color1);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-poppins);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gd-view-btn:hover {
  background: var(--primary-color1);
  color: #fff;
}

.gd-view-btn i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.gd-view-btn:hover i {
  transform: translateX(3px);
}

.gd-less-btn {
  display: none;
  margin: 14px auto 0;
  padding: 8px 22px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-poppins);
}

.gd-less-btn:hover {
  border-color: #999;
  color: #555;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.gd-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.gd-lb.open { display: flex; }

.gd-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.93);
}

.gd-lb-x {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.gd-lb-x:hover { background: rgba(255,255,255,0.1); }

.gd-lb-prev,
.gd-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.gd-lb-prev { left: 20px; }
.gd-lb-next { right: 20px; }
.gd-lb-prev:hover,
.gd-lb-next:hover { background: rgba(255,255,255,0.16); }

.gd-lb-stage {
  position: relative;
  z-index: 5;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.gd-lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  z-index: 10;
  letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gd-gallery-area { padding: 0 24px 50px; }
  .gd-hero-img { height: calc(100vh - 74px); min-height: 400px; }
  .gd-hero-img-title { font-size: 38px; }
  .gd-hero-img-content { padding: 0 24px 36px; }
  .gd-hero-img-sub { font-size: 15px; }
  .gd-hero-img-desc { font-size: 13px; }
  .gd-heading { font-size: 36px; }

  .gd-grid { column-count: 2; column-gap: 14px; }
  .gd-item { margin-bottom: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .gd-gallery-area { padding: 0 16px 40px; }
  .gd-hero-img { height: calc(100vh - 74px); min-height: 360px; }
  .gd-hero-img-title { font-size: 26px; }
  .gd-hero-img-content { padding: 0 16px 24px; }
  .gd-hero-img-sub { font-size: 14px; }
  .gd-hero-img-desc { font-size: 12px; }
  .gd-heading { font-size: 30px; }
  .gd-subtext { font-size: 14px; }

  .gd-tabs {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .gd-tab { padding: 8px 16px; font-size: 12.5px; }

  .gd-grid { column-count: 1; column-gap: 0; }
  .gd-item { margin-bottom: 12px; border-radius: 12px; }

  .gd-lb-prev,
  .gd-lb-next { width: 42px; height: 42px; font-size: 18px; }
  .gd-lb-prev { left: 10px; }
  .gd-lb-next { right: 10px; }
}
