/* ====== Gallery grid ====== */
.gallery-section { margin-bottom: 1rem; padding: 2rem 0; }
.gallery-section h2 { color:#2d5016; margin-bottom:1rem; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
}
.gallery-grid a{
  display:block; position:relative; overflow:hidden;
  border-radius: 12px; border:1px solid var(--line); background:var(--card);
}
.gallery-grid img{
  width:100%; height:210px; object-fit:cover; transition: transform .3s ease;
  display:block;
}
.gallery-grid a:hover img{ transform: scale(1.04); }

/* Responsive */
@media (max-width: 992px){ .gallery-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 768px){ .gallery-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .gallery-grid{ grid-template-columns: 1fr;} }

/* ====== Lightbox ====== */
.glb-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  display:none; align-items:center; justify-content:center; z-index: 2000;
  padding: 3.5rem 1rem 2rem;
}
.glb-overlay.active{ display:flex; }

.glb-figure{ max-width: min(1100px, 92vw); width:100%; text-align:center; }
.glb-figure img{
  width:100%; max-height: 78vh; object-fit: contain; border-radius:10px; background:#111;
}
.glb-figure figcaption{
  color:#fff; margin-top:.75rem; font-size:.95rem; opacity:.9;
}

/* Nav buttons */
.glb-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  font-size: 2rem; padding:.35rem .6rem; line-height:1; border:none;
  background: rgba(0,0,0,.45); color:#fff; cursor:pointer; border-radius:9px;
}
.glb-prev{ left: 1rem; } .glb-next{ right: 1rem; }
.glb-nav:hover{ background: rgba(0,0,0,.6); }

/* Close */
.glb-close{
  position:absolute; right:.8rem; top:.6rem; font-size:2rem; color:#fff;
  background: transparent; border:none; cursor:pointer; line-height:1;
}

/* Dots */
.glb-dots{
  position:absolute; bottom: .8rem; left:50%; transform: translateX(-50%);
  display:flex; gap:.5rem;
}
.glb-dots button{
  width:9px; height:9px; border-radius:50%; border:none; background:#ffffff55; cursor:pointer;
}
.glb-dots button.active{ background:#fff; }
/* Video responsive */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

