.gallery-page {
  min-height: 100svh;
  padding: 7rem 1.5rem 1.5rem;
  background: var(--charcoal);
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  columns: 4 260px;
  column-gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
  border: 1px solid rgba(201,168,76,0.16);
  background: #141010;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.92);
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  color: var(--cream);
  background: rgba(20,15,10,0.72);
  border: 1px solid rgba(201,168,76,0.24);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(35, 28, 20, 0.92);
  border-color: rgba(201,168,76,0.45);
}

.lightbox-close:hover {
  transform: scale(1.04);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 72px;
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@media (max-width: 768px) {
  .gallery-page {
    padding: 6rem 1rem 1rem;
  }

  .gallery-grid {
    columns: 2 160px;
    column-gap: 0.75rem;
  }

  .gallery-grid img {
    margin-bottom: 0.75rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-nav {
    width: 48px;
    height: 58px;
    font-size: 1.9rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 46px;
    height: 46px;
  }
}

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