/* A variation of the native WordPress image Gallery where the images are displayed as a slider  */

.image-gallery.image-gallery--slider {
    position: relative;
}

.image-gallery--slider-wrapper {
    overflow-x: hidden;
}

.image-gallery.image-gallery--slider .wp-block-gallery {
    flex-wrap: nowrap;
    gap: 0;

    /* copied from swiper ".swiper-wrapper" */
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
}

.image-gallery.image-gallery--slider .wp-block-gallery figure.wp-block-image {
    height: 400px !important;
    width: auto !important;
    max-width: 536px;

    /* copied from swiper ".slide" */
    flex-shrink: 0;
    position: relative;
    transition-property: transform;
    display: block;
}

.image-gallery.image-gallery--slider .wp-block-gallery figure.wp-block-image img {
    height: 100%;
    object-fit: cover;
}

.image-gallery.image-gallery--slider .image-gallery__buttons {
    position: absolute;
    top: -24px;
    left: calc(var(--swiper-gap) + var(--wp--custom--spacing--1-5-rem));
    z-index: 10;
    gap: 12px;
    margin: 0;
}
