/* Hero */
.stories-hero {
  position: relative;
  background: linear-gradient(rgba(31, 42, 68, 0.75), rgba(31, 42, 68, 0.75)),
    url("../images/bg_2.webp") center center / cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 100px 0 60px;
}
/* Gallery */
.gallery-section,
.media-section {
  text-align: center;
  margin-top: 50px;
  padding-bottom: 50px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(20, 30, 40, 0.1);
}

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Stories & Activities */
.stories {
  background: #fafafa;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.story {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}
.story:hover {
  transform: translateY(-6px);
}
.story img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.story-content {
  padding: 16px;
}
.story-content h4 {
  color: var(--dark);
  margin-bottom: 6px;
}
.story-content p {
  color: #666;
  font-size: 0.95rem;
}

/* News & Media */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.media-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 30, 40, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(20, 30, 40, 0.08);
}

.media-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.media-content {
  padding: 14px 16px;
  text-align: left;
}

.media-content h4 {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.media-meta {
  color: #777;
  font-size: 0.9rem;
}

/* Lightbox Styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(3px);
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lightbox .close:hover {
  opacity: 0.8;
}

.caption {
  color: #fff;
  margin-top: 12px;
  font-size: 1rem;
  text-align: center;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
