/*
==========================================================================
BLUEPRINT CLIENT LOGOS — CAROUSEL
==========================================================================
*/

/* CAROUSEL -- SECTION WRAPPER */

.client-logos-section {
    overflow: hidden;
    width: 100%;
}


/* CAROUSEL -- TRACK */

.client-logos-carousel {
    max-width: 1200px;
    margin: 0 auto;
    container-type: inline-size;
    container-name: bcl-carousel;
}

.client-logos-carousel .slick-list {
    padding: 20px 0;
}

.client-logos-carousel .slick-slide {
    outline: none;
}

/* Flex track — gutters live on .logo-slide (clamp / cqi), not gap here */
.client-logos-carousel .slick-track {
    display: flex;
    align-items: center;
}


/* CAROUSEL -- SLIDE */

.logo-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
    width: 100%;
    min-width: 0;
    /* Viewport fallback when container queries unsupported */
    padding-inline: clamp(6px, 3vw, 20px);
    box-sizing: border-box;
}

@supports (container-type: inline-size) {
    .client-logos-carousel .logo-slide {
        padding-inline: clamp(6px, 5cqi, 22px);
    }
}

.client-logos-section .logo-slide img {
    max-width: min(180px, 100%);
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}


/* CAROUSEL -- LINKED LOGOS */

.logo-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.logo-slide a:hover {
    opacity: 1;
}


/* CAROUSEL -- LOGO STYLE: DARK */

.logo-style-dark img {
    filter: brightness(0) invert(0);
}


/* CAROUSEL -- LOGO STYLE: LIGHT */

.logo-style-light img {
    filter: brightness(0) invert(1);
}


/* CAROUSEL -- LOGO STYLE: FULL COLOR (natural asset — no mask) */

.logo-style-fullcolor img {
    filter: none;
}


/* CAROUSEL -- LOGO STYLE: COLOR (CSS mask — requires brand color in PHP) */

.logo-style-color img {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    max-width: min(180px, 100%);
    max-height: 80px;
    width: auto;
    height: auto;
}

.logo-style-color .logo-mask {
    display: inline-block;
    width: min(180px, 100%);
    max-width: 100%;
    height: 80px;
    max-height: min(80px, 100%);
    background-color: var(--logo-color, transparent);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.logo-style-color a:hover .logo-mask {
    opacity: 0.75;
}


/* CAROUSEL -- DUAL SPACER */

.bcl-dual-spacer {
    display: block;
}


/* CAROUSEL -- RESPONSIVE (heights + asset caps only; gutters use clamp/cqi above) */

@media screen and (max-width: 768px) {

    .logo-slide {
        height: 80px;
    }

    .client-logos-section .logo-slide img {
        max-height: 60px;
    }

    .logo-style-color img {
        max-height: 60px;
    }

    .logo-style-color .logo-mask {
        height: auto;
        aspect-ratio: 180 / 80;
        max-height: 60px;
    }

}

@media screen and (max-width: 480px) {

    .logo-slide {
        height: 60px;
    }

    .client-logos-section .logo-slide img {
        max-height: 50px;
    }

    .logo-style-color img {
        max-height: 50px;
    }

    .logo-style-color .logo-mask {
        height: auto;
        aspect-ratio: 180 / 80;
        max-height: 50px;
    }

}
