.image-slider-wrapper {
    position: relative;
    /* max-width: 100%;
    width: 100%; */
    margin: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-slider-main {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Make non-active slides unclickable */
}

.image-slider-slide.active {
    opacity: 1;
    pointer-events: auto; /* Make active slide clickable */
}

.image-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
}

.image-slider-prev,
.image-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.image-slider-prev {
    left: 0px;
}

.image-slider-next {
    right: 0px;
}

.image-slider-prev:hover,
.image-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-slider-thumbnails-wrapper {
    position: relative;
    background: #ffffff;
    padding: 8px;
}

.image-slider-thumbnails {
    display: flex;
    gap: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 49px;
}

.image-slider-thumbnails-container {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    height: auto;
}

.image-slider-thumbnail {
    flex-shrink: 0;
    width: calc((100% - 48px - 64px) / 6);
    min-width: 80px;
    max-width: 120px;
    aspect-ratio: 16 / 9;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: #f5f5f5;
}

.image-slider-thumbnail.active {
    border-color: #007cba;
}

.image-slider-thumbnail:hover {
    border-color: #666;
}

.image-slider-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
}

.image-slider-thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.image-slider-thumbnail-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-slider-thumbnail-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-slider-thumbnail-prev {
    left: -2px;
}

.image-slider-thumbnail-next {
    right: -2px;
}

.image-slider-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .image-slider-main {
        height: 250px;
    }
    
    .image-slider-prev,
    .image-slider-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .image-slider-prev {
        left: 0px;
    }
    
    .image-slider-next {
        right: 0px;
    }
    
    .image-slider-thumbnails-wrapper {
        padding: 6px;
    }
    
    .image-slider-thumbnails {
        gap: 6px;
        height: auto;
        min-height: 38px;
    }
    
    .image-slider-thumbnails-container {
        gap: 6px;
        height: auto;
    }
    
    .image-slider-thumbnail {
        width: calc((100% - 36px - 50px) / 6);
        min-width: 60px;
        max-width: 80px;
        aspect-ratio: 16 / 9;
    }
    
    .image-slider-thumbnail-nav {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}