/* ======================================================
   GALLERY – ART GALLERY STYLE
====================================================== */

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.gallery-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 40px;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* ITEM */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #000;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* OVERLAY */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #fff;
}

.gallery-overlay h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 13px;
  opacity: 0.85;
}

/* HOVER */
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}


/* ======================================================
   LIGHTBOX POPUP
====================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.35s ease;
}

/* Close */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* Zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
