// core/pullquote
// @version  1.1.0

@import '../_tools/_index';
@import '../_setup/_index';

.wp-block-pullquote {
	// Border color has to be here, not in `theme.json`
	// due to WP global styles producing block CSS selector
	// with `:where()` (0 specificity), so our global border
	// color inheritance styles override that selector.
	border-color: currentColor;

	&.wp-block-pullquote {
		text-align: inherit;

		blockquote {
			font-size: 1em;
		}

		&.alignwide,
		&.alignfull {
			padding-inline: max( var(--wp--style--root--padding-left), 1em );

			.rtl & {
				padding-inline: max( var(--wp--style--root--padding-right), 1em );
			}
		}
	}
}

// Backwards compatibility:
.wp-block-pullquote.is-style-solid-color blockquote {
	max-width: none;

	p {
		font-size: 1em;
	}
}
