/* Event Gallery and Lightbox */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.event-gallery img {
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
}
.lightbox-close {
  top: 10px;
  right: 10px;
  transform: none;
}
.lightbox-prev { left: -50px; }
.lightbox-next { right: -50px; }
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
.event-carousel {
  position: relative;
  margin: 12px auto 0;
  max-width: 640px;
  width: 100%;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f4f7;
  aspect-ratio: 16 / 9;
}
.event-carousel img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-carousel img.active { display: block; }
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (max-width: 768px) {
  .carousel-viewport { aspect-ratio: 4 / 3; }
  .carousel-prev, .carousel-next { padding: 14px 18px; }
}
