/**
 * Gutenberg block overrides.
 *
 * @package GraceTheme
 */

.wp-block-button .wp-block-button__link {
	background-color: var(--gt-terracotta);
}

.wp-block-button .wp-block-button__link:hover {
	background-color: var(--gt-terracotta-dark);
}

/* --- Devotional Author Bio block --- */
.ge-author-bio {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 24px;
	border-top: 2px solid var(--gt-terracotta, #b55a3a);
	margin-top: 32px;
}

.ge-author-bio__image {
	flex-shrink: 0;
}

.ge-author-bio__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}


.ge-author-bio__content {
	flex: 1;
	min-width: 0;
}

.ge-author-bio__name {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 2px;
}

.ge-author-bio__title {
	font-size: 0.9rem;
	color: var(--gt-terracotta, #b55a3a);
	margin: 0 0 8px;
}

.ge-author-bio__bio {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--gt-text-muted, #555);
	margin: 0;
}

.ge-author-bio__bio p:last-child {
	margin-bottom: 0;
}

@media ( max-width: 480px ) {
	.ge-author-bio {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* --- Scripture Quote block --- */
.ge-scripture-quote {
	margin: 2em 0;
	--ge-sq-text-scale: 1;
}

.ge-scripture-quote--size-xs {
	--ge-sq-text-scale: 0.82;
}

.ge-scripture-quote--size-s {
	--ge-sq-text-scale: 0.92;
}

.ge-scripture-quote--size-m {
	--ge-sq-text-scale: 1;
}

.ge-scripture-quote--size-l {
	--ge-sq-text-scale: 1.12;
}

.ge-scripture-quote blockquote {
	margin: 0;
	padding: 0;
	border: none;
}

/* Pullquote style */
.ge-scripture-quote--pullquote {
	border-top: 4px solid var(--gt-terracotta, #b55a3a);
	border-bottom: 4px solid var(--gt-terracotta, #b55a3a);
	padding: 1.5em 2em;
}

.ge-scripture-quote--pullquote .ge-scripture-quote__text {
	font-size: calc(1.4em * var(--ge-sq-text-scale));
	line-height: 1.5;
	margin: 0 0 0.5em;
	color: var(--gt-heading-color, #1a1a1a);
}

/* Quote style */
.ge-scripture-quote--quote {
	border-left: 4px solid var(--gt-terracotta, #b55a3a);
	padding: 0.75em 1.5em;
}

.ge-scripture-quote--quote .ge-scripture-quote__text {
	font-size: calc(1.15em * var(--ge-sq-text-scale));
	line-height: 1.6;
	margin: 0 0 0.5em;
}

/* Italic modifier */
.ge-scripture-quote--italic .ge-scripture-quote__text {
	font-style: italic;
}

/* Verse number superscript */
.ge-verse-num {
	font-size: 0.6em;
	font-style: normal;
	vertical-align: super;
	font-weight: 600;
	margin-right: 0.25em;
	color: var(--gt-terracotta, #b55a3a);
}

/* Reference / citation */
.ge-scripture-quote__reference {
	display: block;
	font-size: 0.9em;
	font-style: normal;
	font-weight: 600;
	color: var(--gt-terracotta, #b55a3a);
}

.ge-scripture-quote__version {
	font-weight: 500;
	opacity: 0.95;
}

/* Alignment */
.ge-scripture-quote.has-text-align-left {
	text-align: left;
}

.ge-scripture-quote.has-text-align-center {
	text-align: center;
}

.ge-scripture-quote.has-text-align-right {
	text-align: right;
}

/* Wide / full align */
.alignwide.ge-scripture-quote--pullquote,
.alignfull.ge-scripture-quote--pullquote {
	padding-left: 3em;
	padding-right: 3em;
}

@media ( max-width: 600px ) {
	.ge-scripture-quote--pullquote {
		padding: 1em 1.25em;
	}

	.ge-scripture-quote--pullquote .ge-scripture-quote__text {
		font-size: calc(1.15em * var(--ge-sq-text-scale));
	}
}
