.gallery-hero {
  min-height: 460px;
}

#gallery {
  background: var(--cream);
}

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

.gallery-card {
  background: var(--warm-white);
  border: 1px solid rgba(0,40,104,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,40,104,0.12);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--navy);
}

.gallery-card-body {
  padding: 1.25rem;
}

.gallery-card-body span {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}

@media (max-width: 875px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Premium gallery controls + lightbox */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.gallery-filter {
  border: 1px solid rgba(0, 40, 104, 0.12);
  background: var(--warm-white);
  color: var(--navy);
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 40, 104, 0.14);
  transform: translateY(-2px);
}

.gallery-card {
  border-radius: 14px;
  cursor: pointer;
}

.gallery-card-image-wrap {
  overflow: hidden;
  background: var(--navy);
}

.gallery-card img {
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-empty {
  grid-column: 1 / -1;
  background: var(--warm-white);
  border: 1px solid rgba(0, 40, 104, 0.08);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  color: var(--text-muted);
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 17, 45, 0.86);
  backdrop-filter: blur(8px);
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-panel {
  width: min(100%, 980px);
  max-height: 88vh;
  background: var(--warm-white);
  border: 1px solid rgba(253, 185, 19, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: var(--navy-dark);
}

.gallery-lightbox-caption {
  padding: 1.25rem 1.5rem;
}

.gallery-lightbox-category {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-lightbox-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.gallery-lightbox-description {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: fixed;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 40, 104, 0.76);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 2.4rem;
  line-height: 1;
}

.gallery-lightbox-nav:hover {
  transform: translateY(calc(-50% - 2px));
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

@media (max-width: 875px) {
  .gallery-lightbox {
    padding: 1rem;
  }

  .gallery-lightbox-nav {
    display: none;
  }
}
