.gallery {
  column-count: 5;
  column-gap: 10px;
}

@media (max-width: 1200px) {
  .gallery { column-count: 4; }
}

@media (max-width: 900px) {
  .gallery { column-count: 3; }
}

@media (max-width: 600px) {
  .gallery { column-count: 2; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  cursor: pointer;
}
