figure.image-has-overlay {
    position: relative;
}
figure.image-has-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: black;
    opacity: var(--overlay-opacity, 0.7);
}
figure.has-background.image-has-overlay::after {
    background: inherit;
}

figure.wp-block-image.has-custom-image-height :is(svg,img) {
    height: inherit;
    width: inherit;
}
figure.wp-block-image.has-custom-image-height .components-resizable-box__container {
    height: inherit !important;
    max-height: inherit !important;
}