.content-gallery ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-gallery li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.content-gallery figure {
    margin: 0;
}

.content-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 680px) {
    .content-gallery ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 370px) {
    .content-gallery ul {
        grid-template-columns: minmax(0, 1fr);
    }
}