body {
    padding: 32px var(--padding) 0px var(--padding);
}

main .back {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

main .back .backinner {
    width: fit-content;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    font-weight: 700;
}

main .projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
}

main .projects .proj {
    width: 500px;
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--background-dark-1);
    display: flex;
    flex-direction: column;
}

main .projects .proj .img {
    position: relative;
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    width: 100%;
    z-index: 1;
    background-color: var(--background-hl);
}

main .projects .proj .title h1 {
    margin-top: 16px;
    font-size: 24px;
}

main .projects .proj .tags {
    width: 100%;
    overflow-x: scroll;
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

main .projects .proj .tags .tag {
    padding: 4px 8px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    background-color: var(--background);
}

main .projects .proj .description {
    height: 60px;
    flex-grow: 1;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow: none;
}

main .projects .proj .buttons {
    display: flex;
    justify-content: space-between;
}

main .projects .proj .buttons button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--border);
    padding: 8px 16px;
    outline: none;
    border-radius: 8px;
    background-color: var(--background);
    cursor: pointer;
}

main .projects .proj .buttons .inline {
    display: flex;
    gap: 8px;
}

main .projects .proj .buttons button:disabled {
    cursor: not-allowed;
    position: relative;
}

main .projects .proj .buttons button:disabled::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: black;
    left: -2px;
    top: -2px;
    z-index: 2;
    border: 2px solid black;
    opacity: 0.5;
}