.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--beige);
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth), visibility var(--duration-normal) var(--ease-smooth);
}
.lightbox[aria-hidden=false] {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-arrows {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}

.lightbox-counter {
  color: var(--white);
  font-size: 16px;
  opacity: 0.9;
  min-width: 48px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
}
.lightbox-close:hover {
  opacity: 0.8;
}

.lightbox-prev,
.lightbox-next {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  padding: 16px;
  opacity: 0.8;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

/*# sourceMappingURL=historical-gallery.css.map */
