/* General Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #ffffff; /* White background */
  color: #2c302a; /* Dark gray text for readability */
}

section {
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #e35b4b; /* Bold red color */
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 2px solid #f39229;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo {
  flex: 1;
}

.logo img {
  width: 100%; /* The logo will scale with the page width */
  max-width: 400px; /* Minimum size of logo */
  height: auto;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #e35b4b; /* Vibrant red */
  font-weight: bold;
}

nav a:hover {
  color: #f39229; /* Orange hover color */
}

/* Event Section */
#event-list {
  list-style-type: none;
  padding: 0;
}

.event-item {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-item h3 {
  color: #f39229; /* Orange for event titles */
}

.event-item p {
  color: #333;
}

.gallery-grid {
  display: grid;
  gap: 10px; /* Adjust this value to reduce space between images */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust columns based on screen size */
  justify-content: center;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}



.gallery-grid img:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}



/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#caption {
  text-align: center;
  color: #f39229;
  font-size: 20px;
  margin-top: 15px;
}

.close {
  color: #f39229;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 35px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #f8bb8f; /* Light peach when hovered */
}

/* Past Events Section */
.event-images-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.event-image {
  position: relative;
}

.event-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Responsive Breakpoints */

/* For screens wider than 1024px */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr); /* 4 items per row */
  }

  .event-images-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  }
}

/* For screens between 768px and 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  }

  .event-images-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  }
}

/* For smaller screens below 768px */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
  }

  .event-images-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
  }
}

/* For very small screens below 480px */
@media (max-width: 479px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 item per row */
  }

  .event-images-grid {
    grid-template-columns: 1fr; /* 1 item per row */
  }
}

/* Footer */
footer {
  background-color: #2c3e50; /* Dark grey background */
  color: #ffffff;
  text-align: center;
  padding: 20px;
}
