main {
    max-width: 80%;
    margin: 50px auto;
}

#project-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: 32px;
    display: grid;
    margin-top: 20px;
}

.project-grid-item {
    grid-column: span 3;
    background-color: #100E1B;
    border-radius: 30px;
}

.project-grid-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transition: filter 0.3s ease;
}

.project-grid-item h1 {
    font-size: 14px;
    margin: 25px 20px;
}

.project-grid-item:hover img {
    filter: brightness(75%);
}

body {
    background: linear-gradient(to bottom, #100F13 0%, #1E1547 20%, #1E1547 calc(100% - 550px), #100F13 calc(100% - 200px));
}


/* Filter Buttons */

.projectfilterbutton {
    font-family: "Libre Franklin", sans-serif;
    font-size: 24px;
    padding: 5px 30px;
    border-radius: 30px;
    font-weight: 600;
    background-color: #100E1B;
    color: white;
    border: 5px solid #90B3FF;
    margin-bottom: 20px;
    margin-right: 20px;
}

.projectfilterbutton.selected {
    background: linear-gradient(#90B3FF, #104A74);
    border: transparent;
    padding: 10px 35px;
}


/* -------------- */

@media screen and (max-width: 1200px) {
    .project-grid-item {
        grid-column: span 6;
    }
}
@media screen and (max-width: 1199px) {
    .project-grid-item {
        grid-column: span 4;
    }
}
@media screen and (max-width: 710px) {
    .project-grid-item{
        grid-column: span 12;
    }
    #project-grid {
        column-gap: 0;
    }
}