.rock-wisselende-galerij {
    --rock-gallery-columns: 4;
    --rock-gallery-gap: 16px;
    --rock-gallery-fade-duration: 1300ms;
    width: 100%;
}

.rock-wisselende-galerij__grid {
    display: grid;
    grid-template-columns: repeat(
        var(--rock-gallery-columns),
        minmax(0, 1fr)
    );
    gap: var(--rock-gallery-gap);
}

.rock-wisselende-galerij__slot {
    position: relative;
    aspect-ratio: 800 / 1227;
    overflow: hidden;
    background-color: #f3f1ee;
}

.rock-wisselende-galerij__link {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--rock-gallery-fade-duration) ease;
    cursor: zoom-in;
}

.rock-wisselende-galerij__link {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    border-radius: 0;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    font: inherit;
    text-align: inherit;
	background: none !important;
	padding: 0px !important;
}

.rock-wisselende-galerij__link:hover,
.rock-wisselende-galerij__link:focus,
.rock-wisselende-galerij__link:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rock-wisselende-galerij__link.is-visible {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.rock-wisselende-galerij__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

.rock-wisselende-galerij__link.is-visible:hover
.rock-wisselende-galerij__image {
    transform: scale(1.025);
}


/*
 * Eigen lightbox
 */
html.rock-gallery-lightbox-open {
    overflow: hidden;
}

.rock-gallery-lightbox[hidden] {
    display: none;
}

.rock-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    opacity: 0;
    transition: opacity 250ms ease;
}

.rock-gallery-lightbox.is-open {
    opacity: 1;
}

.rock-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.rock-gallery-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.rock-gallery-lightbox__content {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.rock-gallery-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rock-gallery-lightbox__caption {
    position: absolute;
    right: 0;
    bottom: -38px;
    left: 0;
    color: #fff;
    text-align: center;
}

.rock-gallery-lightbox__counter {
    position: fixed;
    top: 22px;
    left: 24px;
    z-index: 3;
    color: #fff;
    font-size: 14px;
}

.rock-gallery-lightbox__close,
.rock-gallery-lightbox__previous,
.rock-gallery-lightbox__next {
    position: fixed;
    z-index: 3;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.rock-gallery-lightbox__close:hover,
.rock-gallery-lightbox__close:focus,
.rock-gallery-lightbox__previous:hover,
.rock-gallery-lightbox__previous:focus,
.rock-gallery-lightbox__next:hover,
.rock-gallery-lightbox__next:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: #DFD0BB;
}

.rock-gallery-lightbox__close:focus-visible,
.rock-gallery-lightbox__previous:focus-visible,
.rock-gallery-lightbox__next:focus-visible {
    outline: none;
}

.rock-gallery-lightbox__close {
    top: 10px;
    right: 20px;
    font-size: 42px;
    line-height: 1;
}

.rock-gallery-lightbox__previous,
.rock-gallery-lightbox__next {
    top: 50%;
    padding: 15px;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.rock-gallery-lightbox__previous {
    left: 10px;
}

.rock-gallery-lightbox__next {
    right: 10px;
}


/*
 * Responsive galerij
 */
@media (max-width: 1024px) {
    .rock-wisselende-galerij {
        --rock-gallery-columns: 3;
    }
}

@media (max-width: 767px) {
    .rock-wisselende-galerij {
        --rock-gallery-columns: 2;
        --rock-gallery-gap: 10px;
    }

    .rock-gallery-lightbox__dialog {
        padding: 55px 45px;
    }

    .rock-gallery-lightbox__previous {
        left: 0;
    }

    .rock-gallery-lightbox__next {
        right: 0;
    }
    .wisselende-galerij-container,
    .wisselende-galerij-shortcode {
        --flex-wrap: nowrap !important;
        --flex-wrap-mobile: nowrap !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 767px) {
    body .elementor .wisselende-galerij-container.e-con.e-flex {
        --flex-wrap-mobile: nowrap !important;
        --flex-wrap: nowrap !important;

        flex-wrap: nowrap !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    body .elementor .wisselende-galerij-container.e-con.e-flex > * {
        flex-shrink: 0 !important;
    }

    body .elementor .wisselende-galerij-shortcode {
        width: 100% !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }
}

/*
 * Verminderde beweging
 */
@media (prefers-reduced-motion: reduce) {
    .rock-wisselende-galerij__link,
    .rock-wisselende-galerij__image,
    .rock-gallery-lightbox {
        transition: none;
    }

    .rock-wisselende-galerij__link.is-visible:hover
    .rock-wisselende-galerij__image {
        transform: none;
    }
}