/* styles.css */

/* General page setup (background already handled in index.html) */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Modal overlay */
#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
}

/* Modal close button */
#close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Main image inside modal */
#modal-img {
  max-width: 100%;
  max-height: 70vh;
  margin-top: 30px;
  border-radius: 10px;
}

/* Modal description */
#modal-description {
  margin-top: 15px;
  color: white;
}

/* Navigation buttons */
#nav-buttons {
  margin-top: 15px;
}
#nav-buttons button {
  padding: 10px 20px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
#nav-buttons button:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Thumbnails container */
#thumbnail-container {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Individual thumbnails */
#thumbnail-container img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

#thumbnail-container img:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #modal-img {
    max-height: 50vh;
  }
  #thumbnail-container img {
    width: 100px;
  }
}

