.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 1vw;
}

.gallery_i {
    cursor: pointer;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #dfe1e1;
    box-sizing: border-box;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.gallery_i:hover {
    box-shadow: 0 0 10px #656565;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.gallery_i-info {
    margin-top: 20px;
}

.gallery_i-info1 {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: space-between;
}

.gallery_i-info1_name {
    font-weight: 600;
    font-size: 16px;
    color: #53340D;
}

.gallery_i-info1_date {
    color: rgba(83, 52, 13, 0.65);
    font-size: 14px;
}

.gallery_i-info_address {
    margin-top: 5px;
    color: rgba(83, 52, 13, 0.65);
    font-size: 14px;
}

.gallery_i-img {
    position: relative;
}

.gallery_i-img img {
    width: 100%;
}

.gallery_i-img_overlay {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    color: white;
    font-size: 25px;
    align-items: center;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.gallery_i:hover .gallery_i-img_overlay {
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
    background: rgba(0, 0, 0, .5);
    opacity: 1;
}

.gallery-image {
    background-size: contain;
    height: 240px;
    width: 24%;
    overflow: hidden;
}

.gallery-image-inner {
    width: 101%;
    height: 101%;
    display: table;
    opacity: 0;
    background: rgba(0, 0, 0, 0);
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.gallery-image-inner hr {
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}

.gallery-image-inner, .gallery-image  {
    border-radius: 5px;
}

.gallery-image-inner:hover {
    background: rgba(0, 0, 0, .7);
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
    cursor: pointer;
    opacity: 1;
    color: #fff;
}

.gallery a:hover {
    text-decoration: none !important;
}

.gallery a{
    color: #53340D;
}

.gallery-image-name {
    text-align: center;
    font-weight: 600;
}

.gallery-image-description, .gallery-image-date {
    text-align: center;
}

.gallery-image-date {
    margin-top: 10px;
}

.info-block {
    display: table-cell;
    height: 100%;
    padding-left: 15px;
    padding-right: 15px;
    vertical-align: middle;
}

.exist-block {
    padding: 0;
    background: transparent;
    border: none;
    color: #44b759;
    cursor: pointer;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.exist-block:hover {
    box-shadow: none;
    color: white;
    background: #44b759;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.exist-block p {
    font-size: 14px;
}

.exist-block:hover p {
    color: white;
}

.exist {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 1px solid #44b759;
    border-radius: 5px;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
    text-align: center;
    color: #44b759;
}

.check-block {
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    width: 70px;
    height: 70px;
    border: 1px solid #44b759;
    border-radius: 50%;
    font-size: 25px;
    color: #44b759;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.check-block i {
    margin: auto;
}

.exist-block:hover .check-block{
    color: #fff;
    border: 1px solid #fff;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

.check-icon {
    vertical-align: middle;
    text-align: center;
    display: table-cell;
    font-size: 45px;
}

.search-icon {
    margin-right: 15px
}

@media (max-width: 1500px) {
    .search-icon {
        margin-right: 10px
    }
}

@media (max-width: 1150px) {
    .check-block {
        width: 75px;
        height: 75px;
    }

    .check-icon {
        font-size: 35px;
    }
}

@media (max-width: 1024px) {
    .gallery-image-inner {
        background: rgba(0, 0, 0, .7);
        opacity: 1;
        color: #fff;
    }

    .single-inner {
        opacity: 0 !important;
    }

    .exist {
        background: #44b759;
        color: #fff;
    }

    .check-block {
        border: 1px solid #fff;
        color: #fff;
    }
}

@media screen and (max-width: 960px) {
    .gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 850px) {

}

@media (max-width: 750px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .exist-block {
        height: 175px;
    }
}

@media (max-width: 350px) {
    .gallery-image {
        height: 210px;
    }
}