/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}
.gallery-grid figure { max-width: 350px; text-align: center; }
.gallery-grid img {
  width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.05); }
.gallery-grid figcaption {
  margin-top: 8px; font-size: 0.9rem; color: #ddd;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center; align-items: center;
}
.lightbox-content-wrapper {
  display: flex; flex-direction: column; align-items: center;
}
.lightbox img {
  max-width: 90%; max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.lightbox-caption {
  margin-top: 10px; color: #ddd; font-size: 1rem;
  text-align: center; max-width: 80%;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.lightbox .close {
  position: absolute; top: 20px; right: 30px;
  color: white; font-size: 2rem; cursor: pointer;
}
.lightbox .prev, .lightbox .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: white; font-size: 2.5rem;
  cursor: pointer; padding: 10px; user-select: none;
}
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }
.lightbox .prev:hover, .lightbox .next:hover { color: #aaa; }
