@charset "UTF-8";
/* CSS Document */

.gallery-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.main-image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.main-image-container img.visible {
  opacity: 1;
  z-index: 1;
}
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #333333;
  border: 1px solid #333333;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
  font-size: 20px;
  transition: background 0.3s, color 0.3s;
}
.nav-button.prev {
  left: 10px;
}
.nav-button.next {
  right: 10px;
}
.thumbnails {
  margin-top: 25px;
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}
.thumbnails::-webkit-scrollbar {
  height: 6px;
}
.thumbnails::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}
.thumbnails img {
  height: 100px;
  cursor: pointer;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.thumbnails img.active {
  opacity: 1;
  transform: scale(1.1);
  border: 2px solid #63964B;
}
@media (max-width: 600px) {
  .thumbnails img {
    height: 50px;
  }
  .nav-button {
    padding: 8px 12px;
    font-size: 16px;
  }
}