/* Gallery page */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--green); color: var(--green-dark); }
.filter-btn.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: opacity .3s, transform .3s;
}
.gallery-item.hidden { display: none; }
.gallery-link { display: block; width: 100%; height: 100%; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,20,14,0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cat {
  align-self: flex-start;
  background: var(--gradient-brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.gallery-title { color: #fff; font-weight: 600; font-size: .92rem; }

.empty-note { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,15,12,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
  padding: 40px 20px;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; margin-top: 16px; font-size: .95rem; text-align: center; max-width: 600px; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--gradient-brand); border-color: transparent; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .filter-btn { padding: 8px 16px; font-size: .8rem; }
}
