.images-gallery {
    position: relative;
    text-align: center;
    --swiper-pagination-color: var(--color-green);
    --swiper-theme-color: var(--color-green);
    --base-height: 300px;
    --base-width: 30vw;
}

.images-gallery.count-1 {
    --base-height: 500px;
    --base-width: 50vw;
}

.images-gallery.count-2 {
    --base-height: 400px;
    --base-width: 40vw;
}

.images-gallery .gallery-body {
    position: relative;
}

.images-gallery .gallery-body .swiper-slide:after {
    /*content: '';*/
    /*position: absolute;*/
    /*left: 0;*/
    /*right: 0;*/
    /*top: 0;*/
    /*bottom: 0;*/
    /*background-color: rgba(0, 0, 0, 0.05);*/
}

.images-gallery .gallery-body .swiper .swiper-slide {
    max-height: min(var(--base-height), var(--base-width));
    overflow: hidden;
    height: auto !important;
    flex-grow: 1;
}

.images-gallery .gallery-body .swiper .swiper-slide:before {
    position: absolute;
    content: '';
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 1200px) {
    .images-gallery {
        /*max-height: 25vw;*/
        --base-width: 25vw;
    }

    .images-gallery.count-1 {
        --base-width: 40vw;
    }

    .images-gallery.count-1 {
        --base-width: 30vw;
    }
}

@media screen and (max-width: 1000px) {
    .images-gallery .gallery-body .swiper .swiper-slide {
        max-height: calc(min(100vw, 100vh));
    }
}

.images-gallery .gallery-body .swiper-slide {

    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -moz-flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
}

.images-gallery .gallery-body .swiper-slide.alignX-left {
    justify-content: flex-start;
}

.images-gallery .gallery-body .swiper-slide.alignX-right {
    justify-content: flex-end;
}

.images-gallery .gallery-body .swiper-slide.alignY-top {
    align-items: flex-start;
}

.images-gallery .gallery-body .swiper-slide.alignY-end {
    align-items: flex-end;
}

.images-gallery .gallery-body .swiper-button-next,
.images-gallery .gallery-body .swiper-button-prev {

    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    background-image: none;
    font-size: 1em;
    outline: none;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 3px;
    display: none;
}

.images-gallery .gallery-body .swiper-button-prev {
    left: 10px;
}

.images-gallery .gallery-body .swiper-button-next {
    right: 10px;
}

.images-gallery .gallery-body .swiper-button-prev:before {
    content: '\f177';
    color: inherit;
}

.images-gallery .gallery-body .swiper-button-next:before {
    content: '\f178';
    color: inherit;
}

.images-gallery .gallery-body .swiper-pagination {
    position: absolute;
    bottom: 1em;
    background-color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    left: auto;
    width: auto;
    padding: 0 1em;
    border-radius: 10px;
    margin-left: -1.5em;
}

.images-gallery .gallery-body .swiper-pagination.swiper-pagination-lock {
    display: none;
}

.images-gallery .thumbs-wrapper {
    text-align: center;
    position: relative;
    padding: 0;
    margin-top: 1em;
}

@media screen and (max-width: 550px) {
    .images-gallery .thumbs-wrapper {
        /*display: none;*/
    }

    .images-gallery .gallery-body .swiper-pagination {
        /*display: block;*/
    }

    .images-gallery .gallery-body .swiper-button-next,
    .images-gallery .gallery-body .swiper-button-prev {
        /*display: block;*/
    }
}

.images-gallery .thumbs-wrapper .gallery-thumbs {
    text-align: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.images-gallery .thumbs-wrapper .gallery-thumbs .swiper-slide {
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    background-color: #fff;
    width: auto;
    height: 120px;
    overflow: hidden;
    position: relative;

    moz-transition: all ease 0.5s;
    webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;

}

.images-gallery .thumbs-wrapper .gallery-thumbs .swiper-slide:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.images-gallery .swiper-button-disabled {
    display: none !important;
}

.images-gallery .thumbs-wrapper .gallery-thumbs .swiper-slide-thumb-active {
    border-color: var(--color-unactive);
}
