/* Gallery Page CSS */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: var(--transition);
}
.gallery-item.hidden {
  display: none;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,92,56,.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
  color: white;
}
.gallery-overlay i { font-size: 1.8rem; }
.gallery-overlay span { font-size: .82rem; font-weight: 600; text-align: center; padding: 0 12px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(900px, 95vw);
  width: 100%;
  animation: fadeUp .3s ease;
}

.lb-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lb-caption {
  text-align: center;
  padding: 20px;
  color: white;
}
.lb-caption h3 { font-size: 1.1rem; color: white; margin-bottom: 6px; }
.lb-caption p  { font-size: .88rem; color: rgba(255,255,255,.7); }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.lb-close {
  top: -50px; right: 0;
  width: 40px; height: 40px;
  font-size: 1rem;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.1rem;
}
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--green);
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
