/* Gallery container styling */
#gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Thumbnail image styling */
.thumbnail {
  width: 70px;
  height: 100px;
  object-fit: contain; /* Show entire image without cropping */
  cursor: pointer;
  background-color: transparent; /* Optional: Background color for thumbnails */
}

/* Responsive styles for thumbnails */
@media (min-width: 600px) {
  .thumbnail {
    width: 100px;
    height: 150px;
  }
}

@media (min-width: 1024px) {
  .thumbnail {
    width: 150px;
    height: 200px;
  }
}

#pagination {
  display: flex;
  justify-content: center; /* Center the pagination controls */
  align-items: center;
  gap: 5px;
  margin-top: 40px;
  width: 100%; /* Ensure it takes the full width for centering */
}

#pagination button {
  padding: 5px 10px;
  font-size: 1em;
  cursor: pointer;
	border: none;
	background-color: transparent;
}

#pagination span {
  font-size: 16px;
}



/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column; /* Stack image and caption vertically */
}

/* Modal image styling */
.modal img {
  max-width: 75%;
  max-height: 75%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 10px; /* Space between image and caption */
}

/* Modal caption styling */
#modal-caption {
  color: white;
  font-size: 1em;
  text-align: center;
  max-width: 75%;
  margin-top: 10px;
  padding: 10px;
  background-color: transparent;
}

/* Close button styling */
#close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

/* Left and right navigation buttons */
#prev, #next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0 12px;
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

/* Thumbnail container styling */
.thumbnail-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px; /* Adjust the width as needed */
  margin: 10px;
}

/* Thumbnail caption styling */
.thumbnail-caption {
  font-size: 14px;
  color: #333;
  text-align: center;
  margin-top: 5px;
}
