.call-to-action-with-image{
    max-width: var(--wide-width);
    margin: var(--block-margin) auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--row-gap);
}

.call-to-action-with-image-header{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--row-gap);
    column-gap: var(--column-gap);
}

.call-to-action-with-image-header.animate__animated{
    animation-name: fadeInUp;
}

.call-to-action-with-image-header img{
    border-radius: 4rem;
}

.call-to-action-with-image-header h2{
    margin-bottom: 0;
    font: var(--font-headline-3);
    position: relative;
}

.call-to-action-with-image-content{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--row-gap);
    column-gap: var(--column-gap);
    align-items: start;
}

.call-to-action-with-image-content.animate__animated{
    animation-name: fadeInUp;
}

.call-to-action-with-image-content p{
    margin-bottom: 0;
}

.call-to-action-with-image-buttons{
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--item-column-gap);
    row-gap: var(--item-row-gap);
    align-items: center;
}

@media (min-width: 992px){
    .call-to-action-with-image-header{
        grid-template-columns: minmax(0, 1fr) var(--column-gap) minmax(0, 1fr);
        grid-template-rows: minmax(20rem, auto) minmax(0, auto);
    }

    .call-to-action-with-image-header img{
        grid-column: 1 / span 3;
        grid-row: 1 / span 2;
        max-height: 50rem;
        object-fit: cover;
        min-height: 100%;
    }

    .call-to-action-with-image-header h2{
        grid-column: 1 / span 2;
        grid-row: 2;
        background-color: var(--background-color);
        padding-top: var(--item-row-gap);
        padding-right: var(--column-gap);
        border-top-right-radius: 4rem;
    }

    .call-to-action-with-image-header h2::before{
        content: '';
        display: block;
        width: 8rem;
        height: 4rem;
        position: absolute;
        bottom: 100%;
        left: 0;
        background: transparent;
        border-radius: 0 0 0 4rem;
        box-shadow: -4rem 0 0 0 var(--background-color);
        pointer-events: none;

    }

    .call-to-action-with-image-header h2::after{
        content: '';
        display: block;
        width: 8rem;
        height: 4rem;
        position: absolute;
        bottom: 0;
        left: 100%;
        background: transparent;
        border-radius: 0 0 0 4rem;
        box-shadow: -4rem 0 0 0 var(--background-color);
        pointer-events: none;
    }

    .call-to-action-with-image-content{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}