/* CSS for section section:Gallery */
#section-gallery-hero {
  padding: 80px 0;
}
#section-gallery-hero .gallery-header {
  margin-bottom: 0;
}
#section-gallery {
  padding: 24px 0 100px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-title {
  font-size: 48px;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.gallery-subtitle {
  font-size: 18px;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  box-sizing: border-box;
}

.card-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-title {
    font-size: 36px;
  }
}

/* GALLERY_LIGHTBOX */
.gallery-card {
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(17, 24, 39, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  background: #fff;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}




