
body{
  background: #f9f9f9;
}

/* ===================== GALLERY SECTION ===================== */

.gallery-section,
.infrastructure-section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(143, 35, 110, 0.158);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-section.show,
.infrastructure-section.show {
  opacity: 1;
  transform: translateY(0);
}

#image-gallery-section {
  background-color: rgba(128, 23, 84, 0);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.image-item {
  overflow: hidden;
  border: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.image-item img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

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


/* ===================== YEAR SECTION ===================== */

.yearly-gallery h2 {
  font-size: 30px;
  color: #333;
  margin-bottom: 30px;
}

.year-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.year-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  padding: 20px;
  width: 250px;
  transition: transform 0.3s ease;
}

.year-card:hover {
  transform: translateY(-8px);
}

.year-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.year-btn {
  padding: 10px 20px;
  font-size: 16px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.year-btn:hover {
  background: #0056b3;
}

/* ===================== VIDEO SECTION ===================== */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}


.gallery video {
  width: 300px;
  height: 200px;
  cursor: pointer;
  object-fit: cover;
  border: 5px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===================== VIDEO MODAL ===================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal video {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .gallery video {
    width: 100%;
    height: 180px; 
    border-radius: 12px;
  }
  
  .close-btn {
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
    gap: 20px;
  }

  .gallery video {
    height: 180px;
  }
}



