/* =======================
   GALLERY PAGE
   ======================= */

/* HERO */
.page-hero.gallery-hero {
  background: url('../images/banners/gallery_banner.jpg') center/cover no-repeat;
}

/* MAIN GALLERY SECTION */
.gallery {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

.gallery header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.gallery header h2 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 10px;
  font-weight: 600;
}

.gallery header p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

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

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  opacity: 0.95;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.caption {
  text-align: center;
  color: var(--gold-soft);
  margin-top: 14px;
  font-size: 1rem;
  max-width: 80%;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
}
.close:hover {
  color: var(--gold);
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery header h2 { font-size: 1.7rem; }
  .gallery header p { font-size: 0.95rem; }
  .gallery-grid img { height: 200px; }
}
