.projetos-masonry-container {
    width: 100%;
}

.projetos-masonry-grid {
    width: 100%;
    margin: -5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projetos-masonry-grid.projetos-masonry-initialized {
    opacity: 1;
}

.projetos-masonry-grid .projeto-item {
    width: 25%;
    padding: 5px;
    box-sizing: border-box;
}

.projeto-masonry-item {
    width: 100%;
    overflow: hidden;
}

.project-masonry-wrapper {
    width: 100%;
}

.project-masonry-item-img-link {
    display: block;
    width: 100%;
}

.project-masonry-item-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    line-height: 0;
}

.project-masonry-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projetos-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    clear: both;
}

.projetos-load-more-btn {
    background: #333;
    border: none;
    color: #fff;
    padding: 14px 40px;
    cursor: pointer;
}

.projetos-load-more-spinner {
    display: none;
}

.projetos-load-more-btn.loading .projetos-load-more-text {
    display: none;
}

.projetos-load-more-btn.loading .projetos-load-more-spinner {
    display: inline-block;
}

@media (max-width: 991px) {
    .projetos-masonry-grid .projeto-item {
        width: 33.333333%;
    }
    
    .project-masonry-item-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .projetos-masonry-grid .projeto-item {
        width: 50%;
    }
    
    .project-masonry-item-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .projetos-masonry-grid {
        margin: -5px;
    }
    
    .projetos-masonry-grid .projeto-item {
        width: 100%;
        padding: 5px;
    }
    
    .project-masonry-item-img {
        height: 220px;
    }
}

.elementor-slideshow__title {
    display: none !important;
}

.mfp-bg {
    cursor: pointer !important;
}

.mfp-wrap {
    cursor: pointer !important;
}

.mfp-container {
    cursor: pointer !important;
}

.mfp-image-holder {
    cursor: pointer !important;
}

.mfp-figure {
    cursor: pointer !important;
}

.mfp-img {
    cursor: default !important;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: pointer !important;
}

.mfp-arrow {
    background: rgba(0, 0, 0, 0.5) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin-top: -30px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfp-arrow:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.mfp-arrow:before,
.mfp-arrow:after {
    content: '' !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    position: absolute !important;
    margin: 0 !important;
}

.mfp-arrow-left {
    left: 20px !important;
}

.mfp-arrow-left:after {
    width: 12px !important;
    height: 12px !important;
    border-top: 3px solid #fff !important;
    border-right: 3px solid #fff !important;
    transform: rotate(-45deg) !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: -6px !important;
    margin-top: -6px !important;
}

.mfp-arrow-right {
    right: 20px !important;
}

.mfp-arrow-right:after {
    width: 12px !important;
    height: 12px !important;
    border-top: 3px solid #fff !important;
    border-right: 3px solid #fff !important;
    transform: rotate(135deg) !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: -6px !important;
    margin-top: -6px !important;
}

@media (max-width: 768px) {
    .mfp-arrow {
        width: 50px !important;
        height: 50px !important;
        margin-top: -25px !important;
    }
    
    .mfp-arrow-left {
        left: 10px !important;
    }
    
    .mfp-arrow-left:after {
        margin-left: -6px !important;
        margin-top: -6px !important;
    }
    
    .mfp-arrow-right {
        right: 10px !important;
    }
    
    .mfp-arrow-right:after {
        margin-left: -6px !important;
        margin-top: -6px !important;
    }
}

.projetos-masonry-grid:not(.projetos-masonry-initialized) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
 }
 .projetos-masonry-grid:not(.projetos-masonry-initialized) .projeto-item {
    width: 100%;
    height: 100%;
    max-height: 400px;
 }
 .projetos-masonry-grid:not(.projetos-masonry-initialized) .projeto-item img {
    height: 400px !important;
    object-fit: cover !important;
    max-height: 400px;
    width: 100% !important;
 }
 @media (max-width: 768px) {
    .projetos-masonry-grid:not(.projetos-masonry-initialized) {
       grid-template-columns: repeat(1, 1fr);
    }
 }
 .projetos-masonry-grid:not(.projetos-masonry-initialized) .projetos-masonry-sizer {
    display: none;
 }

.projetos-interactive-container {
    width: 100%;
}

.projeto-interactive-card {
    width: 100%;
    margin-bottom: 40px;
}

.projeto-interactive-card:last-child {
    margin-bottom: 0;
}

.projeto-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
}

.projeto-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.projeto-interactive-card-image {
    width: 100%;
}

.projeto-interactive-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.projeto-interactive-image-wrapper {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 20px;
}

.projeto-interactive-image {
    width: 100%;
    height: auto;
    display: block;
}

.projeto-interactive-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.projeto-interactive-text {
    margin-top: 15px;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
}

@media (max-width: 768px) {
    .projeto-interactive-card {
        margin-bottom: 30px;
    }
    
    .projeto-interactive-title {
        font-size: 1.25em;
    }
}

@media (max-width: 768px) {
    .projetos-masonry-grid {
       position: static !important;
    }
    .portfolio-item {
       display: flex;
       justify-content: center;
    }
    .portfolio-item .project-masonry-wrapper {
       margin: 0 !important;
    }
 }
 