/*
Theme Name: St. John Church
Template: twentytwentyfive
Description: Child of Twenty Twenty-Five recreating the former Avada look for St. John the Evangelist, Orange NJ.
Version: 1.0.0
Requires at least: 6.7
Text Domain: stjohn
*/

/* ---- Header ------------------------------------------------------------ */

.stjohn-nav-bar {
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.stjohn-nav-bar .wp-block-navigation-item__content {
	padding: 0 13px;
	line-height: 27px;
}

.stjohn-nav-bar .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--nav-active);
}

.stjohn-nav-bar .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: #f8f8f8;
}

.stjohn-nav-bar .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--nav-active);
}

/* ---- Converted Avada elements ----------------------------------------- */

/* Fusion Slider header: caption on a dark box over the image. */
.avada-slider.wp-block-cover {
	padding: 0;
	margin-block: 0;
}

.avada-slider .avada-slide-caption {
	display: inline-block;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-family: var(--wp--preset--font-family--rubik);
	font-size: 17px;
	line-height: 1.5;
}

.avada-slider .wp-block-cover__inner-container {
	text-align: center;
}

/* fusion_testimonials "clean" design */
.wp-block-quote.is-style-avada-testimonial {
	background: var(--wp--preset--color--testimonial);
	border: 0;
	padding: 1.5em 1em;
	margin-inline: 0;
	text-align: center;
	font-style: italic;
	letter-spacing: 1px;
	line-height: 1.6;
}

.wp-block-quote.is-style-avada-testimonial cite {
	display: block;
	margin-top: 1em;
	font-size: inherit;
	font-style: italic;
}

/* fusion_imageframe style_type="dropshadow" hover_type="liftup" */
.wp-block-image.is-style-avada-dropshadow img {
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s, box-shadow 0.3s;
}

.wp-block-image.is-style-avada-dropshadow img:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 14px rgba(0, 0, 0, 0.3);
}

/* fusion_content_boxes */
.avada-content-box :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
	margin: 0;
}

/* Avada had no gap between the header, slider and page content. */
.wp-site-blocks > main,
main > .wp-block-post-content,
main > .wp-block-post-content > .wp-block-group:first-child {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

.avada-slider.wp-block-cover {
	min-height: 267px !important;
}

/* Floated images in narrow columns shouldn't squeeze the text beside them. */
.wp-block-image:is(.alignleft, .alignright) {
	max-width: 45%;
}

.wp-block-image:is(.alignleft, .alignright) img {
	height: auto;
}
