/* GALERIE SLIDER MODE */

.galerie-slider-mode {
    position: relative;
    z-index: 0;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    width: 100vw;

    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: .75rem;
    padding-right: .75rem;
}

.galerie-slider-mode .splide__track,
.galerie-slider-mode .splide__list,
.galerie-slider-mode .splide__slide {
    width: 100%;
    height: 450px;
}

.galerie-slider-mode .splide__slide {
    background-size: cover;
    background-position: top;
    margin-left: 0 !important;
}

.galerie-slider-mode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

.gallery-name {
    font-size: 24px;
    color: #9F9595;
    text-decoration: underline;
    text-decoration-color: var(--wp--preset--color--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    text-transform: uppercase;
    margin: 0 0 20px 0 !important;
    text-align: center;
}

.galerie-slider-mode  .splide__track {
    border-radius: 15px;
    overflow: hidden;
}

.galerie-slider-mode .splide__pagination {
    left: 0;
    transform: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    bottom: 0.5em;
    padding: 0 1.5rem;
}

.galerie-slider-mode .splide__pagination li {
    padding: 0;
    width: 100%;
    margin: 0;
}

.galerie-slider-mode .splide__pagination li::before {
    display: none;
}

.galerie-slider-mode .splide__pagination li .splide__pagination__page {
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    height: 5px;
    margin: 0;
}

.galerie-slider-mode .splide__pagination li .splide__pagination__page:focus {
    outline: none;
}

.galerie-slider-mode .splide__pagination li .splide__pagination__page.is-active {
    transform: none;
    background: white !important;
    border: none;
}


@media screen and (min-width: 768px) {
    .galerie-slider-mode {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .galerie-slider-mode .splide__track,
    .galerie-slider-mode .splide__list,
    .galerie-slider-mode .splide__slide {
        height: 600px;
    }

    .galerie-slider-mode .splide__pagination {
        padding: 0 10px;
    }
}

/* GALERIE SLIDER MODE WITH THUMBNAILS */

.galerie-slider-mode-with-thumbnails {
    position: relative;
    z-index: 0;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    width: 100vw;

    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: .75rem;
    padding-right: .75rem;
}

.galerie-slider-mode-with-thumbnails .splide__track,
.galerie-slider-mode-with-thumbnails .splide__list,
.galerie-slider-mode-with-thumbnails .splide__slide {
    width: 100%;
    height: 450px;
}

.galerie-slider-mode-with-thumbnails .splide__slide {
    background-size: cover;
    background-position: top;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.galerie-slider-mode-with-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
}

.galerie-slider-mode-with-thumbnails .splide__track {
    border-radius: 15px;
    overflow: hidden;
}

.galerie-slider-mode-with-thumbnails .splide__pagination {
    display: none;
}

.galerie-slider-mode-with-thumbnails #custom-pagination {
    display: flex;
    margin-top: 10px;
    height: 72px;
    width: 100vw;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    margin-left: 2.25rem;
    margin-right: 2.25rem;
    padding-left: .75rem;
    padding-right: .75rem;
}

.galerie-slider-mode-with-thumbnails #custom-pagination .thumbnail {
    display: flex;
    width: 116px;
    height: 100%;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.galerie-slider-mode-with-thumbnails #custom-pagination .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.galerie-slider-mode-with-thumbnails #custom-pagination .thumbnail.is-active:before {
    content: '';

    display: block;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;

    border-radius: 5px;

    background-color: var(--wp--preset--color--primary);
    opacity: 0.5;
    
    transition: background-color 0.35s ease;
    pointer-events: none;
}

@media screen and (min-width: 768px) {
    .galerie-slider-mode-with-thumbnails {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .galerie-slider-mode-with-thumbnails .splide__track,
    .galerie-slider-mode-with-thumbnails .splide__list,
    .galerie-slider-mode-with-thumbnails .splide__slide {
        height: 600px;
    }

    .galerie-slider-mode-with-thumbnails #custom-pagination {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;

        width: 100%;
    }
}