/* GALLERY PAGE */
.page-hero {
  min-height: 320px;
  background: linear-gradient(135deg, #0f4d20, #1a7c33, #2db84b);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 20px;
  margin-bottom: 48px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gal-overlay span {
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.gal-zoom-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.4);
}

/* Lightbox Modal */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1; pointer-events: all;
}

.lightbox-content {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95); transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: #fff; font-size: 40px; font-weight: 300;
  cursor: pointer; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--gold); }

#lightbox-caption {
  margin-top: 20px; color: #fff; font-family: 'Nunito', sans-serif;
  font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;
}

/* Instagram CTA */
.instagram-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.ig-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.instagram-cta h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.instagram-cta p {
  color: rgba(255, 255, 255, .8);
  font-size: .88rem;
}

.instagram-cta .btn {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-large {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-tall {
    grid-row: span 1;
  }

  .instagram-cta {
    flex-direction: column;
    text-align: center;
  }

  .instagram-cta .btn {
    margin-left: 0;
  }
}