.we-project-grid-wrap,
.we-project-grid-wrap * {
    box-sizing: border-box;
}

.we-project-grid-wrap {
    width: 100%;
    --we-grid-columns: 3;
    --we-grid-gap: 30px;
    --we-card-ratio: 1 / 1.22;
    --we-card-radius: 0px;
    --we-overlay-opacity: 0.52;
    --we-title-size: 24px;
    --we-title-weight: 800;
    --we-date-size: 12px;
    --we-date-weight: 700;
    --we-text-color: #ffffff;
    --we-filter-radius: 999px;
    --we-filter-weight: 600;
    --we-filter-bg-color: #ffffff;
    --we-filter-text-color: #111111;
    --we-filter-border-color: #dddddd;
    --we-filter-active-bg-color: #111111;
    --we-filter-active-text-color: #ffffff;
    --we-filter-active-border-color: #111111;
    --we-pagination-radius: 999px;
    --we-pagination-weight: 600;
    --we-pagination-bg-color: #ffffff;
    --we-pagination-text-color: #111111;
    --we-pagination-border-color: #dddddd;
    --we-pagination-active-bg-color: #111111;
    --we-pagination-active-text-color: #ffffff;
    --we-pagination-active-border-color: #111111;
}

.we-project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 28px;
}

.we-project-filter {
    border: 1px solid var(--we-filter-border-color);
    background: var(--we-filter-bg-color);
    color: var(--we-filter-text-color);
    padding: 9px 16px;
    border-radius: var(--we-filter-radius);
    font-size: 14px;
    font-weight: var(--we-filter-weight);
    line-height: 1;
    cursor: pointer;
    transition: all 180ms ease;
    font-family: inherit;
    font-weight: var(--we-filter-weight);
}

.we-project-filter:focus,
.we-project-filter:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.we-project-filter:hover,
.we-project-filter:focus,
.we-project-filter:focus-visible,
.we-project-filter.is-active {
    background: var(--we-filter-active-bg-color);
    color: var(--we-filter-active-text-color);
    border-color: var(--we-filter-active-border-color);
}

.we-project-filter-style-minimal .we-project-filter {
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid var(--we-filter-border-color);
    padding: 8px 4px;
}

.we-project-filter-style-minimal .we-project-filter:hover,
.we-project-filter-style-minimal .we-project-filter.is-active {
    background: transparent;
    color: var(--we-filter-active-text-color);
    border-bottom-color: var(--we-filter-active-border-color);
}

.we-project-filter-style-dark .we-project-filter {
    background: var(--we-filter-bg-color);
    color: var(--we-filter-text-color);
    border-color: var(--we-filter-border-color);
}

.we-project-filter-style-dark .we-project-filter:hover,
.we-project-filter-style-dark .we-project-filter.is-active {
    background: var(--we-filter-active-bg-color);
    color: var(--we-filter-active-text-color);
    border-color: var(--we-filter-active-border-color);
}

.we-project-grid-wrap .we-project-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--we-grid-columns), minmax(0, 1fr)) !important;
    gap: var(--we-grid-gap) !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.we-project-grid-wrap .we-project-card {
    position: relative !important;
    aspect-ratio: var(--we-card-ratio);
    min-height: 250px;
    overflow: hidden !important;
    background: #111111;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--we-card-radius) !important;
    transition: opacity 200ms ease, transform 200ms ease;
}

.we-project-grid-wrap .we-project-card.is-hidden {
    display: none !important;
}

.we-project-grid-wrap .we-project-card-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    color: var(--we-text-color) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    border-radius: inherit !important;
}

.we-project-grid-wrap .we-project-card-bg,
.we-project-grid-wrap .we-project-card-overlay,
.we-project-grid-wrap .we-project-card-content {
    position: absolute !important;
    inset: 0 !important;
    display: block;
}

.we-project-grid-wrap .we-project-card-bg {
    z-index: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.01);
    transition: transform 320ms ease, filter 320ms ease;
}

.we-project-grid-wrap .we-project-card-overlay {
    z-index: 1;
    background: rgba(0, 0, 0, var(--we-overlay-opacity)) !important;
    transition: background 320ms ease;
}

.we-project-grid-wrap .we-project-card-content {
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 24px !important;
}

.we-project-grid-wrap .we-project-card-title {
    display: block;
    margin: 0 0 18px !important;
    color: var(--we-text-color) !important;
    font-size: clamp(18px, 2vw, var(--we-title-size)) !important;
    line-height: 1.22 !important;
    font-weight: var(--we-title-weight) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.we-project-grid-wrap .we-project-card-date {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: color-mix(in srgb, var(--we-text-color) 84%, transparent) !important;
    font-size: var(--we-date-size) !important;
    font-weight: var(--we-date-weight) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

@supports not (color: color-mix(in srgb, white 84%, transparent)) {
    .we-project-grid-wrap .we-project-card-date {
        color: rgba(255, 255, 255, 0.84) !important;
    }
}

.we-project-grid-wrap .we-project-date-icon {
    font-size: 10px !important;
    transform: translateY(-1px);
    opacity: 0.8;
}

.we-project-grid-wrap .we-project-card:hover .we-project-card-bg {
    transform: scale(1.08);
    filter: saturate(1.05);
}

.we-project-grid-wrap .we-project-card:hover .we-project-card-overlay {
    background: rgba(0, 0, 0, calc(var(--we-overlay-opacity) + 0.10)) !important;
}

.we-project-grid-empty {
    text-align: center;
    margin: 24px 0;
}

@media (max-width: 1024px) {
    .we-project-grid-wrap .we-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: min(var(--we-grid-gap), 24px) !important;
    }
}

@media (max-width: 640px) {
    .we-project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .we-project-filter {
        white-space: nowrap;
    }
    .we-project-grid-wrap .we-project-grid {
        grid-template-columns: 1fr !important;
        gap: min(var(--we-grid-gap), 22px) !important;
    }

    .we-project-grid-wrap .we-project-card {
        min-height: 260px;
    }

    .we-project-grid-wrap .we-project-card-content {
        padding: 20px !important;
    }
}

.we-project-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.we-project-page-button,
.we-project-page-info {
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--we-pagination-radius);
    border: 1px solid var(--we-pagination-border-color) !important;
    background: var(--we-pagination-bg-color) !important;
    color: var(--we-pagination-text-color) !important;
    font-size: 14px;
    line-height: 1;
    font-family: inherit;
    font-weight: var(--we-pagination-weight);
}

.we-project-page-button {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 180ms ease;
}


.we-project-page-button:focus,
.we-project-page-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.we-project-page-button:hover,
.we-project-page-button:focus,
.we-project-page-button:focus-visible,
.we-project-page-button.is-active {
    background: var(--we-pagination-active-bg-color) !important;
    color: var(--we-pagination-active-text-color) !important;
    border-color: var(--we-pagination-active-border-color) !important;
}

.we-project-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.we-project-page-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    background: transparent;
    font-weight: var(--we-pagination-weight);
}

/* v1.6.2: reforço para impedir que o tema/Elementor altere o fundo no hover da paginação. */
.we-project-grid-wrap .we-project-pagination .we-project-page-button:hover,
.we-project-grid-wrap .we-project-pagination .we-project-page-button:focus,
.we-project-grid-wrap .we-project-pagination .we-project-page-button:focus-visible,
.we-project-grid-wrap .we-project-pagination .we-project-page-button.is-active {
    background: var(--we-pagination-active-bg-color) !important;
    background-color: var(--we-pagination-active-bg-color) !important;
    color: var(--we-pagination-active-text-color) !important;
    border-color: var(--we-pagination-active-border-color) !important;
}

.we-project-grid-wrap .we-project-pagination .we-project-page-button:not(:hover):not(:focus):not(:focus-visible):not(.is-active) {
    background: var(--we-pagination-bg-color) !important;
    background-color: var(--we-pagination-bg-color) !important;
    color: var(--we-pagination-text-color) !important;
    border-color: var(--we-pagination-border-color) !important;
}
