.gallery-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gallery-page img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-page img:hover {
  transform: scale(1.05);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  display: flex;
  z-index: 111;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

.close,
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
}

.close {
  top: 20px;
  right: 20px;
  transform: none;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}
