@import url("styles.css");

#projects {
    height: 100%;
    background-image: url(../images/works-bg.png);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    overflow-x: hidden;
    color: var(--color-black);
}

#projects .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#projects .container .title {
    color: var(--color-black);
    font-family: var(--font-barlow);
    font-size: 4rem;
    font-weight: 700;
    margin: 7rem 0 0 0;
}

#projects .container .projects {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 2rem 0;
    gap: 2rem;
}

#projects .container .projects .project {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--color-red);
    padding-top: 20px;
    border-radius: var(--border-radius);
}

#projects .container .projects .project:nth-child(-n + 3) {
    flex-basis: calc(33.33% - 2rem);
    margin-bottom: 2rem;
  }
  
#projects .container .projects .project:nth-child(n + 4) {
    flex-basis: calc(33.33% - 2rem);
}
  
.projects .project img{
    width: 550px;
    height: 400px;
}

.projects .project .project_title {
    color: var(--color-white);
    font-family: var(--font-lato);
    font-size: 1.7rem;
    font-weight: 500;
    margin: 1rem 0;
}

/********** RESPONSIVENESS STYLE *************/
@media (max-width: 576px) {
    #projects .container .title {
        font-size: 2rem;
    }

    .projects .project img {
        width: 350px;
        height: 200px;
    }

    .projects .project .project_title {
        font-size: 1.3rem;
    }
}