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

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

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0;
    margin: 20px 0 10px 0;
    color: black;
    text-transform: uppercase;
}


main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: var(--page-width);
    width: 100%;
    padding: 0 20px;
}

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

article a {
    text-decoration: none;
    color: black;
}

section .background,
section .background div {
    flex: 1;
    background-color: black;
    height: 170px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section .background div {
    opacity: var(--opacity-2);
}

section:hover .background div {
    opacity: 1;
}

article h3,
article p {
    display: inline-block;
    font-size: 1rem;
    font-weight: 200;
    padding: 0;
}

article h3 {
    opacity: var(--opacity-1);
    text-transform: uppercase;
    font-style: italic;
    margin: 10px 0 0 0;
}

article p {
    margin: 0;
    text-transform: none;
    font-style: normal;
}

article p::before {
    content: " - ";
    margin: 0;
}

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

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

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

    h1 {
        margin: 10px 0;
    }
}