.projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin-top: 6rem;
        position: relative;
    }

    .title{
        align-self: flex-start;
    }

    .title h2{
        text-align: left;
        font-size: 3rem;
    }

    .title p {
        text-align: left;
        font-size: 0.9rem;
        font-weight: 600;
        color: rgb(209 207 192 / 0.52);
    }

    .decal{
        position: absolute;
        z-index: -1;
        left: -300px;
        top: 10px;
    }

    .tiles{
        align-self: flex-end;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 2rem;
    }

    .tile{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 20rem;
        height: 28rem;
        /*border: 4px solid var(--primary);*/
        padding: 1rem;
        border-radius: 20px;
        background-color: rgba(209, 207, 192, 0.05);
       /* background: #282827;*/
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    }

    .tile-img{

        border-radius: 12px;
        overflow: clip;

        height: 160px;
        width: 280px;
        box-shadow: #1F1F1F 4px 4px 10px;
        border: 4px solid rgba(209, 207, 192, 0.05);
        margin-bottom: 4px;
    }

    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0;
        /*border: 4px solid var(--primary);*/
    }

    .tile-content{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 90%;
    }

    .project-name{
        font-size: 1.2rem;
        font-weight: 700;
        padding: 0.2rem;
        margin: 0;
        margin-top: 1rem;
    }

    .summary{
        flex: 1;
        font-size: 0.8rem;
        font-weight: 600;
        opacity: 0.8;
        padding: 0.2rem;
        margin: 0;
    }

    .buttons{
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 0.5rem;
        margin-top: auto;
        margin-bottom: 1rem;
        align-self: flex-end;
        button{
            width: 100%;
            height: 3rem;
            border: none;
            background: var(--primary);
            border-radius: 18px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: all 0.1s ease-in-out;
        }
        button:last-child{
            /*
            background: rgba(255, 255, 255, 0.33);
            */
            background: transparent;
            color: #C9C7B8;
            border: 2px solid #C9C7B8;

        }
        button:hover, button:active{
            border-radius: 14px;
            cursor: pointer;
            opacity: 1;
            font-size: 0.9rem;
        }
    }
}

@media (max-width: 500px) {
    .projects{
        h2{
            font-size: 2rem;
        }
        .title{
            padding-top: 30vh;
        }

        .tiles{
            gap: 6rem;
        }

        .tile{
            width: 80vw;
            height: 30rem;

            .project-name{
                font-size: 1rem;
                padding: 0.2rem;
            }
            .summary{
                font-size: 0.7rem;
                opacity: 0.8;
                padding: 0.2rem;
            }
            button{
                height: 3.5rem;
            }
        }
    }
}

@media (max-width: 400px) {
    .tile {
        .tile-img{
            width: 90%;
        }
    }
}