/* Filter Bar Navigation */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

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

/* Gallery Masonry Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card.is-hidden {
  display: none;
}

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

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.92) 0%, rgba(10, 17, 40, 0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.gallery-card:hover .gallery-card__zoom {
  background: var(--gold);
  transform: scale(1.1);
}

.gallery-card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.gallery-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 17, 40, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.is-open .lightbox__dialog {
  transform: scale(1);
}

.lightbox__image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lightbox__caption {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  text-align: center;
}

.lightbox__counter {
  display: inline-block;
  background: rgba(197, 160, 89, 0.25);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-right: 10px;
  letter-spacing: 0.1em;
}
  font-size: 1.25rem;
  color: var(--white);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.lightbox__close:hover {
  color: var(--gold-light);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.lightbox__arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox__arrow--prev {
  left: 24px;
}

.lightbox__arrow--next {
  right: 24px;
}
