/**
 * Article images can breathe beyond the reading measure, while body copy and
 * embeds (including our own event cards) stay comfortably within it.
 */
:where(body.single-post, body.single-ace_news_story) .wp-block-post-content > :where(.wp-block-image, .wp-block-gallery):not(.alignwide):not(.alignfull),
.editor-styles-wrapper .is-root-container > :where(.wp-block-image, .wp-block-gallery):not(.alignwide):not(.alignfull) {
	--iga-article-media-bleed: clamp(0.75rem, 4vw, 3rem);
	position: relative;
	left: 50%;
	width: min(
		calc(100% + var(--iga-article-media-bleed) + var(--iga-article-media-bleed)),
		calc(var(--wp--style--global--content-size, 645px) + var(--iga-article-media-bleed) + var(--iga-article-media-bleed))
	);
	max-width: none;
	margin-right: 0 !important;
	margin-left: 0 !important;
	transform: translateX(-50%);
}

/* A rounded block style must never turn editorial photography into a circle. */
:where(body.single-post, body.single-ace_news_story) .wp-block-post-content :where(.wp-block-image, .wp-block-gallery) img,
.editor-styles-wrapper :where(.wp-block-image, .wp-block-gallery) img {
	border-radius: 0.5rem !important;
}

@media (max-width: 480px) {
	:where(body.single-post, body.single-ace_news_story) .wp-block-post-content > :where(.wp-block-image, .wp-block-gallery):not(.alignwide):not(.alignfull),
	.editor-styles-wrapper .is-root-container > :where(.wp-block-image, .wp-block-gallery):not(.alignwide):not(.alignfull) {
		--iga-article-media-bleed: 0.5rem;
	}
}
