.tsabiable-image-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tsabiable-carousel-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
}

/* Carousel Item */
.tsabiable-carousel-item {
    flex: 0 0 auto;
    width: 22%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Style */
.tsabiable-image-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Auto-scroll animation keyframes - scrolls exactly 50% for seamless loop */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet/Mobile Auto-scroll Carousel below 991px */
@media screen and (max-width: 991px) {
    .tsabiable-image-carousel {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .tsabiable-carousel-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        overflow: visible;
        animation: autoScroll 20s linear infinite;
        width: max-content;
    }
    
    .tsabiable-carousel-wrapper:hover {
        animation-play-state: paused;
    }
    
    .tsabiable-carousel-item {
        width: calc((100vw - 60px) / 3);
        min-width: calc((100vw - 60px) / 3);
        max-width: calc((100vw - 60px) / 3);
        margin: 0 10px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}
