/* ── GALLERY PAGE ──────────────────────────────────────────────────────────── */

/* ── HERO ─────────────────────────────────────────── */
.gal-hero {
  position: relative;
  background: #1C1C1E;
  padding: 160px 40px 80px;
  overflow: hidden;
}

/* Grain overlay */
.gal-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
}


.gal-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.gal-hero__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d0b608;
  margin-bottom: 20px;
}

.gal-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.gal-hero__title em {
  font-style: italic;
  color: #d0b608;
}

.gal-hero__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 52px;
  max-width: 480px;
  line-height: 1.6;
}

/* ── PILLS ────────────────────────────────────────── */
.gal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gal-pill {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.gal-pill:hover {
  border-color: rgba(208,182,8,0.5);
  color: rgba(255,255,255,0.85);
}

.gal-pill.active {
  background: #d0b608;
  border-color: #d0b608;
  color: #1C1C1E;
  font-weight: 700;
}

/* ── SECTION ──────────────────────────────────────── */
.gal-section {
  background: #e2e2e2;
  padding: 48px 32px 80px;
}

/* ── MASONRY GRID (puzzle-like) ───────────────────── */
.gal-masonry {
  columns: 3 260px;
  column-gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── PHOTO ITEM ───────────────────────────────────── */
.gal-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #ccc;
}

/* Make some items taller for puzzle variety */
.gal-item:nth-child(4n+1) { margin-bottom: 10px; }
.gal-item:nth-child(4n+2) { transform-origin: center; }

.gal-item__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gal-item:hover .gal-item__img {
  transform: scale(1.05);
}

/* Overlay */
.gal-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,28,30,0.72) 0%,
    rgba(28,28,30,0) 50%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px;
}

.gal-item:hover .gal-item__overlay { opacity: 1; }

.gal-item__zoom {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: auto;
  transition: background 0.2s;
}

.gal-item:hover .gal-item__zoom { background: rgba(208,182,8,0.85); color: #1C1C1E; }

.gal-item__title {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

/* ── EMPTY STATE ──────────────────────────────────── */
.gal-empty {
  text-align: center;
  padding: 100px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #888;
}

/* ── LIGHTBOX ─────────────────────────────────────── */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gal-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.gal-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.gal-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  max-height: 90vh;
}

.gal-lightbox__img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}

.gal-lightbox__caption {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-align: center;
}

.gal-lightbox__counter {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Close button */
.gal-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.gal-lightbox__close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Arrows */
.gal-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.gal-lightbox__arrow:hover {
  background: #d0b608;
  color: #1C1C1E;
  border-color: #d0b608;
  transform: translateY(-50%) scale(1.08);
}
.gal-lightbox__arrow--prev { left: 20px; }
.gal-lightbox__arrow--next { right: 20px; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .gal-hero { padding: 130px 24px 64px; }
  .gal-masonry { columns: 2 200px; }
  .gal-lightbox__arrow--prev { left: 8px; }
  .gal-lightbox__arrow--next { right: 8px; }
}

@media (max-width: 520px) {
  .gal-hero { padding: 110px 20px 48px; }
  .gal-masonry { columns: 2 120px; column-gap: 6px; }
  .gal-section { padding: 32px 12px 60px; }
}
