/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.section#gallery {
    /* optionnel : donne un peu d'air autour */
    padding: 24px 0;
}

.section#gallery .section-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

/* Piste qui contiendra les .draggable-item (créée en JS) */
.section#gallery .slider-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 20px;
    /* espacement demandé entre images */
    will-change: transform;
    -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
            transform: translateX(0);
    -webkit-transition: -webkit-transform 830ms cubic-bezier(.22, .61, .36, 1);
    transition: -webkit-transform 830ms cubic-bezier(.22, .61, .36, 1);
    -o-transition: transform 830ms cubic-bezier(.22, .61, .36, 1);
    transition: transform 830ms cubic-bezier(.22, .61, .36, 1);
    transition: transform 830ms cubic-bezier(.22, .61, .36, 1), -webkit-transform 830ms cubic-bezier(.22, .61, .36, 1);
    cursor: -webkit-grab;
    cursor: grab;
}

.section#gallery .section-wrapper.dragging .slider-track {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    /* pas d'animation pendant le drag */
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

/* Diapos */
.section#gallery .draggable-item {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 50%;
    /* 50% de large */
    height: 450px;
    /* 450px de haut */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    -webkit-box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
            box-shadow: 0 8px 24px rgb(0 0 0 / 12%);

    @media (max-width: 800px) {
        width: 100%;
    }

}

/* Flèches */
.section#gallery .left-arrow,
.section#gallery .right-arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #fff;
    -webkit-box-shadow: 0 6px 24px rgb(0 0 0 / 18%);
            box-shadow: 0 6px 24px rgb(0 0 0 / 18%);
    display: -ms-grid;
    display: grid;
    place-items: center;
    z-index: 5;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    cursor: pointer;
}

.section#gallery .left-arrow {
    left: 16px;
}

.section#gallery .right-arrow {
    right: 16px;
}

.section#gallery .left-arrow::before,
.section#gallery .right-arrow::before {
    font-size: 22px;
    line-height: 1;
}

.section#gallery .left-arrow::before {
    content: "←";
}

.section#gallery .right-arrow::before {
    content: "→";
}

/* Désactiver une flèche en bout de liste */
.section#gallery .arrow-disabled {
    opacity: 0.35;
    pointer-events: none;
}