/* Last Year's Event Section */
.banner {
  background-image: linear-gradient(rgba(19, 2, 35, 0.75), rgba(0, 0, 0, 0.75));
}

/* Gallery Section */
.gallery {
  padding: 50px 20px;
  text-align: center;
  background-color: #f4f4f4;
  width: 100%;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  /* padding: 0;
  margin: 0; */
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 2 items per row */
  gap: 20px;
  width: 100%;  /* Ensure it spans the full width of the page */
  max-width: 100%;  /* Prevent exceeding container width */
  justify-items: center;  /* Center the images horizontally */
}

.photo-grid img {
  width: 100%;  /* Images take up full width of their grid cell */
  height: auto;  /* Maintain aspect ratio */
  max-width: 600px;  /* Optional: Constrain the maximum width of images */
  object-fit: cover;  /* Maintain aspect ratio of images */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
}

/* Mobile View: 1 image per row */
@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr;  /* 1 item per row on mobile */
  }

  .photo-grid img {
    width: 100%;  /* 100% width for mobile view */
    height: auto;  /* Auto height to maintain aspect ratio */
  }
}
