.featured-projects--three {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    align-items: stretch;
}

.featured-projects--three a {
    display: block;
    overflow: hidden;
    height: 100%;
}

.featured-projects--three a::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #2C3542 100%);
    transition: all 0.3s ease;
}

.featured-projects--three a:hover::before{
    filter: brightness(0.4);
}

.featured-project--large {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}

.featured-project--large img {
    max-height: 500px;
}

.featured-projects__small-stack {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 20px;
    min-height: 450px;
}

.featured-project--small {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 40px;
    overflow: hidden;
}

.featured-projects--three .project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.featured-projects--three .bottom-bar{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.featured-project__title {
    color: #fff;
    font-size: 1.25rem;
}

.featured-projects--three .featured-project .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-projects--fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.featured-project--fallback-item img {
    display: block;
    width: auto;
    height: auto;
}

@media (max-width: 768px) {
    .featured-projects--three {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .featured-projects--large {
        border-radius: 20px;
    }
    .featured-projects--small {
        border-radius: 20px;
    }
    .featured-projects__small-stack {
        grid-template-rows: repeat(2, auto);
    }

    .featured-projects--three .wp-block-button__link{
        padding: 11px !important;
    }
    .featured-projects--three .wp-block-button__link span{
        display: none;
    }
}
