/* masonry mosaic via CSS columns */
.gallery {
  column-count: 4;
  column-gap: 14px;
  margin: 40px 0;
}

@media (max-width: 1000px) {
  .gallery {
    column-count: 3;
  }
}
@media (max-width: 750px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px 0;
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.05);
}

/* lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--rounded);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0 40px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  line-height: 1;
  padding: 10px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-close {
  top: 16px;
  right: 20px;
  font-size: 2.4rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

@media (max-width: 750px) {
  .lightbox-nav {
    font-size: 2.2rem;
  }
}

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