/* Gallery Container */
.gallery-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Main Image Wrapper */
.main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f0f0f0;

}

/* Main Image */
#main-image,
[id^="main-image-"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
}

/* Prev/Next Buttons for Main Image */
button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

#prev,
[id^="prev-"] {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#next,
[id^="next-"] {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* Thumbnail Navigation Wrapper */
.thumbnail-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 15px;
  overflow: hidden;
}

/* Thumbnail Left/Right Buttons */
.thumb-scroll {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.thumb-scroll.left {
  margin-right: 5px;
}

.thumb-scroll.right {
  margin-left: 5px;
}

/* Thumbnail Strip */
.thumbnails {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  flex: 1;
}

.thumbnails::-webkit-scrollbar {
  display: none; /* Hide scroll bar for cleaner look */
}

/* Individual Thumbnails */
.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: border 0.3s ease;
  flex-shrink: 0;
}

.thumbnails img.active {
  border: 2px solid #00ffff;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .thumbnails img {
    width: 60px;
    height: 45px;
  }

  button,
  .thumb-scroll {
    font-size: 1.5rem;
    padding: 6px;
  }

  .main-image-wrapper {
    aspect-ratio: 4 / 3;
  }
}
