/* GALLERY INTRO */
.gallery-intro {
  padding: 64px 24px;
  text-align: center;
  background: var(--cream);
}
.gallery-intro p {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--deep);
}
.gallery-intro em { font-style: italic; color: var(--rose); }

/* FEATURED */
.gallery-featured { padding: 0 24px 64px; background: var(--cream); }
.gf-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
}
.gf-big, .gf-small {
  position: relative; overflow: hidden; cursor: pointer;
}
.gf-big { height: 520px; }
.gf-small { height: 258px; }
.gf-small-col { display: flex; flex-direction: column; gap: 4px; }
.gf-big img, .gf-small img {
  transition: transform 0.7s ease;
}
.gf-big:hover img, .gf-small:hover img { transform: scale(1.05); }
.gf-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(44,26,31,0.7), transparent);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gf-big:hover .gf-caption,
.gf-small:hover .gf-caption,
.gallery-item:hover .gf-caption { opacity: 1; }

/* MASONRY GRID */
.gallery-grid-section { padding: 80px 24px 96px; background: white; }
.gallery-masonry {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
}
.gallery-item img { transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gm-tall { grid-row: span 2; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20,10,12,0.96);
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 40px 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox p {
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
}
.lb-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 1.2rem;
  width: 40px; height: 40px;
  cursor: pointer; border-radius: 50%;
  transition: all 0.2s ease;
}
.lb-close:hover { background: var(--rose); border-color: var(--rose); }

/* Better image positioning for portraits - show faces */
.gf-big img, .gf-small img,
.gallery-item img {
  object-position: center top;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-featured { padding: 0 12px 40px; }
  .gf-grid { grid-template-columns: 1fr; gap: 8px; }
  .gf-big { height: 320px; }
  .gf-small { height: 220px; }
  .gf-small-col { gap: 8px; }
  .gf-caption { opacity: 1; } /* always show captions on mobile */

  .gallery-grid-section { padding: 48px 12px 64px; }
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 6px;
  }
  .gm-tall { grid-row: span 2; }
}
@media (max-width: 480px) {
  .gf-big { height: 280px; }
  .gf-small { height: 190px; }
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 4px;
  }
  .gm-tall { grid-row: span 2; }
}
