.card-style-full-image .item {
    border-radius: 0px !important;
}

.row.gallery.static-gallery .row-inner {
    max-width: 100%;
}

.static-gallery .gallery-slider {
    display: flex;
    flex-wrap: wrap;
}

.static-gallery .gallery-slider .slide {
    width: 25%;
    padding: 0;
}

/*.static-gallery .gallery-slider .slide img {*/
/*    border-radius: 0;*/
/*    border: solid 1px #fff;*/
/*}*/

.row.gallery.static-gallery {
    margin-bottom: 0;
    padding: 0;
}

.static-gallery .slide a:before {
    position: absolute;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 0;
    transition: all 300ms;
}

.static-gallery .slide a {
    position: relative;
    height: 300px;
    overflow: hidden;
    border:solid 1px #ddd;
}

.static-gallery .slide a img, .static-gallery .slide a picture {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0 auto;
}

.gallery img {
    border: unset !important;
    padding: unset !important;
}
.gallery a.primary-btn.load-gallery {
    min-height: 0;
    width: auto;
    display: inline-block;
}

.gallery .btn-wrap {
    text-align: center;
    padding: 40px 0 60px 0;
}

.gallery-slider.expand-gallery {
    max-height: 700px;
    overflow: hidden;
    position: relative;
    transition: max-height 1200ms ease-in-out;
}

.gallery-slider.expand-gallery:after {
    position: absolute;
    content: '';
    background: linear-gradient(0deg, white, transparent);
    height: 100px;
    width: 100%;
    bottom: 0;
    transition: all 1200ms ease-in-out;
}

.gallery-slider.expand-gallery.show-gallery:after {
    bottom: -100px;
}

.gallery .row-inner {
    max-width: unset !important;
}
.gallery .row-inner .row.gallery.static-gallery .row-inner {
    padding: 20px 0px;
}

a.btn:focus {
    color: var(--white);
}

.rwm-gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.rwm-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rwm-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(70, 130, 200, 0.5); /* blue tint */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rwm-gallery-item:hover::after {
    opacity: 1;
}

@media only screen and (max-width:1400px) {
    .row.gallery .row-inner {
        max-width: 90%;
    }
}

@media only screen and (max-width:1320px) {
    .row.gallery.static-gallery .row-inner {
        width:100%;
    }
    .static-gallery .slide a {
        height: 200px;
    }
}

@media only screen and (max-width:895px) {
    .row.gallery h2{
        font-size: 1.4em;
    }
    .static-gallery .gallery-slider .slide {
        width: 33.33%;
    }
}

@media screen and (max-width:680px){
    .static-gallery .gallery-slider .slide {
        width: 50%;
    }
}

@media only screen and (max-width:500px) {
    .static-gallery .gallery-slider .slide {
        width: 100%;
        height: 300px;
    }
}