/**
 * RSM embed width — shared column scaling for suite blocks and shortcodes.
 */

.rsm-embed {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.rsm-embed__inner {
	box-sizing: border-box;
	width: min(var(--rsm-embed-width, 100%), 100%);
	max-width: 100%;
}

.rsm-embed--align-center .rsm-embed__inner {
	margin-inline: auto;
}

.rsm-embed--align-left .rsm-embed__inner {
	margin-inline: 0 auto 0 0;
}

.rsm-embed--align-right .rsm-embed__inner {
	margin-inline: 0 0 0 auto;
}

@media (max-width: 640px) {
	.rsm-embed__inner {
		width: 100% !important;
	}
}

/* Block editor canvas preview */
.block-editor-block-list__block .rsm-embed {
	width: 100%;
	max-width: 100%;
}

.block-editor-block-list__block .rsm-embed__inner {
	width: min(var(--rsm-embed-width, 100%), 100%);
	max-width: 100%;
}

@media (max-width: 640px) {
	.block-editor-block-list__block .rsm-embed__inner {
		width: 100% !important;
	}
}
