/* =========================================================
   PROJECTGALERIJ
========================================================= */

.reggehave-gallery {
    --gallery-blue: #034f70;
    --gallery-orange: #f39200;
    --gallery-white: #ffffff;

    position: relative;
    width: 100%;
    margin: 0;
    outline: none;
}

.reggehave-gallery *,
.reggehave-gallery *::before,
.reggehave-gallery *::after {
    box-sizing: border-box;
}


/* =========================================================
   VIEWPORT
========================================================= */

.reggehave-gallery__viewport {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 12px;
	
    background: transparent;
    touch-action: pan-y;
}


/* =========================================================
   TRACK
========================================================= */

.reggehave-gallery__track {
    display: flex;
    align-items: flex-start;

    width: 100%;

    transition:
        transform .45s cubic-bezier(.4, 0, .2, 1);

    will-change: transform;
}


/* =========================================================
   SLIDE
========================================================= */

.reggehave-gallery__slide {
    position: relative;

    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* =========================================================
   AFBEELDING BUTTON
========================================================= */

.reggehave-gallery__image-button {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    cursor: zoom-in;
    overflow: hidden;
}


/* =========================================================
   AFBEELDING
========================================================= */

.reggehave-gallery__image {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}


/* =========================================================
   ZOOM ICOON
========================================================= */

.reggehave-gallery__zoom {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(3, 79, 112, .86);

    opacity: 0;

    transform: scale(.9);

    transition:
        opacity .2s ease,
        transform .2s ease,
        background-color .2s ease;
}


.reggehave-gallery__zoom::before {
    content: "";

    position: absolute;

    top: 11px;
    left: 11px;

    width: 13px;
    height: 13px;

    border: 2px solid #fff;
    border-radius: 50%;
}


.reggehave-gallery__zoom::after {
    content: "";

    position: absolute;

    top: 25px;
    left: 25px;

    width: 10px;
    height: 2px;

    background: #fff;

    transform: rotate(45deg);
    transform-origin: left center;
}


.reggehave-gallery__image-button:hover
.reggehave-gallery__zoom,
.reggehave-gallery__image-button:focus-visible
.reggehave-gallery__zoom {
    opacity: 1;
    transform: scale(1);
}


.reggehave-gallery__image-button:hover
.reggehave-gallery__zoom {
    background: var(--gallery-orange);
}


.reggehave-gallery__image-button:focus-visible {
    outline: 3px solid var(--gallery-orange);
    outline-offset: -3px;
}


/* =========================================================
   CAPTION
========================================================= */

.reggehave-gallery__caption {
    position: absolute;

    right: 18px;
    bottom: 18px;
    left: 18px;

    z-index: 3;

    width: fit-content;
    max-width: calc(100% - 36px);

    margin: 0;
    padding: 9px 14px;

    border-radius: 5px;

    background: rgba(3, 79, 112, .92);
    color: var(--gallery-white);

    font-size: 13px;
    line-height: 1.4;

    pointer-events: none;
}


/* =========================================================
   PIJLEN
========================================================= */

.reggehave-gallery__arrow {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: absolute;

    top: 50%;
    z-index: 10;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 2px solid var(--gallery-white) !important;
    border-radius: 50% !important;

    background: transparent !important;
    background-image: none !important;

    color: var(--gallery-white) !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .18) !important;

    outline: none !important;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.reggehave-gallery__arrow::before {
    content: "";

    display: block;

    width: 14px;
    height: 14px;

    border-top:
        3px solid var(--gallery-white);

    border-right:
        3px solid var(--gallery-white);
}


.reggehave-gallery__arrow--previous {
    left: 24px;
}


.reggehave-gallery__arrow--previous::before {
    margin-left: 5px;
    transform: rotate(-135deg);
}


.reggehave-gallery__arrow--next {
    right: 24px;
}


.reggehave-gallery__arrow--next::before {
    margin-right: 5px;
    transform: rotate(45deg);
}


.reggehave-gallery__arrow:hover {
    background:
        var(--gallery-orange) !important;

    border-color:
        var(--gallery-orange) !important;

    transform:
        translateY(-50%) scale(1.06);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .24) !important;
}


.reggehave-gallery__arrow:focus-visible {
    background:
        var(--gallery-orange) !important;

    border-color:
        var(--gallery-orange) !important;

    outline:
        3px solid rgba(243, 146, 0, .35) !important;

    outline-offset:
        3px !important;
}


.reggehave-gallery__arrow:active {
    transform:
        translateY(-50%) scale(.96);
}


/* =========================================================
   DOTS
========================================================= */

.reggehave-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    margin-top: 18px;
}


.reggehave-gallery__dot {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block;

    width: 10px !important;
    min-width: 10px !important;

    height: 10px !important;
    min-height: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;

    background:
        var(--gallery-blue) !important;

    background-image:
        none !important;

    opacity: .35;

    box-shadow:
        none !important;

    outline:
        none !important;

    cursor: pointer;

    transition:
        width .2s ease,
        opacity .2s ease,
        background-color .2s ease;
}


.reggehave-gallery__dot:hover {
    background:
        var(--gallery-orange) !important;

    opacity: 1;
}


.reggehave-gallery__dot.is-active {
    width: 30px !important;
    min-width: 30px !important;

    background:
        var(--gallery-orange) !important;

    opacity: 1;
}


.reggehave-gallery__dot:focus-visible {
    outline:
        2px solid var(--gallery-orange) !important;

    outline-offset:
        3px !important;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.reggehave-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none !important;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(0, 0, 0, .94);
}


.reggehave-lightbox.is-open {
    display: flex !important;
}


body.reggehave-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   LIGHTBOX CONTENT
========================================================= */

.reggehave-lightbox__content {
    position: relative;

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

    width: 100%;
    height: 100%;

    max-width: 1400px;
    max-height: 100%;
}


.reggehave-lightbox__image-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 0;
    flex: 1;
}


.reggehave-lightbox__image {
    display: block;

    width: auto;
    height: auto;

    max-width: min(1400px, 100%);
    max-height: calc(100vh - 150px);

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   LIGHTBOX CAPTION
========================================================= */

.reggehave-lightbox__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;
    max-width: 1400px;

    min-height: 0;

    padding-top: 12px;

    color: #fff;
}


.reggehave-lightbox__caption {
    width: 100%;

    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}


.reggehave-lightbox__counter {
    flex: 0 0 auto;

    width: 100%;

    margin: 0;
    padding: 12px 0 0;

    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-align: center;

    white-space: nowrap;

    opacity: .75;

    pointer-events: none;
}


/* =========================================================
   LIGHTBOX CLOSE
========================================================= */

.reggehave-lightbox__close {
    appearance: none;
    -webkit-appearance: none;

    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0;
    padding: 0;

    border: 2px solid #fff;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, .25);

    color: #fff;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.reggehave-lightbox__close::before,
.reggehave-lightbox__close::after {
    content: "";

    position: absolute;

    width: 20px;
    height: 2px;

    background: #fff;
}


.reggehave-lightbox__close::before {
    transform: rotate(45deg);
}


.reggehave-lightbox__close::after {
    transform: rotate(-45deg);
}


.reggehave-lightbox__close:hover {
    background:
        var(--gallery-orange, #f39200);

    border-color:
        var(--gallery-orange, #f39200);

    transform: scale(1.05);
}


/* =========================================================
   LIGHTBOX PIJLEN
========================================================= */

.reggehave-lightbox__arrow {
    appearance: none;
    -webkit-appearance: none;

    position: absolute;

    top: 50%;

    z-index: 15;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0;
    padding: 0;

    border: 2px solid #fff;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, .25);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.reggehave-lightbox__arrow::before {
    content: "";

    display: block;

    width: 15px;
    height: 15px;

    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}


.reggehave-lightbox__arrow--previous {
    left: 20px;
}


.reggehave-lightbox__arrow--previous::before {
    margin-left: 5px;

    transform:
        rotate(-135deg);
}


.reggehave-lightbox__arrow--next {
    right: 20px;
}


.reggehave-lightbox__arrow--next::before {
    margin-right: 5px;

    transform:
        rotate(45deg);
}


.reggehave-lightbox__arrow:hover {
    background:
        var(--gallery-orange, #f39200);

    border-color:
        var(--gallery-orange, #f39200);
}


.reggehave-lightbox__arrow--previous:hover {
    transform:
        translateY(-50%) scale(1.05);
}


.reggehave-lightbox__arrow--next:hover {
    transform:
        translateY(-50%) scale(1.05);
}


/* =========================================================
   ELEMENTOR BUTTON OVERRIDES - LIGHTBOX
========================================================= */

.reggehave-lightbox button,
.reggehave-lightbox__close,
.reggehave-lightbox__arrow {
    appearance: none !important;
    -webkit-appearance: none !important;

    background-color: rgba(0, 0, 0, .25) !important;
    background-image: none !important;

    color: #fff !important;

    border: 2px solid #fff !important;
    box-shadow: none !important;

    font: inherit !important;
    text-decoration: none !important;

    padding: 0 !important;
    margin: 0 !important;
}


.reggehave-lightbox__arrow:hover,
.reggehave-lightbox__arrow:focus,
.reggehave-lightbox__arrow:focus-visible,
.reggehave-lightbox__close:hover,
.reggehave-lightbox__close:focus,
.reggehave-lightbox__close:focus-visible {
    background-color: #f39200 !important;
    border-color: #f39200 !important;
    color: #fff !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .reggehave-gallery__arrow {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;

        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }


    .reggehave-gallery__arrow--previous {
        left: 18px;
    }


    .reggehave-gallery__arrow--next {
        right: 18px;
    }

}


/* =========================================================
   MOBIEL
========================================================= */

@media (max-width: 767px) {

    .reggehave-gallery__viewport {
        border-radius: 8px;
    }


    .reggehave-gallery__arrow {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;

        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }


    .reggehave-gallery__arrow::before {
        width: 11px;
        height: 11px;

        border-top-width: 2px;
        border-right-width: 2px;
    }


    .reggehave-gallery__arrow--previous {
        left: 10px;
    }


    .reggehave-gallery__arrow--next {
        right: 10px;
    }


    .reggehave-gallery__caption {
        right: 10px;
        bottom: 10px;
        left: 10px;

        max-width: calc(100% - 20px);

        padding: 7px 10px;

        font-size: 12px;
    }


    .reggehave-gallery__dots {
        gap: 7px;

        margin-top: 14px;
    }


    .reggehave-gallery__dot {
        width: 8px !important;
        min-width: 8px !important;

        height: 8px !important;
        min-height: 8px !important;
    }


    .reggehave-gallery__dot.is-active {
        width: 24px !important;
        min-width: 24px !important;
    }


    .reggehave-gallery__zoom {
        top: 10px;
        right: 10px;

        width: 38px;
        height: 38px;

        opacity: 1;
    }


    /*
     * Lightbox mobiel
     */

    .reggehave-lightbox {
        padding:
            70px 12px
            20px 12px;
    }


    .reggehave-lightbox__image {
        max-height:
            calc(100vh - 170px);
    }


    .reggehave-lightbox__close {
        top: 12px;
        right: 12px;

        width: 44px;
        height: 44px;
    }


    .reggehave-lightbox__arrow {
        width: 44px;
        height: 44px;
    }


    .reggehave-lightbox__arrow::before {
        width: 11px;
        height: 11px;

        border-width:
            2px 2px 0 0;
    }


    .reggehave-lightbox__arrow--previous {
        left: 8px;
    }


    .reggehave-lightbox__arrow--next {
        right: 8px;
    }


    .reggehave-lightbox__footer {
        gap: 15px;

        padding:
            12px 5px 0 5px;
    }


    .reggehave-lightbox__caption {
        font-size: 12px;
    }


    .reggehave-lightbox__counter {
        width: 100%;
        height: auto;
        min-width: 0;

        padding: 8px 0 0;

        font-size: 12px;

        text-align: center;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .reggehave-gallery__track,
    .reggehave-gallery__image,
    .reggehave-gallery__arrow,
    .reggehave-gallery__dot,
    .reggehave-gallery__zoom,
    .reggehave-lightbox__arrow,
    .reggehave-lightbox__close {
        transition: none !important;
    }

}