/* Modern photo gallery styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}

#image-gallery {
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
}

#main-image-container { 
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* changed from 'cover' to 'contain' */
  background-color: #000; /* optional: fills space if image doesn't fill container */
}


#thumbnail-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.thumbnail-image {
  height: 70px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-image:hover,
.thumbnail-image.active {
  opacity: 1;
  border-color: #007bff;
  transform: scale(1.05);
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
