.page {
  background: var(--off-white);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 130px 0 96px;
}

.heroBg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0a1628 0%, #112040 42%, #1a3a5c 100%);
}

.heroPattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(201, 146, 58, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 146, 58, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
}

.heroGlow {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 146, 58, 0.12) 0%, transparent 72%);
}

.heroWrap {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
}

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

.title {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  color: #fff;
}

.subtitle {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.heroWave {
  position: absolute;
  inset: auto 0 -2px;
}

.heroWave svg {
  display: block;
  width: 100%;
}

.filterSection {
  padding: 48px 0 24px;
}

.filterTabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filterTab {
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 22, 40, 0.14);
  background: #fff;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.activeTab {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 10px 22px rgba(201, 146, 58, 0.24);
}

.countText {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.countText strong {
  color: var(--navy);
}

.gallerySection {
  padding: 12px 0 84px;
}

.masonryGrid {
  columns: 4;
  column-gap: 1rem;
}

.galleryItem {
  position: relative;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  background: none;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
}

.galleryImage {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.size1 .galleryImage {
  height: 220px;
}

.size2 .galleryImage {
  height: 300px;
}

.size3 .galleryImage {
  height: 260px;
}

.size4 .galleryImage {
  height: 360px;
}

.galleryItem:hover .galleryImage {
  transform: scale(1.04);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.84) 0%, rgba(10, 22, 40, 0.08) 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.galleryItem:hover .overlay {
  opacity: 1;
}

.overlayTitle {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}

.overlayCategory {
  margin-top: 0.2rem;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.emptyState {
  display: grid;
  place-items: center;
  min-height: 280px;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 24px;
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 1.2rem;
  background: rgba(6, 10, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightboxInner {
  position: relative;
  max-width: 980px;
  width: 100%;
}

.lightboxImage {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 20px;
  background: #101b2a;
}

.lightboxInfo {
  margin-top: 1rem;
  text-align: center;
}

.lightboxTitle {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.lightboxCategory {
  margin-top: 0.35rem;
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lightboxCounter {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.closeButton,
.navButton {
  position: absolute;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
}

.closeButton {
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 1.5rem;
}

.navButton {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
}

.navPrev {
  left: -64px;
}

.navNext {
  right: -64px;
}

@media (max-width: 1100px) {
  .masonryGrid {
    columns: 3;
  }

  .navPrev {
    left: 8px;
  }

  .navNext {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 118px 0 84px;
  }

  .masonryGrid {
    columns: 2;
  }

  .closeButton {
    right: 4px;
    top: 4px;
  }
}

@media (max-width: 480px) {
  .masonryGrid {
    columns: 1;
  }
}
