.gallery {
    position: relative;
    color: var(--charcoal);
    z-index: 1;
}

.gallery--inner {
    padding: 38px 0 25px;
}

.img-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    -o-object-fit: cover;
    object-fit: cover;
}

.gallery h2 {
    margin: 0;
    color: var(--charcoal);
    font-size: 28px;
    letter-spacing: 0.05em;
    padding-bottom: 11px;
    text-transform: uppercase;
    padding-bottom: 25px;
}

.image-gallery {
    margin-bottom: 32px;
}

.image-gallery__link {
    background: var(--light);
    border: 1px solid #D0D6BB;
    width: 100%;
    text-decoration: none;
    transition: all ease-in-out 0.6s;
    min-height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.image-gallery__image {
    background: var(--white);
    height: 248px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.image-gallery__image img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.image-gallery__info {
    width: 100%;
    color: var(--dark-greenish);
    transition: all ease-in-out 0.3s;
    padding: 20px;
}

.image-gallery__info h4 {
    color: var(--dark-greenish);
    font-family: var(--open-san-condensed);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0em;
    margin: 0;
    padding: 0;
    line-height: 1em;
    text-align: center;
    text-transform: none;
}

@media (min-width: 768px) {
    .gallery--inner {
        padding: 50px 0 30px;
    }

    .gallery h2 {
        font-size: 34px;
    }

    .row.facetwp-template {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
}

@media (min-width: 1200px) {
    .gallery--inner {
        padding: 80px 0 60px;
    }

    .gallery h2 {
        font-size: 48px;
        line-height: 1.1em;
        padding-bottom: 35px;
    }
    
    .image-gallery__image {
        height: 330px;
    }
    
    .image-gallery__info h4 {
        font-size: 26px;
    }


    .image-gallery__link:hover {
        transform: scale(1.08);
    }

    .image-gallery__link:hover {
        background: var(--blue);
        color: var(--white);
    }

    .image-gallery__link:hover .image-gallery__info h4 {
        color: var(--white);
    }

}

.gallery-details {
    padding: 50px 0 25px 0;
}

.gallery-details__wrap {
    max-width: 1130px;
    margin: 0 auto;
}

.gallery-details h3 {
    margin: 0;
    color: var(--blue);
    padding-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.02em;
}

.gallery-details p {
    letter-spacing: 0;
    margin: 0;
    font-size: 17px;
    padding: 0 0 20px 0;
    line-height: 1.705em;
}

@media (min-width: 768px) {
    
    .gallery-details p {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {

    .gallery-details {
        padding: 130px 0 100px 0;
    }

    .gallery-details h3 {
        font-size: 32px;
    }
    
    .gallery-details p {
        font-size: 19px;
    }

}

.gallery-loaders {
    font-size: 14px;
    color: var(--dark-greenish);
    font-family: var(--sans-serif);
}

.gallery-loader {
    max-width: 320px;
    margin: 16px auto 27px auto;
    background-color: var(--light-green);
    border-radius: 10px;
    height: 9px;
    position: relative;
}

.gallery-loading {
    background-color: var(--green);
    border-radius: 10px;
    height: 9px;
    position: absolute;
    top: 0;
    left: 0;
}


.gallery-filter {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.gallery-filter__wrap {
    padding: 20px;
}

@media (min-width: 1200px) {
    .gallery-filter__wrap {
        padding: 30px;
    }
    
}


.filter-search [type="submit"] {
    background-color: var(--green);
    padding: 0;
}

.gallery-filter__wrap .row {
    margin: 0 -10px
}

.gallery-filter__wrap [class*="col-"] {
    padding: 0 10px;
}

.filter-search {
    background-color: var(--white);
    position: relative;
    margin: 5px 0;
}


.filter-search input,
.filter-search .choices__inner {
    border: none !important;
}


.filter-search button {
    position: absolute;
    right: 4px;
    height: 40px;
    top: 4px;
    background-color:var(--blue);
    border: none;
    border-radius: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-search__count {
    background-color: transparent;
    display: flex;
    align-items: center;
}

.filter-search .choices[data-type*="select-one"]::after {
    background: url(../../../img/select.png) 0 0 no-repeat;
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
}

.filter-search__count .choices {
    width: calc(100% - 47px);
}

.gallery-filter-click {
    color: var(--blue);
    cursor: pointer;
    font-family: var(--sans-serif);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
    height: 48px;
    margin-bottom: 30px;
    padding: 0 55px 0 24px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-filter-click i {
    background: var(--blue);
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
    z-index: -1;
    text-align: center;
    transition: transform 0.3s ease 0s;
}

.gallery-filter-click i::before {
    color: var(--white);
    top: 13px;
    position: relative;
}

.gallery-filter-click.active i {
    transform: rotate(180deg);
}

.gallery-filter {
    display: none;
}

@media (min-width: 768px) {
    .gallery-filter {
        display: block !important;
    }
}






