.uv-gallery-hide {
    visibility: hidden;
    display: none;
}

.uv-gallery-hide.fslightbox-source {
    position: relative;
    visibility: visible;
    display: block;
}

.lightbox-popup img {
    width: 100%;
}

.uv-gallery-img {
    position: relative;
    width: 100%;
    background-size: cover;
}

.uv-gallery-img::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.masorny-gallery {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;

}

.uv-gallery-item {
    position: relative;
    width: 100%;
    background-size: cover;
    overflow: hidden;
}

.fslightbox-container * {

    color: #fff;
}

.uv-gallery-item .uv-gallery-img .uv-gallery-imgbg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0px;
    transition: all .35s ease-in-out;
    cursor: pointer;
}

.uv-gallery-img img {
    width: 100%;
    position: absolute;
    object-fit: cover;
    height: 100%;
    top: 0px;
}

.uv-gallery-img:hover .uv-gallery-imgbg {
    transform: scale(1.05);
}


/* Simple gallery */
.simple-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.simple-gallery .uv-gallery-item {
    width: calc(25% - 4px);
}


/* masorny Gallery Styles */
.masorny-gallery .galcol1 {
    width: calc(50% - 2.5px);
}

.masorny-gallery .galcol2 {
    width: calc(25% - 5px);

}

.masorny-gallery .galcol2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}


.masorny-gallery .galcol2 .uv-gallery-img::before {
    content: "";
    display: block;
    padding-top: calc(100%);
}


/* Gallery Second Template - First Image Big */

.masorny-big-img {
    width: calc(50% - 2.5px);
}


.masorny-big-img .uv-gallery-item {
    width: 100%
}

.masorny-second-img {
    width: calc(50% - 2.5px);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.masorny-second-img .uv-gallery-item {
    width: calc(50% - 2.5px);
}



/* Pop Up slider */

/* Popup styles */
.gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-content {
    padding: 20px;
    border-radius: 5px;
    position: relative;
    max-width: 75%;
    width: 100%;
    text-align: center;
}

.uv-global-video {
    width: 100%;
    padding-top: 56%;
    position: relative;
}

.uv-global-fullvideo {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    left: 0px;
}


.uvwp-gallery-video-img {
    position: relative;
}

.uvwp-gallery-video-img::before {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background: rgba(0, 0, 0, .3);
}

.uvwp-gallery-video-img svg{
    width: 70px;
    height: 70px;
    border: solid 3px #fff;
    z-index: 9;
    border-radius: 100%;
    padding: 15px 10px 15px 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.uv-global-fullvideo iframe {
    width: 100%;
    height: 100%;
}

.popup-close {
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 42px;
}

.swiper-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.gallery-popup .swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: rgba(0, 0, 0, 0);

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
}

.galleries-tabs {
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 90px;
}

.galleries-tabs .uv-btn-inl {
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.galleries-tabs .uv-btn-inl::after {
    transform: scaleX(0);
}

.galleries-tabs .uv-btn-inl.active::after,
.galleries-tabs .uv-btn-inl:hover::after,
.galleries-tabs .uv-btn-inl:focus::after,
.galleries-tabs .uv-btn-inl:active::after {
    transform: scaleX(100%);
}

.uv-tab-gallery {
    z-index: 10;
}

.gallery-popup .swiper-slide {

    padding: 60px;
}

.gallery-popup .swiper-button-next,
.gallery-popup .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0);
    width: 43px;
    height: 43px;
    border-radius: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 17px;
    border: solid 1px #fff;
    transition: all .35s ease-in-out;
}

.gallery-popup .swiper-button-next:after,
.gallery-popup .swiper-rtl .swiper-button-prev:after,
.gallery-popup .swiper-button-prev:after,
.gallery-popup .swiper-button-prev:after {

    font-size: 20px;
}

.gallery-popup .swiper-button-next:hover,
.gallery-popup .swiper-button-prev:hover {
    color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0);
    font-size: 17px;
    border: solid 1px #fff;
    background: #fff;
}





@media(max-width: 1024px) {
    .popup-content {

        width: 100%;
        max-width: 100%;

    }
}

@media (max-width: 768px) {
    .uv-global-video .video-controls {
        display: flex;
        right: calc(50% - 75px);
        bottom: -60px;
    }
}

@media(max-width: 600px) {


    .masorny-gallery .uv-gallery-item {

        width: calc(50% - 2.5px);

    }

    .masorny-gallery .galcol2,
    .masorny-gallery .galcol1 {
        width: 100%;
    }

    .masorny-gallery .galcol2 {

        flex-direction: row;

    }

    .masorny-gallery .galcol1 .uv-gallery-item {
        width: 100%;

        padding-bottom: 5px;
        padding-top: 5px;
    }


    .masorny-big-img {
        width: 100%;
    }

    .masorny-second-img {
        width: 100%;
    }

    .masorny-second-img .uv-gallery-item,
    .simple-gallery .uv-gallery-item {
        width: calc(50% - 2.5px);
    }

    .masorny-big-img .uv-gallery-item {
        width: 100%
    }


}