/* GALLERY HERO */
.gallery-hero {
  background: var(--bark);
  padding: 5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.gallery-hero::before {
  content: '📸';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  opacity: 0.07;
  pointer-events: none;
}
.gh-inner { max-width: 700px; position: relative; z-index: 2; }
.gh-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay2);
  margin-bottom: 1rem;
}
.gh-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--sand);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.gh-title em { font-style: italic; color: var(--clay2); }
.gh-sub {
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.8;
}

/* GALLERY GRID */
.gallery-section {
  background: var(--cream);
  padding: 3rem 2rem;
  min-height: 400px;
}
.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  columns: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }

.gi-img-wrap { overflow: hidden; }
.gi-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover .gi-img-wrap img { transform: scale(1.05); }

.gi-broken {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--sand2);
}

.gi-caption {
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--bark2);
  line-height: 1.5;
  font-family: var(--sans);
}

/* LOADING & EMPTY */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--mist);
}
.gl-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sand2);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gallery-empty {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,17,8,0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lb-inner {
  max-width: 800px;
  width: 100%;
  position: relative;
}
.lb-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.lb-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--sand);
  font-size: 0.92rem;
  line-height: 1.7;
  font-family: var(--sans);
}

.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--mist);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.lb-close:hover { color: var(--sand); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--sand);
  font-size: 1.3rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
  z-index: 10;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(200,90,46,0.3); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
  .lb-prev { left: 0.3rem; }
  .lb-next { right: 0.3rem; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}
