.inline-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.inline-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.inline-carousel img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.carousel-arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  color: #333;
  z-index: 5;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.6); /* optional: improves visibility */
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-thumbnails {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  padding: 10px 0;
  gap: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-thumbnails::-webkit-scrollbar {
  display: none;
}

.carousel-thumbnail {
  height: 60px;
  flex: 0 0 auto; /* prevents thumbnails from shrinking or wrapping */
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
}

.carousel-thumbnail.active {
  border-color: #007bff;
  opacity: 1;
}
@media (max-width: 768px) {
  .carousel-arrow {
    font-size: 1.5rem;
    padding: 0 5px;
  }
  .carousel-thumbnail {
    height: 40px;
  }

}