/* ========== FILTER TABS ========== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: transparent;
  color: var(--color-text-muted);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
}

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

/* ========== GALLERY GRID ========== */
.gallery-section {
  padding: 0 2rem 6rem;
  background: var(--color-bg-dark);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: var(--color-bg-elevated);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 175, 55, 0.5);
}

.gallery-item.hidden {
  display: none;
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

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

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

.gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 0, 21, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-expand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-accent);
  backdrop-filter: blur(4px);
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-category-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gallery-info h3 {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.gallery-info p {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.gallery-meta span {
  opacity: 0.6;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 16, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.lightbox-body {
  padding: 2rem;
}

.lightbox-category {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lightbox-title {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.lightbox-desc {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.lightbox-footer {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-gold);
}

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

@media screen and (max-width: 768px) {
  .gallery-section {
    padding: 0 1rem 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .lightbox-inner {
    border-radius: 16px;
  }

  .lightbox-body {
    padding: 1.5rem;
  }

  .lightbox-title {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
