/* Share block rhythm between the news editor and the public feed. */
:is(.rsc-card__content, .editor-styles-wrapper) {
	--rsc-block-gap: 16px;
}
:is(.rsc-card__content, .editor-styles-wrapper) :is(p, .wp-block-image, .wp-block-columns, .wp-block-gallery) {
	margin-top: 0;
	margin-bottom: var(--rsc-block-gap);
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-columns {
	gap: 24px;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter) {
	margin-left: 0;
	margin-right: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image.aligncenter {
	display: table;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
}
/* Outrank Elementor's widget figure reset without changing other widgets. */
.elementor .elementor-widget .rsc-card__content figure.wp-block-image.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright) {
	padding: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .alignright) img {
	margin: 0;
	padding: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image.aligncenter img,
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-image .aligncenter img {
	margin-left: auto;
	margin-right: auto;
}
.elementor .elementor-widget .rsc-card__content figure.wp-block-image.alignleft {
	float: left;
	max-width: 45%;
	margin: 0 24px 16px 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) > .wp-block-image.alignleft {
	float: left;
	max-width: 45%;
	margin: 0 24px 16px 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) > .wp-block-image.alignright {
	float: right;
	max-width: 45%;
	margin: 0 0 16px 24px;
}
.elementor .elementor-widget .rsc-card__content figure.wp-block-image.alignright {
	float: right;
	max-width: 45%;
	margin: 0 0 16px 24px;
}
@media (max-width: 600px) {
	:is(.rsc-card__content, .editor-styles-wrapper) > .wp-block-image:is(.alignleft, .alignright),
	.elementor .elementor-widget .rsc-card__content figure.wp-block-image:is(.alignleft, .alignright) {
		float: none;
		max-width: 100%;
		margin: 0 0 16px;
	}
}
/* A single outer contour, with no rounding or gaps between the three photos. */
:is(.rsc-card__content, .editor-styles-wrapper) .rsc-photo-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	aspect-ratio: 4 / 3;
	gap: 0;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: var(--rsc-block-gap);
}
:is(.rsc-card__content, .editor-styles-wrapper) .rsc-photo-mosaic > .wp-block-image,
.elementor .elementor-widget .rsc-card__content .rsc-photo-mosaic > figure.wp-block-image {
	margin: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .rsc-photo-mosaic > .wp-block-image:first-child {
	grid-row: span 2;
}
:is(.rsc-card__content, .editor-styles-wrapper) .rsc-photo-mosaic .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.editor-styles-wrapper .rsc-photo-mosaic > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	min-height: 0;
	gap: 0;
}
.editor-styles-wrapper .rsc-photo-mosaic > .wp-block-group__inner-container > .wp-block-image {
	margin: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}
.editor-styles-wrapper .rsc-photo-mosaic > .wp-block-group__inner-container > .wp-block-image:first-child {
	grid-row: span 2;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-embed iframe {
	max-width: 100%;
}
/* In columns, alignment positions the image; it must not halve its width. */
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-column .wp-block-image:is(.alignleft, .alignright),
.elementor .elementor-widget .rsc-card__content .wp-block-column figure.wp-block-image:is(.alignleft, .alignright) {
	float: none;
	display: table;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-column .wp-block-image.alignright,
.elementor .elementor-widget .rsc-card__content .wp-block-column figure.wp-block-image.alignright {
	margin-left: auto;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-column .wp-block-image.alignright img {
	margin-left: auto;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: 12px;
	gap: var(--wp--style--unstable-gallery-gap);
	align-items: start;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-group.rsc-group-size-small,
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-gallery.rsc-gallery-size-small,
.elementor .elementor-widget .rsc-card__content figure.wp-block-gallery.rsc-gallery-size-small {
	max-width: 640px;
}
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-group.rsc-group-size-medium,
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-gallery.rsc-gallery-size-medium,
.elementor .elementor-widget .rsc-card__content figure.wp-block-gallery.rsc-gallery-size-medium {
	max-width: 880px;
}
/* Keep reduced galleries centered even under Elementor's figure margin reset. */
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-group:is(.rsc-group-size-small, .rsc-group-size-medium),
:is(.rsc-card__content, .editor-styles-wrapper) .wp-block-gallery:is(.rsc-gallery-size-small, .rsc-gallery-size-medium),
.elementor .elementor-widget .rsc-card__content figure.wp-block-gallery:is(.rsc-gallery-size-small, .rsc-gallery-size-medium) {
	width: 100%;
	float: none;
	margin-left: auto;
	margin-right: auto;
}
:is(.rsc-card__content, .editor-styles-wrapper) :is(.wp-block-column, .wp-block-group) > :first-child {
	margin-top: 0;
}
:is(.rsc-card__content, .editor-styles-wrapper) :is(.wp-block-column, .wp-block-group) > :last-child {
	margin-bottom: 0;
}
