/* ===== GALLERY PAGE STYLES ===== */

.gallery-header-section { background: var(--cream); padding-bottom: 0; }

/* Filters */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 600;
}

/* Masonry Gallery */
.gallery-masonry {
  columns: 3;
  column-gap: 20px;
}
.gallery-item {
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  min-height: 180px;
  object-fit: cover;
}
.gallery-item.tall .gallery-img { min-height: 340px; }
.gallery-item:hover .gallery-img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,18,10,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background var(--transition);
}
.gallery-overlay span {
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.gallery-item:hover .gallery-overlay { background: rgba(30,18,10,0.35); }
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--orange); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 600px) {
  .gallery-masonry { columns: 1; }
  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}
