/*! ResponsiveSlides.js v1.55 by @viljamis */

.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rslides li {
  -webkit-backface-visibility: hidden;
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
}

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
  object-fit: contain;
  max-height: 400px;
  background-color: #f7f7f7;
  border-radius: 8px;
}

/* Navigation controls */
.rslides_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  height: 50px;
  width: 50px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: 0;
  font-size: 24px;
  color: #333;
  transition: all 0.3s ease;
}

.rslides_nav:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rslides_nav.prev {
  left: 10px;
}

.rslides_nav.next {
  right: 10px;
}

/* Thumbnails styling */
#thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#thumbnails img.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#thumbnails img.thumbnail:hover {
  transform: translateY(-2px);
}

#thumbnails img.thumbnail.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .rslides_nav {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }
  
  .rslides img {
    max-height: 300px;
  }
  
  #thumbnails img.thumbnail {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .rslides_nav {
    height: 35px;
    width: 35px;
    font-size: 16px;
  }
  
  .rslides img {
    max-height: 250px;
  }
  
  #thumbnails img.thumbnail {
    width: 40px;
    height: 40px;
  }
}