/* GALERIA */
#gallery-overlay {
  position: fixed; inset: 0; background: rgba(25,22,16,0.97);
  backdrop-filter: blur(16px); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
#gallery-overlay.open { opacity: 1; pointer-events: all; }
.gallery-inner { width: 100%; max-width: 960px; padding: 80px 48px; position: relative; overflow-y: auto; max-height: 100vh; }
.gallery-close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px;
  background: none; border: none; color: var(--muted); font-size: 18px;
  cursor: pointer; transition: color 0.3s; display: flex; align-items: center; justify-content: center;
}
.gallery-close:hover { color: var(--text); }
.gallery-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 48px; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-inner { padding: 80px 24px; } }
.gallery-item {
  aspect-ratio: 4/3; background: var(--surface);
  border: 1px solid rgba(140,132,119,0.15); overflow: hidden;
  position: relative; cursor: pointer; transition: border-color 0.3s;
}
.gallery-item:hover { border-color: rgba(178,152,125,0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* LIGHTBOX */
#lightbox {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; display: block;
  border: 1px solid rgba(178,152,125,0.15);
}
#lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; transition: color 0.3s;
}
#lightbox-close:hover { color: var(--text); }
#lightbox-prev, #lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  font-size: 48px; cursor: pointer; padding: 16px;
  transition: color 0.3s; line-height: 1;
}
#lightbox-prev:hover, #lightbox-next:hover { color: var(--text); }
#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }
