body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

#wrapper {
    align-items: center;
    justify-content: center;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column-reverse;
    max-width: var(--page-width);
    width: 100%;
    padding: 20px;
}

article {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    align-self: start;
}

article section {
    flex: 1;
    background-color: black;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

article section:hover a {
    opacity: var(--opacity-2);
}

article section.full {
    grid-column: 1 / -1;
    height: auto;
    width: 100%;
}

article section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media screen and (max-width: 850px) {
    article {
        grid-template-columns: repeat(2, 1fr);
    }

    article section {
        height: 200px;
    }
}

@media screen and (max-width: 550px) {
    main {
        padding: 0 15px;
    }

    article {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 15px;
    }
}