/* ===== Masonry Grid ===== */
.gallery {
  column-count: 3;
  column-gap: 15px;
  padding: 10px;
}

.gallery-item {
  margin-bottom: 15px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform .4s ease;
}

/* Hover Zoom */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Lazy Load Blur ===== */
.lazy-img {
  filter: blur(12px);
  transition: filter .35s linear;
}

.lazy-img.loaded {
  filter: blur(0);
}

/* ===== Lightbox ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: .3s ease;
  z-index: 9999;
}

#lightbox.show {
  visibility: visible;
  opacity: 1;
}

#lightbox img {
  width: 90%;
  max-width: 650px;
  border-radius: 10px;
}

/* ===== Load More Button ===== */
.load-more {
  text-align: center;
  margin: 20px 0;
}

.load-more button {
  padding: 10px 20px;
  font-size: 16px;
  background: #c62828;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.load-more button:hover {
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

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