#lightbox {
    width: 100%; 
    height: 100%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    background: #f6f5ef; 
    z-index: 9999999; 
    line-height: 0; 
    cursor: pointer;
    display: none;
}
#lightbox, #lightbox * {user-select: none;}
#lightbox .img {
    position: relative; 
    top: 50%;
    left: 50%;
    -ms-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    max-width: clamp(0px, 95vw, 1200px);
    max-height: clamp(0px, 95vh, 1200px);
}
#lightbox .img img {opacity: 0; pointer-events: none; width: auto;}
#lightbox span {display: block; position: fixed; bottom: 13px; height: 1.5em; line-height: 1.4em; width: 100%; text-align: center; color: white; text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;  
}

#lightbox span {display: none;}

#lightbox .videoWrapperContainer {
    position: relative; 
    top: 50%;
    left: 50%;
    -ms-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    max-width: 900px;
    max-height: 100%;
}
#lightbox .videoWrapperContainer .videoWrapper {
    height: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 56.333%; /* custom */
    background: black;
} 
#lightbox .videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}   
#lightbox #prev, #lightbox #next {display: none; position: fixed; cursor: pointer; text-decoration: none; z-index: 99; width: 5.6rem;}
#lightbox.gallery #prev, #lightbox.gallery #next {display: block;}
#lightbox #prev {left: 0; top: 0; height: 100%; background: transparent url(/img/left.svg) center center / 2.15rem auto no-repeat;}
#lightbox #next {right: 0; top: 0; height: 100%; background: transparent url(/img/right.svg) center center / 2.15rem auto no-repeat;}
#lightbox #close {
    position: fixed; 
    cursor: pointer; 
    text-decoration: none; 
    z-index: 99; 
    background: transparent url(/img/close.svg) center center / contain no-repeat;
    width: 2.15rem; 
    height: 2.15rem; 
    border: 0;
    border-radius: 0;
    right: 1.8rem;
    top: 1.65rem;
}
@media (max-width: 85rem) {
    #lightbox #prev,
    #lightbox #next {background-position: center calc(100% - 2rem);}
}
@media (max-width: 45rem) {
    #lightbox #close {
        width: 3rem;
        height: 3rem;
        top: 1.5rem;
    }
    #lightbox #prev,
    #lightbox #next {background-size: 3rem auto; width: 50%;}
    #lightbox #prev {background-position: calc(100% - 1rem) calc(100% - 2rem);}
    #lightbox #next {background-position: 1rem calc(100% - 2rem);}
    #lightbox .img {max-width: 100%;}
}


#lightbox, #lightbox * {
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
}


.lightbox-youtube.has_image {
    position: relative; display: block;
}
.lightbox-youtube.has_image::before, .lightbox-youtube.has_image::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
} 
.lightbox-youtube.has_image::before {
    background: url(/img/youtube_button.svg) center center / auto 3rem no-repeat;
}
.lightbox-youtube.has_image:hover::before {
    background: url(/img/youtube_button_hover.svg) center center / auto 3rem no-repeat;
}
.lightbox-youtube.has_image::after {
    background: url(/img/youtube.svg) calc(100% - 1rem) calc(100% - 1rem) / auto 1.5rem no-repeat;
}
.lightbox-youtube.has_image img {
    display: block;
    width: 100%;
}