:is(.entry-content, .wp-block-post-content, main, .is-reusable)>.wp-block-media-text.alignfull {
    position: relative;
    overflow: hidden;

    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border-radius: 0 2rem 0 2rem;

    @media screen and (min-width: 600px) {

        background-image: linear-gradient(180deg, transparent 0%, transparent calc(100% - 4rem), white calc(100% - 4rem), white 100%);
        border-radius: 0;

        & .wp-block-media-text__content {
            margin-bottom: 4rem;
        }

        & .wp-block-media-text__media {
            position: relative;
            margin-top: 8rem;
            height: calc(100% - 8rem) !important;
            background-color: inherit;

            &>img {
                height: 100%;
                object-fit: cover;
            }

            &:before {
                content: "";
                position: absolute;
                right: -3rem;
                top: -8rem;
                width: 100vw;
                height: 8rem;
                background-color: white;
                border-radius: 0 0 2rem 0;
                z-index: 1;
            }

            &:after {
                content: "";
                position: absolute;
                right: 0;
                bottom: 4rem;
                width: min(15%, 4rem);
                height: calc(100% - 4rem);
                background-color: inherit;
                border-radius: 0 0 0 2rem;
                z-index: 1;
            }
        }

        &.has-media-on-the-right {

            & .wp-block-media-text__media {

                &:before {
                    border-radius: 0 0 0 2rem;
                    left: -3rem;
                    right: auto;
                }

                &:after {
                    border-radius: 0 0 2rem 0;
                    left: 0;
                    right: auto;
                }
            }
        }

    }
}

:is(.entry-content, .wp-block-post-content, main, .is-reusable)>.wp-block-media-text:not(.alignfull) {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);

    border-radius: 0 2rem 0 2rem;
    overflow: hidden;

    & .wp-block-media-text__content {
        padding-block: 1.5rem 2rem;
    }

}

:is(.entry-content, .wp-block-post-content, main, .is-reusable)>.wp-block-media-text:not(.alignfull) .wp-block-media-text__media {
    position: relative;

    & figcaption {
        position: absolute;
        bottom: .5rem;
        right: .5rem;
        padding: 0.25rem 0.5rem;
        color: var(--wp--preset--color--white);
        font-size: var(--wp--preset--font-size--small);
        background: rgba(0, 0, 0, 0.4);
        border-radius: 0 1em;
        opacity: 0.9;
        max-width: 75%;
    }