/* ==========================================================================
   CSS PAGES - GALERI.CSS (Galeri Album Foto)
   ========================================================================== */

/* 1. FILTER TABS */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: var(--radius-full);
  background-color: var(--cream);
  border: 1px solid var(--gray-300);
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* 2. ALBUM PHOTO GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(31, 61, 17, 0.9) 0%, rgba(31, 61, 17, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

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

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

.gallery-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.gallery-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filters {
    margin-bottom: 2rem;
  }
}
