.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #51515177;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.c-modal {
    width: 65%;
    background: rgb(52,38,81);
    background: linear-gradient(220deg, rgba(52,38,81,1) 0%, rgba(0,0,0,1) 50%);
    border-radius: 3rem;
    padding: 7rem 7rem 7rem 10rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 2%;
    right: 2%;
    cursor: pointer;
}

.bg-projetos-mkt {
    background-image: url('../images/bgs/bg-mkt.png');
    background-position: top center;
    background-size: cover;
}

.c-projetos {
    height: 100%;
}

.c-projetos h1 {
    font-size: 50px;
    position: relative;
    z-index: 2;
}

.box-projetos {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 6.7rem;
    position: relative;
    z-index: 2;
}

.box-imagem-projeto {
    height: 30rem;
}

.projeto {
    flex: 0 0 calc(25% - 20px);
    border-radius: 1.5rem;
    border: .1rem solid #FFF;
    background: linear-gradient(45deg, #3F3F3F 8.05%, rgba(0, 0, 0, 0.00) 135.53%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin: 10px;
    backdrop-filter: blur(3px);
}

.img-projeto {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    background: linear-gradient(14deg, #000 -7.52%, rgba(0, 0, 0, 0.00) 73.41%);
    object-fit: cover;
    border-radius: 1rem;
}

.box-info-projeto {
    width: 100%;
    height: 13rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 1.2rem;
}

.projeto h3 {
    font-size: 1.6rem;
    font-family: var(--madeRegular);
    color: #fff;
    font-weight: normal;
}

.projeto h3 span {
    font-family: var(--madeThin) !important;
}

.projeto .responsavel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.responsavel div {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.projeto .responsavel h4 {
    font-size: 1.6rem;
    font-family: var(--madeLight);
    color: #fff;
}

.projeto .responsavel img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 10rem;
    margin-right: 5px;
}

.box-btn-projeto {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projeto .box-info-projeto a {
    padding: .5rem 2rem;
    border-radius: 1.1rem;
    background-color: #ffffff;
    font-size: 1.6rem;
    font-family: var(--madeRegular);
    color: #000000;
    transition: all ease .3s;
    text-decoration: none;
    cursor: pointer;
}

.projeto .box-info-projeto a:hover {
    background-color: #7A2EFF;
    transition: all ease .3s;
    color: #fff;
}

/* MODAL  */

.box-info-modal {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4.3rem;
    margin-top: 4rem;
}

.box-info-modal .box-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 4.2rem;
    align-items: flex-start;
}

.box-info-modal img {
    height: 50rem;
    width: 50rem;
    object-fit: cover;
    border-radius: 2.4rem;
    border: .1rem solid #fff;
}

.box-responsavel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.box-responsavel img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50rem;
    object-fit: cover;
    margin-right: 20px;
}

.modal-projetos h2 {
    font-size: 4rem;
    font-weight: 500;
    color: #fff;
    font-family: var(--madeRegular);
}

.box-responsavel h4 {
    font-size: 2.4rem;
    font-weight: 300;
    font-family: var(--madeLight);
    color: #fff;
}

.box-info-modal h3 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    font-family: var(--madeRegular);
}

.box-info-modal p {
    font-size: 1.8rem;
    text-align: justify;
    font-family: var(--madeThin);
    color: #fff;
}

.box-info-modal a {
    background-color: #7A2EFF;
    color: #fff;
    font-size: 2.4rem;
    font-family: var(--madeRegular);
    border-radius: 1rem;
    padding: 1rem 4rem;
}

.box-responsavel > div {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.box-title-participe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 10px;
}

.box-title-participe > a {
    border: 1px solid #ffffff40;
    font-family: var(--madeLight);
    font-size: 20px;
    background-color: #5A22BC;
    color: #FFFFFF;
    border-radius: 5rem;
    padding: 15px 25px;
    z-index: 2;
}

@media (max-width:1560px) {

    .box-imagem-projeto {
        height: 20rem;
    }

    .c-projetos h1{
        font-size: 4rem;
    }

    /* MODAL  */

    .modal {
        height: 100%;
    }
    
    .c-modal {
        width: 70%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 3rem;
        padding: 3rem;
        margin: 40px 0px;
        position: relative;
        height: 657px;
        overflow-y: auto;
    }
    
    .close-modal {
        position: absolute;
        top: 2%;
        right: 2%;
        cursor: pointer;
    }
    

    .box-info-modal img{
        height: 40rem;
        width: 40rem;
    }

    .box-info-modal h3{
        font-size: 3.2rem;
    }
    
}

@media (max-width:1371px) {

    .box-projetos {
        justify-content: space-between;
    }

    .projeto{
        flex: 0 0 calc(30% - 20px);
    }

    /* MODAL  */
    
    .box-info-modal img{
        height: 35rem;
    }

  

    .box-info-modal p{
        font-size: 1.8rem;
    }

}

@media (max-width:1025px) {
    .projeto{
        flex: 0 0 calc(45% - 20px);
    }

    .box-items-menu a{
        font-size: 1.4rem;
        padding-left: 1.5rem;
    }

    /* MODAL  */

    .modal-projetos h2{
        font-size: 4rem;
    }

}


@media all and (max-width: 781px) {
    /* MODAL  */

    .box-info-modal{
        flex-direction: column;
    }

    .box-info-modal img {
        width: 100%;
        height: 30rem;
    }

    .box-info-modal .box-info {
        width: 100%;
        gap: 2rem;
    }

    .box-info-modal a{
        margin: 0 auto;
        font-size: 2rem;
    }

    .modal-projetos h2{
        font-size: 2.6rem;
    }

    .box-responsavel h4{
        font-size: 1.6rem;
    }

    .box-info-modal h3{
        font-size: 3rem;
    }

    .box-info-modal p{
        font-size: 1.6rem;
    }

}

@media all and (max-width: 552px) {

    .projeto {
        flex: 0 0 calc(100% - 20px);
        width: auto;
        padding: 2rem;
    }

    .c-projetos {
        height: auto;
    }

    .box-title-participe {
        flex-direction: column;
        align-items: center;
        margin: 4rem 0px;
    }

    .box-title-participe > a {
        margin: 3rem 0rem;
        font-size: 1.4rem;
    }

    .box-title-participe > h1 {
        text-align: center;
    }

    .projeto h3 {
        font-size: 1.8rem;
    }

    .projeto .responsavel h4 {
        font-size: 1.4rem;
    }

    .projeto .box-info-projeto a {
        font-size: 1.3rem;
    }

    .projeto .responsavel img {
        width: 2.3rem;
        height: 2.3rem;
    }

    .box-imagem-projeto {
        height: 30rem;
    }

    .c-modal {
        width: 90%;
        margin: 8rem 0rem 0rem 0rem;
    }

    .box-info-modal img {
        width: 100%;
        height: 29rem;
    }

    .box-responsavel {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        margin-top: 2rem;
        flex-direction: column;
    }

    .modal {
        height: 100%;
        align-items: flex-start;
        background-color: transparent;
        overflow: auto;
        padding-bottom: 2rem;
    }

    .bg-projetos-mkt {
        position: relative;
    }
}

@media (max-width: 400px) {
    .box-title-participe > h1 {
        font-size: 3rem;
    }

    .box-info-modal {
        gap: 1.3rem;
        margin-top: 4rem;
    }

    .box-info-modal h3 {
        font-size: 2rem;
    }

    .box-imagem-projeto {
        height: 28rem;
    }

    .box-info-modal p {
        font-size: 1.4rem;
    }
}
