/* Gallery Container */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery-container {
    margin-top: 4rem;
  }
}

/* Main Gallery Slideshow */
.gallery-main {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.gallery-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: black;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
  display: block;
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

.gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

.gallery-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnails Section */
.gallery-thumbnails-wrapper {
  position: relative;
  padding: 0 60px;
  margin-top: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumbnail {
  flex: 0 0 auto;
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: #C29244;
  box-shadow: 0 0 15px rgba(194, 146, 68, 0.5);
}

/* Thumbnail Arrows */
.gallery-thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(194, 146, 68, 0.8);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-thumb-arrow:hover {
  background-color: rgba(194, 146, 68, 1);
  transform: translateY(-50%) scale(1.1);
}

.gallery-thumb-arrow-left {
  left: 0;
}

.gallery-thumb-arrow-right {
  right: 0;
}

.gallery-thumb-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .gallery-thumbnails-wrapper {
    padding: 0 50px;
  }

  .gallery-thumbnail {
    width: 120px;
    height: 80px;
  }

  .gallery-thumb-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-thumb-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-thumbnails-wrapper {
    padding: 0 40px;
  }

  .gallery-thumbnail {
    width: 100px;
    height: 70px;
  }
}
