.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 50px auto 100px;
}
.gallery-wrapper:last-child {
    margin-bottom: 50px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    max-width: 24.5%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px .25% 0;
}
.gallery-item img {
    width: auto;
    height: 135%;
}
.gallery-item img.vertical-img {
    width: 135%;
    height: auto;
}
.gallery-icon {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    fill: #111;
    opacity: 0;
    transition: all .4s;
}
.gallery-item:hover .gallery-icon {
    top: 50%;
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
}

@media screen and (max-width: 1200px) {
    .gallery-item {
        flex: 33%;
        max-width: 32.5%;
    }
}

@media screen and (max-width: 800px) {
    .gallery-item {
        flex: 50%;
        max-width: 49.5%;
    }
}

@media screen and (max-width: 500px) {
    .gallery-item {
        flex: 100%;
        max-width: 100%;
        height: auto;
    }
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}