body:has(.paginas-o-projeto) .elementor *:not(i) {
    font-family: "Fabriga";
}

body#cms:has(.paginas-o-projeto) #content-wrapper .page-title {
    display: none!important;
}

body:has(.paginas-o-projeto) .elementor h2 {
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 50px;
}

body:has(.paginas-o-projeto) .elementor img {
    border-radius: 10px!important;
}

body:has(.paginas-o-projeto) .algodao-images {
    height: 100vh;
}

@media (max-width: 992px) {
    body:has(.paginas-o-projeto) .elementor h2 {
        font-weight: bold;
        font-size: 2.9rem;
        line-height: 3.5rem;
    }
}

body:has(.paginas-o-projeto) .no-margin-bottom p {
    margin-bottom: 0!important;
}

body:has(.paginas-o-projeto) .no-margin-y p {
    margin: 0!important;
}

body:has(.paginas-o-projeto) .elementor p,
body:has(.paginas-o-projeto) .elementor p.elementor-heading-title {
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.5em;
}

.project-menu-title {
    text-align: center;
    font-size: 2rem!important;
    margin-bottom: 50px;
    font-weight: 400!important;
    font-family: "Fabriga"!important;
}

.project-menu {
    display: grid;
    margin: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1vw;
}

.project-menu .card {
    display: flex;
    border: none;
    width: 100%;
    pointer-events: all;
}

#project-menu-app img {
    width: 100vw;
    height: 20vh;
    object-fit: cover;
}

#project-menu-app .modal-body div .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.3;
    border-radius: 20px;
}

.project-menu .card h3 {
    color: white;
    z-index:100;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: x-large!important;
}

/* Project Menu */
#project-menu-app .agmodal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f8f9fae1 !important;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#project-menu-app .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#project-menu-app .modal-body div {
    width: 70vw;
    justify-items: center;
    align-content: center;
}

/*********** CARD DARK OU LIGHT **********/

/*** DARK ***/
.project-menu .card.dark .overlay {
    background: black;
}

.project-menu .card.dark h3 {
    color: white;
}

/*** LIGHT ***/
.project-menu .card.light .overlay {
    background: white;
}

.project-menu .card.light h3 {
    color: black;
}

/*****************************************/

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    background: black;
    opacity: 0.3;
    border-radius: 20px;
}

@media (min-width: 993px) {
    .project-menu .card:nth-child(5n+2), 
    .project-menu .card:nth-child(5n+4) {
        position: relative;
        top: 5vh;
    }
}

@media (max-width: 992px) {
    .project-menu {
        grid-template-columns: auto;
        overflow: scroll;
        gap: 2vw;
    }

    #project-menu-app .agmodal-content {
        pointer-events: none;
    }

    #project-menu-app .modal-body div {
        overflow-x: hidden;
    }

    .full-vh {
        height: 75vh;
        pointer-events: all;
        overflow-y: scroll;
        border-radius: 20px;
    }

    /*** index.tpl ***/
    .index-project-menu-app .project-menu {
        grid-template-columns: auto;
        overflow: hidden;
    }

    .index-project-menu-app #project-menu-app .agmodal-content {
        pointer-events: none;
    }

    .index-project-menu-app .full-vh {
        height: 100%;
    }
}

.project-menu .card img {
    border-radius: 20px;
}

.project-menu-selector{position: fixed; right: 30px; top: 150px;  z-index: 9999}
.project-menu-selector i{font-size: 2rem; cursor: pointer;}
.project-menu-selector i:hover{font-size: 2.2rem}

#project-menu-app .modal-header,
#project-menu-app .modal-footer {display: none}

#project-menu-app .agmodal-content{padding: 0;}

@media(max-width: 768px) {
    #project-menu-app .agmodal-content{
        overflow-y: scroll
    }
}
