main {
    max-width: 78rem;
    margin-left: min(max(0rem, 100vw - 90rem), 10%);
}

.max-width-50 {
    max-width: 50rem;
}

.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: .5em;
}

.gallery img {
    width: 100%;
    display: block;
}

.item {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: clamp(1em, 1em + 2vw, 1.5em);
    place-items: center;
    margin: 3em 0;
    position: relative;
}

.item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: .0625rem;
    background: #aaa;
    top: -1.5em;
}

.item h3 a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.item h3 a:hover {
    color: var(--color-link-hover);
}

.img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    overflow: hidden;
}

@supports not (aspect-ratio: 1 / 1) {
    .img-link::before {
        float: left;
        padding-top: 100%;
        content: "";
    }

    .img-link::after {
        display: block;
        content: "";
        clear: both;
    }
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    width: 100%;
}

.text>*>span:first-of-type {
    font-weight: 700;
}

.text p {
    margin: .25em 0;
}


.alternateprojects::before {
    content: "info"
}

.alternateprojects::after {
    content: "alternateprojects.net"
}


@media (max-width: 40rem) {

    .item {
        display: grid;
        grid-template-columns: 1fr;
    }

}