.carousel-img-small-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Custom Splide styling */
.carousel-img-small .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px;
}

.carousel-img-small .splide__slide img {
    max-height: 200px; /* Reduced from 250px to accommodate scaling */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

/* Center/Active slide styling */
.carousel-img-small .splide__slide.is-active img {
    transform: scale(1.2); /* 200px * 1.2 = 240px max */
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* Custom gap between slides */
.carousel-img-small .splide__track {
    padding: 0 10px;
    overflow: visible; /* Allow scaled images to show fully */
}

.carousel-img-small .splide__list {
    overflow: visible; /* Allow scaled images to show fully */
}

.carousel-img-small .splide__slide {
    margin-right: 15px;
    overflow: visible; /* Allow scaled images to show fully */
}

.carousel-img-small .splide__slide:last-child {
    margin-right: 0;
}

/* Arrow styling */
.carousel-img-small .splide__arrow {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}



.carousel-img-small .splide__arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-img-small .splide__arrow svg {
    fill: white;
}

/* Image placeholder for missing files */
.carousel-img-small .image-placeholder {
    max-height: 200px; /* Reduced from 250px to match img */
    width: auto;
    min-width: 120px; /* Reduced from 150px */
    height: 200px; /* Reduced from 250px */
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

/* Center/Active slide placeholder styling */
.carousel-img-small .splide__slide.is-active .image-placeholder {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .carousel-img-small .splide__slide {
        height: 200px; /* Reduced container height */
    }

    .carousel-img-small .splide__slide img,
    .carousel-img-small .image-placeholder {
        max-height: 160px; /* 160px * 1.15 = 184px max */
    }

    .carousel-img-small .splide__slide.is-active img,
    .carousel-img-small .splide__slide.is-active .image-placeholder {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .carousel-img-small .splide__slide {
        height: 145px; /* Reduced container height */
    }

    .carousel-img-small .splide__slide img,
    .carousel-img-small .image-placeholder {
        max-height: 120px; /* 120px * 1.1 = 132px max */
        min-width: 80px; /* Reduced min-width */
    }

    .carousel-img-small .splide__slide.is-active img,
    .carousel-img-small .splide__slide.is-active .image-placeholder {
        transform: scale(1.1);
    }

    .carousel-img-small-container {
        padding: 0px 10px;
    }

    /* Reduced horizontal padding and gap for tighter spacing */
    .carousel-img-small .splide__track {
        padding: 0 8px;
    }

    .carousel-img-small .splide__slide {
        margin-right: 8px; /* Reduced gap from 20px to 8px */
    }
}

/* Medium-small screens */
@media (max-width: 600px) {
    .carousel-img-small .splide__slide {
        height: 120px;
    }

    .carousel-img-small .splide__slide img,
    .carousel-img-small .image-placeholder {
        max-height: 100px;
        min-width: 70px;
    }

    .carousel-img-small .splide__slide.is-active img,
    .carousel-img-small .splide__slide.is-active .image-placeholder {
        transform: scale(1.08);
    }

    .carousel-img-small .splide__track {
        padding: 0 6px;
    }

    .carousel-img-small .splide__slide {
        margin-right: 5px; /* Even tighter spacing */
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .carousel-img-small .splide__slide {
        height: 105px; /* Smaller container for very small screens */
    }

    .carousel-img-small .splide__slide img,
    .carousel-img-small .image-placeholder {
        max-height: 90px; /* 90px * 1.05 = 94.5px max */
        min-width: 60px; /* Reduced min-width */
    }

    .carousel-img-small .splide__slide.is-active img,
    .carousel-img-small .splide__slide.is-active .image-placeholder {
        transform: scale(1.05); /* Minimal scaling for tiny screens */
    }

    .carousel-img-small-container {
        padding: 0 8px; /* Reduced padding */
    }

    /* Minimal horizontal padding and gap for maximum space usage */
    .carousel-img-small .splide__track {
        padding: 0 8px; /* Further reduced padding */
    }

    .carousel-img-small .splide__slide {
        margin-right: 3px; /* Very minimal gap for tight spacing */
    }

    /* Smaller arrow buttons for iPhone SE */
    .carousel-img-small .splide__arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-img-small .splide__arrow svg {
        width: 12px;
        height: 12px;
    }
}