.wp-block-image.is-style-fancy {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    padding-bottom: 1.5rem;

    &:before {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        grid-area: 1 / 1 / 2 / 2;
        z-index: 2;
        position: relative;
        left: -.75rem;
        top: -.75rem;
        border-radius: 1.5rem 1rem 1rem 1rem;
        background-color: rgb(238 80 80 / 30%);
    }

    &:after {
        content: '';
        width: calc(100% - 1rem);
        height: calc(100% - .5rem);
        display: block;
        grid-area: 1 / 1 / 2 / 2;
        z-index: 2;
        position: relative;
        top: .5rem;
        left: 1rem;
        border: .5rem solid var(--wp--preset--color--primary);
        border-radius: 1rem 1rem 2rem 1rem;
    }

    img {
        grid-area: 1 / 1 / 2 / 2;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(0,0,0,.2);
        position: relative;
        z-index: 3;
    }

    figcaption {
        display: none;
    }

    /* editor fix only */
    &:has(div > img){
        & > div {
            grid-area: 1 / 1 / 2 / 2;
        }
    }

    &:has(.components-resizable-box__container) {
        & > div {
            grid-area: 1 / 1 / 2 / 2;
        }

        &:after {
            top: .5rem !important;
            left: 1rem !important;
        }
    }
}

.wp-block-image.is-style-fancy-irish-angel {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    padding-bottom: 1.5rem;

    &:before {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        grid-area: 1 / 1 / 2 / 2;
        z-index: 2;
        position: relative;
        left: -.75rem;
        top: -.75rem;
        border-radius: 1.5rem 1rem 1rem 1rem;
        background-color: rgb(80 238 225 / 30%);
    }

    &:after {
        content: '';
        width: calc(100% - 1rem);
        height: calc(100% - .5rem);
        display: block;
        grid-area: 1 / 1 / 2 / 2;
        z-index: 2;
        position: relative;
        top: .5rem;
        left: 1rem;
        border: .5rem solid var(--wp--preset--color--irish-angel);
        border-radius: 1rem 1rem 2rem 1rem;
    }

    img {
        grid-area: 1 / 1 / 2 / 2;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(0,0,0,.2);
        position: relative;
        z-index: 3;
    }

    figcaption {
        display: none;
    }

    /* editor fix only */
    &:has(div > img){
        & > div {
            grid-area: 1 / 1 / 2 / 2;
        }
    }

    &:has(.components-resizable-box__container) {
        & > div {
            grid-area: 1 / 1 / 2 / 2;
        }

        &:after {
            top: .5rem !important;
            left: 1rem !important;
        }
    }
}
