/* ============================================================================
   PAGE STYLESHEET: Gallery (public/css/gallery.css)
   ============================================================================ */

/* --- Gallery Category Filter Tabs ------------------------- */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-solid);
  transition: all 0.25s ease;
  cursor: pointer;
}

.gallery-filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: var(--primary, #2B78C5);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(26, 123, 204, 0.3);
}

/* --- Gallery Grid & Photo Cards --------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 36px rgba(17, 82, 138, 0.18);
  border-color: rgba(43, 120, 197, 0.4);
}

.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-title {
  font-weight: 800;
  font-size: 1rem;
  color: #FFFFFF;
}

.gallery-caption {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* --- Fullscreen Lightbox Modal ---------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(11, 37, 69, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-overlay.active {
  display: flex;
}


