.gallery img {
    width: 100%;
    object-fit: cover;
}
.gallery .group {
    margin: 0 0 32px;
}
.gallery .group:last-child {
    margin-bottom: 16px;
}
.gallery .list {
    display: flex;
    flex-wrap: wrap;
}
.gallery .list.center {
    justify-content: center;
}
.gallery .cell {
    margin: 0.234%;
    /* max-width: 235px; */
    /* max-height: 235px; */
    position: relative;
    padding-top: 24.532%;
    width: 24.532%;
    overflow: hidden;
}
.gallery .cell img,
.gallery .cell svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.gallery a {
    text-decoration: none;
}
.gallery h1,
.gallery h2 {
    color: var(--main-color);
    font-family: "LuloCleanW01-OneBold", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 2.5em;
    line-height: 2.2em;
    display: inline-block;
    padding: 0 1em;
    margin: 0;
}
.gallery h1 {
    margin-top: 24px;
}
.gallery .more {
    transition: opacity 200ms;
    opacity: 0.7;
}
.gallery .more:hover {
    opacity: 1;
}
.cell ::after {
    content: "";
    width: 100%;
    height: 100%;
    background: black;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 200ms;
}
.gallery .cell img {
    transition: transform 100ms;
}
.cell:not(.more):hover ::after {
    opacity: 0.1;
    z-index: 100;
}
.cell:hover img {
    transform: scale(1.03);
}

@media screen and (max-width: 640px) {
    .gallery h1,
    .gallery h2 {
        font-size: 1.8em;
    }
}
