/****************************************************************************************/
/*                 The Lightbox (background)                                            */
/****************************************************************************************/
.lightbox-background {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.lightbox:hover {
    opacity: 0.8;
}

.cursor {
    cursor: pointer;
}
.close:hover {
    transition: 0.3s ease;
    background-color: white;
    color: var(--color-main-font);
}
/* The Close Button */
.close {
    cursor: pointer;
    color: white;
    position: absolute;
    padding: 20px;
    background-color: rgb(0,0,0, 0.0);
    border-radius: 8px;
    top: 30px;
    right: 30px;
    font-size: 20px;
}
#myLightboxImage {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* Caption of Lightbox Image */
#myLightboxCaption {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 600px;
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 17px;
}
#myLightboxImage,
#myLightboxCaption{
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.3s;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-background .prev,
.lightbox-background .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 0;
    height: 80px;
    width: 50px;
    padding: 10px 15px 10px 15px;
    background-color: rgb(0,0,0, 0.0);
    font-weight: bold;
    font-size: 22px;
    border: 0;
    user-select: none;
    border-radius: 0 8px 8px 0;
    color: white;
}
.lightbox-background .next {
    border-radius: 8px 0 0 8px;
    left: calc(100% - 50px);
}

.lightbox-background .prev:hover {
    transition: 0.3s ease;
    background-color: white;
    color: var(--color-main-font);
}
.lightbox-background .next:hover {
    transition: 0.3s ease;
    background-color: white;
    color: var(--color-main-font);
}
