/**
 * Styles communs au site et à l’éditeur.
 */

.aicb-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}

.aicb-carousel-track {
    position: relative;
    width: 100%;
    background: transparent;
}

.aicb-carousel-slide {
    display: none;
    width: 100%;
    background: transparent;
}

.aicb-carousel-slide.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicb-carousel-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.aicb-ratio-square .aicb-carousel-track {
    aspect-ratio: 1 / 1;
}

.aicb-ratio-portrait .aicb-carousel-track {
    aspect-ratio: 4 / 5;
}

.aicb-ratio-landscape .aicb-carousel-track {
    aspect-ratio: 16 / 9;
}

.aicb-ratio-square .aicb-carousel-slide,
.aicb-ratio-portrait .aicb-carousel-slide,
.aicb-ratio-landscape .aicb-carousel-slide {
    height: 100%;
}

.aicb-ratio-square .aicb-carousel-slide img,
.aicb-ratio-portrait .aicb-carousel-slide img,
.aicb-ratio-landscape .aicb-carousel-slide img {
    height: 100%;
    object-fit: cover;
}

.aicb-ratio-auto .aicb-carousel-track {
    min-height: 0;
}

.aicb-ratio-auto .aicb-carousel-slide.is-active {
    min-height: var(--aicb-carousel-height, auto);
}

.aicb-ratio-auto .aicb-carousel-slide img {
    width: 100%;
    height: auto;
}

.aicb-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.72);
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    padding: 0;
    opacity: 0.92;
    transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.aicb-carousel-arrow:hover,
.aicb-carousel-arrow:focus {
    /** background: rgba(255, 255, 255, 0.86);**/
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
    outline-width:0;
    outline-style:none;
}

:where (.wp-site-blocks .aicb-carousel-arrow:focus)
{
        outline-style:none;
    }


.aicb-carousel-prev {
    left: 8px;
}

.aicb-carousel-next {
    right: 8px;
}

.aicb-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
}

.aicb-carousel-dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.aicb-carousel-dot.is-active {
    background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
    .aicb-carousel-arrow {
        width: 24px;
        height: 24px;
        font-size: 22px;
        line-height: 20px;
    }

    .aicb-carousel-prev {
        left: 5px;
    }

    .aicb-carousel-next {
        right: 5px;
    }
}


