#gallery-lightbox {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 5;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.65);
    animation-name: modalOpen;
    animation-duration: 0.3s;
}

.gallery-lightbox-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: black;
    justify-content: start;
    align-items: center;
}

.gallery-lightbox-header {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 10px;
}

.gallery-lightbox-header #gallery-lightbox-header-album-title{
    height: 40px;
    line-height: 40px;
    color: white;
    font-size: 30px;
}

.gallery-lightbox-header #gallery-lightbox-header-album-image-number{
    height: 20px;
    width: auto;
    color: white;
    font-size: 14px;
    line-height: 20px;
}

#gallery-lightbox-preview-close {
    position: absolute;
    right: 20px;
    font-size: 2rem;
    color: gray;
    cursor: pointer;
}

#gallery-lightbox-preview-close:hover {
    color: whitesmoke;
    transition: all 0.3s ease;
}

.gallery-lightbox-wrapper .gallery-lightbox-preview {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
    width: 80%;
    padding: 10px 10px 0px 10px;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev,
.swiper-button-next {
    color: gray !important;
}

/* Infobox */
/*=====================================================*/

.gallery-lightbox-preview-infobox {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 70px;
    padding: 10px;
    font-size: 0.8rem;
}

.gallery-lightbox-preview-infobox h4 {
    color: lightgray;
    font-weight: 400;
}

.gallery-lightbox-preview-infobox h4 span {
    color: whitesmoke;
    font-weight: 500;
    margin-right: 10px;
}

.gallery-lightbox-preview-infobox p {
    font-size: 0.7rem;
    color: lightgray;
    margin-top: 5px;
}

.gallery-lightbox-preview-infobox p span {
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 10px;
}

/*=====================================================*/


#myGalleryPreviewSwiper {
    height: calc(100% - 70px - 15%) !important;
    width: 100%;
}

#myGalleryPreviewSwiper .lightboxPreviewSlide {
    display: flex;
    background: transparent;
    position: relative;
}

.galleryPreviewSwiperImage {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
}

.galleryPreviewThumbsSwiper-wrapper {
    display: flex;
    height: 15%;
    max-width: 800px;
    width: 100%;
}

#myGalleryPreviewThumbsSwiper {
    height: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

.galleryPreviewSwiperImage,
.galleryPreviewThumbsSwiperImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#myGalleryPreviewThumbsSwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}

#myGalleryPreviewThumbsSwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 3px solid white;
    border-radius: 5px;
}

.swiper-button-next-preview{
    position: absolute;
    right: 20px;
    color: gray;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.swiper-button-prev-preview{
    position: absolute;
    left: 20px;
    color: gray;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.swiper-button-preview-disabled{
    display: none;
}

.swiper-button-prev-preview:hover,
.swiper-button-next-preview:hover{
    color: white;
    cursor: pointer;
}



@media screen and (min-width: 1500px) {

    .galleryPreviewThumbsSwiper-wrapper {
        max-width: 2000px;
    }
}


/* mobile */
@media screen and (max-width: 800px) {

    .myPreviewThumbsSwiper-wrapper {
        width: 100%;
    }

}

@media screen and (max-height: 500px) {

    .galleryPreviewThumbsSwiper-wrapper {
        display: none;
    }

    #myGalleryPreviewSwiper {
        height: 80%;
    }

    .gallery-lightbox-preview-infobox {
        height: 20%;
    }
}


/*=====================================================*/
@keyframes modalOpen {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}
