/* Base styles */
* {
    box-sizing: border-box;
}

.carousel-img-big-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0px;
    /*    background: #f7efed;*/
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Let the carousel size to its container without forcing viewport width */
.carousel-img-big {
    width: 100%;
    margin: 0 auto;
}

    /* Allow peeking neighbors */
    .carousel-img-big .splide__track {
        overflow: visible;
        padding: 0 20px;
    }

    .carousel-img-big .splide__list {
        overflow: visible;
    }

    .carousel-img-big .splide__slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        margin-right: 5px;
        overflow: visible;
    }

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

    /* Transparent card wrapper */
    .carousel-img-big .slide-card {
        width: 100%;
        height: 100%;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* Preserve aspect ratio */
        .carousel-img-big .slide-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

    /* Support for images without slide-card wrapper */
    .carousel-img-big .splide__slide img {
        width: 100%;
        height: auto;
        max-height: min(85vh, 920px);
        object-fit: contain;
        display: block;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,.25);
        transition: all .3s ease;
        transform: scale(1);
        opacity: 1;
    }

    /* Center/Active slide styling - subtle highlight only */
    .carousel-img-big .splide__slide.is-active img {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
        z-index: 2;
    }

    /* Hover effects */
    .carousel-img-big .splide__slide img:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    }

    .carousel-img-big .splide__slide.is-active img:hover {
        transform: scale(1.05);
        opacity: 1;
    }

    /* Hide arrows */
    .carousel-img-big .splide__arrow {
        display: none !important;
    }

    /* Pagination Styling */
    .carousel-img-big .splide__pagination {
        bottom: -1.2rem;
        margin-top: 2.5rem;
        text-align: center;
    }

    .carousel-img-big .splide__pagination__page {
        background: rgba(94, 61, 55, 0.4);
        border: 2px solid rgba(94, 61, 55, 0.6);
        width: 8px;
        height: 8px;
        margin: 0 4px;
        transition: all 0.3s ease;
        border-radius: 50%;
        transform: scale(1.05);
    }

        .carousel-img-big .splide__pagination__page.is-active {
            background: rgba(94, 61, 55, 1);
            border-color: rgba(94, 61, 55, 1);
            transform: scale(1.5);
        }

        .carousel-img-big .splide__pagination__page:hover {
            background: rgba(94, 61, 55, 0.8);
            transform: scale(1.3);
        }

    /* Image placeholder for missing files */
    .carousel-img-big .image-placeholder {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        min-width: 200px;
        height: 90%;
        background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-weight: bold;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        text-align: center;
        transition: all 0.3s ease;
        transform: scale(1);
        opacity: 1;
    }

    /* Center/active slide placeholder styling */
    .carousel-img-big .splide__slide.is-active .image-placeholder {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
        z-index: 2;
    }

    .carousel-img-big .image-placeholder:hover {
        transform: scale(1.05);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    }

    .carousel-img-big .splide__slide.is-active .image-placeholder:hover {
        transform: scale(1.05);
        opacity: 1;
    }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .carousel-img-big .splide__slide {
        height: auto;
    }

        .carousel-img-big .splide__slide img,
        .carousel-img-big .image-placeholder {
            max-height: 90%;
            max-width: 90%;
            height: auto;
        }
}

@media (max-width: 950px) {
    .carousel-img-big .splide__slide {
        height: auto;
    }

        .carousel-img-big .splide__slide img,
        .carousel-img-big .image-placeholder {
            max-height: 90%;
            max-width: 90%;
            height: auto;
        }
}

@media (max-width: 768px) {
    .carousel-img-big .splide__slide {
        height: auto;
    }

        .carousel-img-big .splide__slide img,
        .carousel-img-big .image-placeholder {
            max-height: 90%;
            max-width: 90%;
            height: auto;
            transform: scale(1);
            opacity: 1;
        }

        .carousel-img-big .splide__slide.is-active img,
        .carousel-img-big .splide__slide.is-active .image-placeholder {
            transform: scale(1);
            opacity: 1;
        }

    .carousel-img-big-container {
        padding: 5px 0px;
    }

    .carousel-img-big .splide__track {
        padding: 0 15px;
    }

    .carousel-img-big .splide__slide {
        margin-right: 8px;
    }
}

@media (max-width: 600px) {
    .carousel-img-big .splide__slide {
        height: auto;
    }

        .carousel-img-big .splide__slide img,
        .carousel-img-big .image-placeholder {
            max-height: 90%;
            max-width: 90%;
            height: auto;
        }

    .carousel-img-big .splide__track {
        padding: 0 12px;
    }

    .carousel-img-big .splide__slide {
        margin-right: 6px;
    }
}

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

        .carousel-img-big .splide__slide img,
        .carousel-img-big .image-placeholder {
            max-height: 90%;
            max-width: 90%;
            height: auto;
        }

    .carousel-img-big-container {
        padding: 2px 0px;
    }

    .carousel-img-big .splide__track {
        padding: 0 10px;
    }

    .carousel-img-big .splide__slide {
        margin-right: 5px;
    }

    /* Smaller pagination for mobile */
    .carousel-img-big .splide__pagination__page {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }

        .carousel-img-big .splide__pagination__page.is-active {
            transform: scale(1.4);
        }
}


/* === Pagination lock: keep dots at a fixed spot relative to the carousel === */
.carousel-img-big {
    position: relative;
    /* adjustable variables */
    --dots-gap: 26px; /* distance from bottom of the slider */
    --dots-footer: 52px; /* reserved height for the dots area */
    padding-bottom: var(--dots-footer);
}

    .carousel-img-big .splide__pagination {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: var(--dots-gap);
        margin: 0;
    }

/* Optional: tighter spacing on small screens */
/*@media (max-width: 600px) {
    .carousel-img-big {
        --dots-gap: 12px;
        --dots-footer: 28px;
    }
}*/
/* === End pagination lock overrides === */
