/* ── GALLERY PAGE ── */
.page-hero {
  padding: 10rem 8% 5rem;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232D6A2D'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.page-hero .section-tag { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.45); font-size: 1rem; line-height: 1.8; max-width: 440px; }

/* ── FILTER TABS ── */
#galerie-section { background: var(--cream); padding: 4rem 8%; }
.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.4rem; border-radius: 2rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--muted);
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--verde); border-color: var(--verde); color: #fff;
}

/* ── MASONRY GRID ── */
.gallery-masonry {
  columns: 3; column-gap: 14px;
}
.gallery-item-wrap {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 0.75rem; overflow: hidden;
  cursor: pointer; position: relative;
  display: block;
  background: linear-gradient(135deg, #a8c8a8, #3a6a3a);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item-wrap:hover { transform: scale(1.015); box-shadow: 0 10px 35px rgba(0,0,0,0.15); }
.gallery-item-wrap img {
  width: 100%; display: block;
}
.gallery-item-placeholder {
  width: 100%; padding: 20% 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center;
}
.gallery-item-wrap.tall .gallery-item-placeholder { padding: 35% 1rem; }
.gallery-item-wrap.wide .gallery-item-placeholder { padding: 12% 1rem; }
.gallery-placeholder-icon { font-size: 1.5rem; opacity: 0.3; }
.gallery-item-placeholder p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; font-style: italic;
  color: rgba(255,255,255,0.4);
}
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); display: flex;
  align-items: flex-end; padding: 1.25rem;
  transition: background 0.25s;
}
.gallery-item-wrap:hover .gallery-item-overlay { background: rgba(0,0,0,0.3); }
.gallery-item-meta { opacity: 0; transition: opacity 0.25s; }
.gallery-item-wrap:hover .gallery-item-meta { opacity: 1; }
.gallery-item-meta .cat-badge {
  display: inline-block;
  background: rgba(45,106,45,0.9);
  color: #fff; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 1rem;
  margin-bottom: 0.4rem;
}
.gallery-item-meta .gi-title { color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1rem; }
.gallery-item-wrap[data-cat="nunta"]     { background: linear-gradient(135deg, #5a8a5a, #2D6A2D); }
.gallery-item-wrap[data-cat="corporate"] { background: linear-gradient(135deg, #2a3a4a, #3a4a6a); }
.gallery-item-wrap[data-cat="privat"]   { background: linear-gradient(135deg, #7a6a4a, #9a8a5a); }
.gallery-item-wrap[data-cat="decor"]    { background: linear-gradient(135deg, #6a4a4a, #8a5a5a); }
.gallery-item-wrap.hidden { display: none; }

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
.lb-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.lb-inner img {
  max-width: 100%; max-height: 75vh;
  border-radius: 0.75rem; display: block; object-fit: contain;
}
.lb-placeholder {
  width: 600px; max-width: 80vw; height: 400px;
  border-radius: 0.75rem; background: #1a2a1a;
  display: flex; align-items: center; justify-content: center;
}
.lb-placeholder p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: rgba(255,255,255,0.3); text-align: center;
}
.lb-caption { color: rgba(255,255,255,0.7); font-size: 0.88rem; letter-spacing: 0.04em; text-align: center; }
.lb-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 44px; height: 44px; color: #fff; font-size: 1.2rem;
  cursor: pointer; transition: background 0.2s; display: flex;
  align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: -3.5rem; }
.lb-next { right: -3.5rem; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--verde);
  padding: 3rem 8%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stats-bar .s-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: #fff; line-height: 1;
}
.stats-bar .s-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.3rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--cream); padding: 6rem 8%; text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem; font-size: 0.95rem; line-height: 1.8; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .gallery-masonry { columns: 2; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .lb-prev { left: -2.5rem; }
  .lb-next { right: -2.5rem; }
}
@media (max-width: 600px) {
  .gallery-masonry { columns: 1; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { display: none; }
}
