/* =========================================
   GALLERY PAGE – CSS
   ========================================= */

.gallery-page { background: var(--cream-2); }

.gallery-full-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-full-item {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
}

.gallery-full-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-full-item:hover img { transform: scale(1.05); }

.gallery-full-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,14,12,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-full-item:hover .gallery-full-overlay { opacity: 1; }

.gallery-full-overlay span {
  width: 52px;
  height: 52px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

/* GALLERY CATEGORIES */
.gallery-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .gallery-full-grid { columns: 2; }
}

@media (max-width: 480px) {
  .gallery-full-grid { columns: 1; }
}
