/*
 * Keeps content written under Frost readable: block styles Frost registered,
 * the pullquotes with a paper background and the system-font class used across pages.
 *
 * Block rules are scoped under .entry-content on purpose: WordPress prints each core block's
 * style.min.css (e.g. pullquote: padding 4em 0, text-align center) AFTER the theme stylesheets,
 * so rules of equal specificity here would lose.
 */

.has-system-font-font-family {
	font-family: var(--wp--preset--font-family--system-font);
}

/* core/group & core/quote: shadow styles */
.is-style-shadow-light {
	box-shadow: 0 12px 32px rgba(22, 24, 29, 0.08);
	border-radius: 8px;
}

.is-style-shadow-solid {
	box-shadow: 8px 8px 0 var(--wp--preset--color--contrast, #16181d);
	border: 2px solid var(--wp--preset--color--contrast, #16181d);
}

.wp-block-quote.is-style-shadow-light,
.wp-block-quote.is-style-shadow-solid {
	padding: 24px 28px;
	border-left: 0;
}

/* core/columns: reverse */
@media (min-width: 782px) {
	.wp-block-columns.is-style-columns-reverse {
		flex-direction: row-reverse;
	}
}

/* core/list: no disc */
.wp-block-list.is-style-no-disc,
ul.is-style-no-disc {
	list-style: none;
	padding-left: 0;
}

/* core/social-links: outline */
.wp-block-social-links.is-style-outline .wp-social-link {
	background: transparent !important;
	border: 1.5px solid currentColor;
}

/* core/separator: wide */
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid #e8e8ea;
	margin-block: 2.5em;
}

.entry-content .wp-block-separator.is-style-wide {
	border-top-width: 3px;
	border-top-color: var(--wp--preset--color--primary, #c8102e);
	max-width: 80px;
	margin-inline: 0;
}

/* Pullquotes (prayer titles, scripture quotes): keep the paper background readable */
.entry-content .wp-block-pullquote {
	margin-block: 32px 24px;
	padding: 28px 24px;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--primary, #c8102e);
	border-radius: 0 8px 8px 0;
	text-align: left;
	background-size: cover;
	background-position: center;
}

.entry-content .wp-block-pullquote blockquote {
	margin: 0;
}

.entry-content .wp-block-pullquote p {
	font-size: clamp(1.25rem, 2.6vw, 1.625rem);
	line-height: 1.35;
	margin: 0;
	color: #16181d;
}

.entry-content .wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	font-style: normal;
	color: #5b5f6a;
	text-transform: none;
}

/* Buttons from Frost content */
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
	background: var(--wp--preset--color--primary, #c8102e);
	color: #fff;
	border-radius: 6px;
	padding: 11px 20px;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--wp--preset--color--secondary, #8f0b21);
	color: #fff;
}

/* File blocks (Do pobrania page) */
.entry-content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid #e8e8ea;
}

.entry-content .wp-block-file__embed {
	width: 100%;
	border: 1px solid #e8e8ea;
	border-radius: 8px;
}

.entry-content .wp-block-file .wp-block-file__button {
	margin-left: auto;
}

/* Images */
.entry-content .wp-block-image.is-style-rounded img {
	border-radius: 9999px;
}

.entry-content .wp-block-image img {
	border-radius: 8px;
}

/* Full-width groups with Frost colour presets */
.entry-content .wp-block-group.has-background {
	padding-left: max(var(--m24-gutter, 28px), calc(50vw - 380px));
	padding-right: max(var(--m24-gutter, 28px), calc(50vw - 380px));
}

.entry-content .wp-block-group.alignfull.has-background {
	padding-left: max(var(--m24-gutter, 28px), calc(50vw - 380px)) !important;
	padding-right: max(var(--m24-gutter, 28px), calc(50vw - 380px)) !important;
}
