/* Banner Gallery Styles */
#bannerGallery {
    position: relative;
    z-index: 10;
    padding: 0;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    height: 540px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
#bannerGallery .item {
    position: relative;
    display: block;
    height: 100%;
    padding: 3px;
}

#modalGallery .modal-content {
    background-color: rgba(0,0,0,0.6);
}
#bannerGallery .item:nth-child(n + 7) {
    display: none;
}
#bannerGallery .item:nth-child(-n + 6) {
    position: absolute;
    height: 100%;
    top: 0;
}
#bannerGallery .item:nth-child(1) {
    width: 40%;
    left: 0;
}
#bannerGallery .item:nth-child(2) {
    width: 35%;
    left: 40%;
    height: 50%;
}
#bannerGallery .item:nth-child(3) {
    width: 18%;
    left: 40%;
    height: 50%;
    top: 50%;
}
#bannerGallery .item:nth-child(4) {
    width: 17%;
    left: 58%;
    height: 50%;
    top: 50%;
}
#bannerGallery .item:nth-child(5) {
    width: 25%;
    left: 75%;
    height: 40%;
}
#bannerGallery .item:nth-child(6) {
    width: 25%;
    left: 75%;
    height: 60%;
    top: 40%
}
#bannerGallery .item .wrapper {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
}
#bannerGallery .item .wrapper img {
    width: 100%;
    height: 100%;
    -webkit-transform: scale(1);
    transform: scale(1);
    -o-object-fit: cover;
    object-fit: cover;
}
#bannerGallery .item:hover .wrapper img {
    -webkit-transform: scale(1.05);
    transform: scale(1.01);
}
#bannerGallery .item .wrapper:before {
    content: '';
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--rgb-black), .1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px;
}
#bannerGallery .item .wrapper[data-video]:before {
    background-color: rgba(var(--rgb-black), .6);
    background-image: url('../images/icon-play.svg');
}

/* Modal Gallery Styles */
#modalGallery .modal-body {
    padding: 30px 0;
}
#modalGallery .modal-body .container {
    position: relative;
    padding: 0 60px;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/*
#modalGallery .btn-close {
    content: '\00D7';
    font-size: 34px;
    color:#fff !important;
}
 */
#modalGallery .btn-close {
    color:#fff !important;
    position: absolute;
    right: 20px;
    top: -25px;
    /*border-radius: 50%;
    border: 2px solid rgba(var(--rgb-black), 1);
    padding: 12px;*/
    opacity: 1;
    background: unset !important;
    padding: 0;
    font-size: 24px;
    font-weight: bold;
}
#modalGallery .btn-close:hover {
    /*border: 2px solid rgba(var(--rgb-black), .5);*/
    opacity: .5;
}
#modalGallery .container {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}
#modalGallery nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: none;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 5px 0;
}
#modalGallery .nav {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
#modalGallery .nav .nav-link {
    background-color: rgba(var(--rgb-black), .1);
    white-space: nowrap;
}
#modalGallery .nav .nav-link.active {
    background-color: var(--colorRed);
    color: var(--bs-white);
}
#modalGallery .nav .nav-link + .nav-link {
    margin-left: 10px;
}

#modalGallery nav .badges .badge {
    background-color: rgba(var(--rgb-black), .1);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    padding: .5rem 1.2rem;
    margin-bottom: .5rem;
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
    color: var(--bs-dark);
}
#modalGallery nav .badges .badge.active {
    background-color: var(--colorRed);
    color: var(--bs-white);
}
#modalGallery nav .badges .badge + .badge {
    margin-left: 10px;
}

#modalGallery #contentGallery .wrapper {
    display: block;
    height: 280px;
    margin: calc(var(--bs-gutter-x)/ 2) 0;
}
#modalGallery #contentGallery .wrapper img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

#modalGallery .tab-content {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
}
#modalGallery .tab-content .tab-pane {
    height: 100%;
}

#modalGallery .swiper-container {
    width: 100%;
    height: 80%;
    margin-left: auto;
    margin-right: auto;
}
#modalGallery .swiper-slide {
    position: relative;
    height: 80vh;
}
#modalGallery .swiper-slide span {
    display: block;
    height: 100%;
    text-align: center;
}
#modalGallery .swiper-slide span img {
    width: auto;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
#modalGallery .gallery-top {
    height: 80%;
    width: 100%;
}
#modalGallery .gallery-thumbs {
    height: 15%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px 0;
}
#modalGallery .gallery-thumbs .swiper-slide {
    width: 180px !important;
    height: 100%;
    border: 2px solid var(--bs-white);
}
#modalGallery .gallery-thumbs .swiper-slide span {
    height: 140px;
}
#modalGallery .gallery-thumbs .swiper-slide span img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
#modalGallery .gallery-thumbs .swiper-slide-thumb-active {
    border-color: var(--colorRed);
}

#modalGallery .swiper-button-next,
#modalGallery .swiper-button-prev {
    /*background-color: var(--colorRed);*/
    border-radius: 50%;
    width: 52px;
    height: 52px;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
}
#modalGallery .swiper-button-next:after,
#modalGallery .swiper-button-prev:after {
    font-size: 30px;
    font-weight: bold;
}

@media screen and (max-width: 767px){
    #modalGallery .gallery-thumbs .swiper-slide {
        width: 90px !important;
        margin-right: 10px !important;
    }
    #modalGallery #contentSlide {
        margin-top: 100px;
    }
    #bannerGallery {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    #bannerGallery .item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
    }
    #bannerGallery .item:nth-child(n + 2) {
        display: none;
    }

    #modalGallery .modal-body .container {
        padding: 0 16px;
    }

    #modalGallery .btn-close {
        right: 30px;
        margin-right: -21px;
        top: -18px;
    }

    #modalGallery nav {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }
    #modalGallery .nav {
        width: 100%;
    }
    #modalGallery .nav .nav-link {
        width: 100%;
        border-radius: 0;
    }
    #modalGallery .nav .nav-link + .nav-link {
        margin-left: 0;
    }

    #modalGallery nav .badges {
        margin: 20px 0 10px 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        overflow: auto;
    }
    #modalGallery nav .badges .badge {
        width: 50%;
        margin: 8px 0;
    }

    #modalGallery .swiper-slide span {
        height: 240px;
    }
    #modalGallery .gallery-thumbs .swiper-slide span {
        height: 80px;
    }
}
