/* Committed 'ring' depth. The theme-json step publishes the
   same value as --wp--preset--shadow--depth; the literal fallback
   keeps isolated finalize runs deterministic too. */
.wp-block-group:is(.card-style--flush, .card-style--framed, .card-style--overlap),
figure.wp-block-image:not(.alignfull) > img,
figure.wp-block-image:not(.alignfull) > a > img,
.wp-block-cover:not(.alignfull),
.wp-block-media-text:not(.alignfull) > .wp-block-media-text__media {
    box-shadow: var(--wp--preset--shadow--depth, 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent)) !important;
}

/* One elevated card is one surface: its direct media must not draw
   a second shadow. Borderless cards are absent on purpose. */
.wp-block-group:is(.card-style--flush, .card-style--framed, .card-style--overlap) > figure.wp-block-image:not(.alignfull) > img,
.wp-block-group:is(.card-style--flush, .card-style--framed, .card-style--overlap) > figure.wp-block-image:not(.alignfull) > a > img,
.wp-block-group:is(.card-style--flush, .card-style--framed, .card-style--overlap) > .wp-block-cover:not(.alignfull),
.wp-block-group:is(.card-style--flush, .card-style--framed, .card-style--overlap) > .wp-block-media-text:not(.alignfull) > .wp-block-media-text__media {
    box-shadow: none !important;
}

