@media screen and (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }
  header h2 {
    font-size: 1.1rem;
  }
  header h3 {
    font-size: 1rem;
  }
  header p {
    font-size: 0.8rem;
  }
  footer p {
    font-size: 0.7rem;
  }
  
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f0f0f0;
}

header {
  background: rgb(58,108,147);
  background: linear-gradient(333deg, rgba(58,108,147,1) 0%, rgba(74,132,191,1) 35%, rgba(85,180,255,1) 100%);
  color: white;
  padding: 0;
  margin-bottom: 20px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}

.container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  background: rgb(49, 106, 152);
}

header img {
  margin: 10px;
  border-radius: 10%;
}

header h1, h2 {
  margin: 10px;
  text-align: left;
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: normal;
}

header h3 {
  margin: 10px 0 0 0;
  clear: left;
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(255, 251, 0);
}

header p {
  margin-top: 5px;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}



.gallery {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center the gallery */
  gap: 30px; /* Consistent gap between images */
  padding: 20px;
}

.gallery-item {
  position: relative;
  height: 200px; /* Fixed height for each item */
  width: auto; /* Width adjusts based on content */
}

.gallery-item img {
  height: 100%; /* Image takes the full height of the container */
  width: auto; /* Width adjusts based on aspect ratio */
  display: block; /* Removes bottom space */
  margin: 0 auto; /* Centers the image */
  transition: transform 0.2s ease; /* Smooth transition for scaling */
  cursor: pointer; /* Changes cursor to pointer on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow effect */
}

/* Adjust hover effect to prevent cropping */
.gallery-item:hover img {
  transform: scale(1.05); /* Slightly enlarge and translate */
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Zoom and pan */
.modal-content {
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  position: relative;
  object-fit: contain;
}

.modal-content.zoomed {
  cursor: grab;
}

.modal-content.zoomed:active {
  cursor: grabbing;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* Navigation buttons for Next/Previous */
.nav-btn {
  position: absolute;
  top: 50%;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s;
}

#prev-btn {
  left: 10px;
}

#next-btn {
  right: 10px;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 1);
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}


footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  margin-top: 20px;
  background: rgb(49, 106, 152);
  text-align: center;
  position: relative;
  bottom: 0;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}