:root {
    --uvwp_buttons_weight: 400;
    --uvwp_buttons_size: 16px;
    --uvwp_buttons_font_family: "AvenirLTP", Arial, sans-serif;
    --uvwp_inline_text_color: #000;
    --uvwp_inline_border_color: #82754a;
    --uvwp_inline_text_color_hover: #82754a;
    --uvwp_inline_border_color_hover: #82754a;
}

.uv-btn {
    position: relative;
    display: inline-block;
    padding: 0.75em 1.5em;
    border-radius: 0;
    font-weight: var(--uvwp_buttons_weight);
    text-transform: uppercase;
    text-decoration: none;
    transition: all ease-in-out 500ms;
    border: 1px solid transparent;
    font-size: var(--uvwp_buttons_size);
    font-family: var(--uvwp_buttons_font_family);
    cursor: pointer;
}

.uv-section-inner{
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
 
}

.uv-btn-inl {
    padding:0.3em 1.3em 0 1em;
    border: none;
    color: var(--uvwp_inline_text_color);
    display: flex;
    align-items: center;
    width: max-content;
    background: unset;

}

.uv-btn-inl.uv-contrast-color {
    padding: 0.3em 0;
    border: none;
    color: var(--uvwp_contrast_inline_text_color);
}

.uv-btn-inl:hover,
.uv-btn-inl:focus,
.uv-btn-inl:active {

    color: var(--uvwp_inline_text_color_hover);

}

.uv-btn-inl.uv-contrast-color:hover,
.uv-btn-inl.uv-contrast-color:active,
.uv-btn-inl.uv-contrast-color:focus {
    color: var(--uvwp_contrast_inline_text_color_hover);
}

.uv-main-content-inner-gallery .uv-btn-inl::after {
    content: " ";
    display: block;
    position: absolute;
    bottom: 0;
    background-color: var(--uvwp_inline_border_color);
    width: 100%;
    left: 0;
    height: 0.125em;
    transition: all ease-in-out 500ms;
}

.uv-btn-inl.uv-contrast-color::after {
    background-color: var(--uvwp_contrast_inline_border_color);

}

.uv-btn-inl:hover::after,
.uv-btn-inl:focus::after,
.uv-btn-inl:active::after {
    background-color: var(--uvwp_inline_border_color);
    transform: scaleX(0);
}


.uv-btn-inl.uv-contrast-color:hover::after,
.uv-btn-inl.uv-contrast-color:focus::after,
.uv-btn-inl.uv-contrast-color:active::after {
    background-color: var(--uvwp_contrast_inline_border_color_hover);
    transform: scaleX(0);
}





.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: 1000;
}

.popup-content {
    padding: 20px;
    border-radius: 5px;
    position: relative;
    max-width: 67%;
    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: 40px;
    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: 50px;
    display: flex;
    gap: 20px;
}

.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;
}


.galleries-tabs .uvtabactive::before {
    content: "";
    position: absolute;
    right: 0px;
    top: 20px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7a1 1 0 0 0-1.41 1.42L10.59 12l-4.89 4.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translateY(-50%);
}


.galleries-tabs .uvtabactive::after {
    transform: scaleX(100%);
}


@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%
    }


}