.gallery img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
}

@media screen and (max-width: 700px) {
    .gallery img {
        max-width: 290px;
        height: 250px;
        object-fit: cover;
        margin-left: 150px;
    }
}

@media screen and (max-width: 700px) {
    img {
        max-width: 150%;
        height: auto;
    }
}

.gallery {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 1rem;
    padding: 1rem 0;
}

.gallery-filter a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.gallery-filter .active a {
    border-bottom: 1px solid currentColor;
}

.gallery-list {
    list-style: none;
    margin: -5px;
    padding: 0;
}

.gallery-item {
    float: left;
    width: 33.33%;
}

.gallery-item img {
    display: block;
}

.gallery-list li {
    padding: 10px;
}

@media screen and (max-width: 700px) {
    .gallery-list li {
        margin: 50px;
    }
}