/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  height: 50vh;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 80px; /* offset navbar */
}

.page-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--gray);
}

.breadcrumb .current {
  color: var(--gold);
}

.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.gallery-section {
  padding: 80px 0 120px;
  background-color: var(--white-cream);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--gray-light);
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ==========================================================================
   MASONRY GALLERY
   ========================================================================== */
.masonry-gallery {
  column-count: 3;
  column-gap: 2px;
  width: 100%;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 2px;
  cursor: pointer;
  background-color: var(--gray-light); /* placeholder bg */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  object-fit: cover;
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease, background 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

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

.masonry-item:hover .masonry-icon {
  transform: translateY(0);
}

.masonry-icon:hover {
  background: var(--gold);
  color: var(--white);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox.active .lightbox__content img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 40px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
  padding: 10px;
}

.lightbox__close:hover {
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 48px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
  padding: 20px;
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 991px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .page-hero__title {
    font-size: 40px;
  }
  .page-hero__subtitle {
    font-size: 14px;
  }
  .masonry-gallery {
    column-count: 1;
  }
  .lightbox__nav {
    font-size: 32px;
    padding: 10px;
  }
  .lightbox__close {
    top: 15px;
    right: 15px;
    font-size: 32px;
  }
}
