/* ===== GALLERY PAGE ===== */
.gallery-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative; z-index: 1;
}

/* Filter Tabs */
.gal-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 48px;
}
.gal-filter-btn {
  padding: 9px 24px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  border: 1.5px solid rgba(0,240,255,0.2);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.gal-filter-btn:hover {
  border-color: rgba(0,240,255,0.5);
  color: #fff;
  background: rgba(0,240,255,0.06);
}
.gal-filter-btn.active {
  background: linear-gradient(135deg, #007BFF, #00F0FF);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
}

/* Grid */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.gal-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,255,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
.gal-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,123,255,0.2), 0 0 0 1px rgba(0,240,255,0.25);
  border-color: rgba(0,240,255,0.35);
}

/* Image wrap */
.gal-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gal-card:hover .gal-img-wrap img {
  transform: scale(1.07);
}

/* Zoom icon overlay */
.gal-zoom {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,123,255,0.5), rgba(0,240,255,0.3));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.gal-card:hover .gal-zoom { opacity: 1; }
.gal-zoom i {
  font-size: 1.8rem; color: #fff;
  filter: drop-shadow(0 0 10px rgba(0,240,255,0.8));
  transform: scale(0.8); transition: transform 0.3s ease;
}
.gal-card:hover .gal-zoom i { transform: scale(1); }

/* Card body */
.gal-body {
  padding: 20px 22px 24px;
  background: linear-gradient(180deg, rgba(10,15,44,0.6) 0%, rgba(10,15,44,0.95) 100%);
}
.gal-tag {
  display: inline-block;
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.25);
  color: #00F0FF; margin-bottom: 10px;
}
.gal-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 8px;
  line-height: 1.3;
}
.gal-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6; margin: 0;
}

/* Hidden card (filter) */
.gal-card.hidden {
  display: none;
}

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5,9,24,0.96);
  backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 1.6rem; color: rgba(255,255,255,0.6);
  cursor: pointer; background: none; border: none;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}
#lightbox-close:hover { color: #00F0FF; transform: rotate(90deg); }
.lb-img-wrap {
  max-width: 88vw; max-height: 88vh;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 80px rgba(0,240,255,0.15);
  border: 1px solid rgba(0,240,255,0.2);
}
#lightboxImg {
  display: block; max-width: 88vw; max-height: 88vh;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .gal-grid { grid-template-columns: 1fr; gap: 16px; }
  .gal-filters { gap: 8px; }
  .gal-filter-btn { padding: 7px 16px; font-size: 0.8rem; }
}
