.block-cardimage {
    display: flex;
    gap: 48px;
    width: 100%;
    flex-wrap: wrap;
}

.block-cardimage.per-row-three .text-container-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: calc(100% - 324px);
}

.block-cardimage .card-image .image-cards img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-cardimage .card-image .image-cards .tag-cards {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--wp--preset--color--off-white);
    padding: 8px 16px;
    color: var(--wp--preset--color--primary);
    font-size: 32px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;
}

.block-cardimage .card-image .image-cards {
    position: relative;
}

.block-cardimage .card-image {
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px;
    border: 2px solid var(--wp--preset--color--grey);
    background: var(--wp--preset--color--off-white);
    padding: 48px;
    box-sizing: border-box;
}

.block-cardimage.per-row-two .card-image {
    width: calc(50% - 24px);
    display: flex;
}

.block-cardimage.per-row-two .card-image .image-cards {
    max-width: 448px;
    min-width: 448px;
    min-height: 536px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    border-radius: 24px;
    overflow: hidden;
    margin-right: 32px;
}

.block-cardimage.per-row-two .text-container-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-cardimage.per-row-two .text-container-cards .title-cards {
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 32px;
}

.block-cardimage.per-row-three .card-image {
    width: calc(33% - 24px);
}

.block-cardimage.per-row-three .image-cards {
    height: 300px;
    width: 100%;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.block-cardimage.per-row-three .text-container-cards .title-cards {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
}

.block-cardimage.per-row-three .text-container-cards .text-cards {
    margin-bottom: 24px;
}

.block-cardimage .text-cards {
    font-size: 32px;
    margin-bottom: 24px;
}

.block-cardimage.per-row-two .noimg {
    background-image: url("../../assets/images/no-image-article-tablet.svg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: block;
}

.block-cardimage.per-row-three .noimg {
    background-image: url("../../assets/images/no-image-article.svg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: block;
}

@media only screen and (max-width: 3000px) {
    .block-cardimage {
        gap: 24px;
    }

    .block-cardimage.per-row-three .text-container-cards {
        height: calc(100% - 162px);
    }

    .block-cardimage .card-image .image-cards .tag-cards {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 16px;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }

    .block-cardimage .card-image {
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        border-radius: 20px;
        border: 1px solid var(--wp--preset--color--grey);
        padding: 24px;
    }

    .block-cardimage.per-row-two .card-image {
        width: calc(50% - 12px);
    }

    .block-cardimage.per-row-two .card-image .image-cards {
        max-width: 224px;
        min-width: 224px;
        min-height: 268px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        border-radius: 12px;
        margin-right: 16px;
    }

    .block-cardimage.per-row-two .text-container-cards .title-cards {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .block-cardimage.per-row-three .card-image {
        width: calc(33% - 12px);
    }

    .block-cardimage.per-row-three .image-cards {
        height: 150px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .block-cardimage.per-row-three .text-container-cards .title-cards {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .block-cardimage.per-row-three .text-container-cards .text-cards {
        margin-bottom: 12px;
    }

    .block-cardimage .text-cards {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

@media only screen and (max-width: 1400px) {
    .block-cardimage.per-row-three .card-image {
        width: calc(33% - 13px);
    }
}

@media only screen and (max-width: 1200px) {
    .block-cardimage.per-row-two {
        flex-direction: column;
    }

    .block-cardimage.per-row-two .card-image {
        width: 100%;
    }

    .block-cardimage.per-row-two .card-image .image-cards {
        max-width: 324px;
        min-width: 324px;
    }

    .block-cardimage .card-image {
        padding: 20px;
    }

    .block-cardimage.per-row-three {
        justify-content: space-between;
    }

    .block-cardimage.per-row-three .card-image {
        width: 48%;
    }

    .block-cardimage.per-row-three .card-image:nth-child(3n) {
        width: 100%;
    }

}

@media only screen and (max-width: 800px) {
    .block-cardimage.per-row-two .card-image {
        display: flex;
        flex-direction: column;

    }

    .block-cardimage.per-row-two .card-image .image-cards {
        max-width: inherit;
        min-width: 100%;
        min-height: 120px;
        max-height: 120px;
        margin-right: 0px;
        margin-bottom: 16px;
    }

    .block-cardimage .card-image {
        padding: 16px;
    }

    .block-cardimage.per-row-two .text-container-cards .title-cards {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .block-cardimage .text-cards {
        margin-bottom: 16px;
    }

    .block-cardimage.per-row-three {
        flex-direction: column;
    }

    .block-cardimage.per-row-three .card-image {
        width: 100%;
    }

    .block-cardimage.per-row-two .noimg {
        background-image: url("../../assets/images/no-image-article.svg");

    }
}