.scroll-container {
    width: 100vw;
    height: 100dvh;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    scrollbar-width: none;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 var(--big-margin);
    scroll-behavior: smooth;
}


.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-content {
    display: flex;
    gap: var(--small-margin);
    height: 70dvh;
}

.scroll-image {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

.scroll-container img {
    height: 100%;
    width: auto;
    max-width: none;
}

a img {
    opacity: 1;
    transition: var(--img-opacity);
}

a img:hover {
    opacity: var(--img-hover-opacity);
    transition: var(--img-opacity);
}

.wp-block-image a {
    height: 100%;
    width: auto;
}


/* CAROUSEL MOBILE */

.carousel-container {
    display: none;
    /* Par défaut, caché en desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.galerie-mobile {
    display: none;
}

.wp-element-caption{
	display:none;
}

/* Mode mobile */
@media screen and (max-width: 650px) {
    .scroll-container {
        display: none;
        /* Cache la version desktop */
    }

    .carousel-container {
        display: block;
        /* Affiche le carrousel */
    }
}