/* ===============================
   COLLECTION PAGE
=============================== */

.gallery-collection {
  padding: 120px 0;
}

/* Header */
.collection-header {
  text-align: center;
}

.collection-category {
  display: inline-block;
  background: rgba(58,175,160,0.14);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.collection-title {
  font-size: 2.6rem;
  margin: 14px 0 6px;
}

.collection-date {
  color: var(--text-muted);
}

/* ===============================
   MASONRY GRID
=============================== */

.masonry-grid {
  column-count: 3;
  column-gap: 22px;
}

.masonry-grid img {
  width: 100%;
  margin-bottom: 22px;
  border-radius: 18px;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.masonry-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* ===============================
   MODAL
=============================== */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.gallery-modal.active {
  display: flex;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 991px) {
  .masonry-grid {
    column-count: 2;
  }

  .collection-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 575px) {
  .masonry-grid {
    column-count: 1;
  }

  .collection-title {
    font-size: 1.9rem;
  }
}
