.product-and-solution-small-carousel {
    width: 100%;
    position: relative;
    padding: 0px 50px;
}

.product-and-solution-small-carousel .swiper-container{
    --swiper-navigation-size: 30px; 
    --swiper-navigation-sides-offset: -10px; 
    --swiper-navigation-top-offset: 45%;
    --swiper-navigation-color: black; 
    width: 100%;
    overflow: hidden;
}

.product-and-solution-small-carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-and-solution-small-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.product-and-solution-small-carousel .img-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-and-solution-small-carousel .swiper-slide h3 {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.product-and-solution-small-carousel .swiper-slide a:where(:not(.wp-element-button)) {
    text-decoration: none;
}

.product-and-solution-small-carousel .truncate-title {
    display: -webkit-box;        /* Use a box model that supports line clamping */
    -webkit-line-clamp: 3;       /* Display only the first 3 lines */
    -webkit-box-orient: vertical;/* Set the box orientation to vertical */
    overflow: hidden;            /* Hide the overflowing text */
    text-overflow: ellipsis;     /* Show ellipsis for truncated text */
    max-height: calc(1.5em * 3); /* Limit the maximum height to 2 lines (line height of 1.5em) */
}

.product-and-solution-small-carousel .truncate-excerpt {
    display: -webkit-box;        /* Use a box model that supports line clamping */
    -webkit-line-clamp: 4;       /* Display only the first 3 lines */
    -webkit-box-orient: vertical;/* Set the box orientation to vertical */
    overflow: hidden;            /* Hide the overflowing text */
    text-overflow: ellipsis;     /* Show ellipsis for truncated text */
    max-height: calc(1.5em * 4); /* Limit the maximum height to 3 lines (line height of 1.5em) */
}

/* Mobile */

@media (max-width: 781px) {
    .product-and-solution-small-carousel {
        padding: 0;
    }

    .product-and-solution-small-carousel .swiper-button-prev,
    .product-and-solution-small-carousel .swiper-button-next {
        display: none !important;
    }
}
