/* callout-block-1 reuses all .callout-block-* styles from callout-block.css */

/* Fix flex sizing so image panel gets proper space */
.callout-block-block  {
    --callout-bg: var(--wp--preset--color--secondary);
    display: block;
    background: var(--callout-bg);
    border-radius: var(--wp--preset--spacing--spacing-1);
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--natural);
    position: relative;
}
.callout-block__content {
    padding: var(--wp--preset--spacing--spacing-6);
    color: #fff;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-between;
    position: relative;
    min-height: 550px;
    z-index: 2;

    .callout-block__title {
        color: inherit;
        font-size: var(--wp--preset--font-size--colossal);
    }

    .callout-block__excerpt {
        font-size: var(--wp--preset--font-size--large);
    }

    .wp-block-button.is-style-secondary {
        a.wp-block-button__link {
            color: #fff;
            border-color: #fff;
        }
    }

    .callout-block-text {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: var(--wp--preset--spacing--spacing-2);

        & > * {
            margin: 0;
        }
    }
}

.callout-block__content-wrap {
    flex: 0 0 100%;
    position: relative;
    z-index: 2 !important;
    min-height: 550px;
}

.callout-block-block svg.cloud-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 0;
    width: 60%;
    height: 100%;
    fill: var(--callout-bg);
    object-fit: cover;
}
.callout-block-block svg.cloud-shape-mobile {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 60vw; /* controls depth of the shape — adjust as needed */
    fill: var(--callout-bg);
    display: none;
}

.callout-block__image-wrap {
    position: absolute;
    height: 100%;
    width: 60%;
    z-index: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;

    img {
        position: absolute;
        top: -15%;
        left: 0;
        width: 100%;
        height: 130%;
        object-fit: cover;
        transform: translateY(var(--cb-parallax, 0px));
    }
}


@media (max-width: 980px) {


    .callout-block-block svg.cloud-shape {
        display: none;
    }

    .callout-block-block svg.cloud-shape-mobile {
        display: block;
        bottom: -20vw;
    }

    .callout-block__content {
        width: 100%;
        min-height: 0;
        height: auto;
        padding-bottom: var(--wp--preset--spacing--spacing-2);

        .wp-block-button {
            margin-top: var(--wp--preset--spacing--spacing-4);

            a {
                width: 100%;
                max-width: 400px;
            }
        }
    }

    .callout-block__content-wrap {
        width: 100%;
        min-height: 0;
        flex-shrink: 0;
    }

    .callout-block__image-wrap {
        position: relative;
        width: 100%;
        height: 80vw;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;

        img {
            position: absolute;
            top: -15%;
            left: 0;
            width: 100%;
            height: 130%;
        }
    }
}
