/*
Theme Name: FBC Lillian Welcome
Theme URI: https://fbclillian.org
Author: First Baptist Church of Lillian
Description: Warm, mobile-first block theme for First Baptist Church of Lillian. Full Site Editing templates and patterns, using the church's navy steeple lockup. Install it beside the current theme and preview before switching. Activating it does not delete pages, posts, or media.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.3.12
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fbc-lillian-welcome
*/

/* The steeple lockup and building photo are the church's branding.
   Theme code is GPL v2 or later. */

:root {
	--fbc-header-offset: 0px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--ember);
	outline-offset: 3px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	padding: 0.75rem 1rem;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.fbc-header {
	border-bottom: 1px solid var(--wp--preset--color--cream-deep);
	position: relative;
	z-index: 20;
}

.fbc-header > .wp-block-group {
	max-width: 72rem;
	margin-inline: auto;
}

.fbc-brand {
	min-width: 0;
	flex: 0 0 auto;
}

.fbc-logo-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.fbc-logo-link img {
	display: block;
	width: 190px;
	height: auto;
}

.fbc-header .wp-block-site-title {
	margin: 0;
}

.fbc-header .wp-block-site-title a {
	text-decoration: none;
}

.fbc-header .wp-block-navigation {
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

.fbc-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	justify-content: flex-end;
}

.fbc-header .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.45rem;
	white-space: nowrap;
}

.fbc-header .wp-block-navigation__responsive-container-open {
	min-width: 44px;
	min-height: 44px;
}

.fbc-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	padding: 1.5rem;
}

.fbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.2rem;
	padding: 0.65rem 0;
}

.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--cream-deep);
	border-radius: 0.75rem;
	padding: 0.4rem;
	min-width: 14rem;
}

/* Staff and Resources stay click-and-keyboard menus, and also open on hover. */
@media (hover: hover) and (min-width: 600px) {
	.fbc-header .wp-block-navigation__container > .has-child {
		position: relative;
	}

	.fbc-header .wp-block-navigation__container > .has-child::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 0.85rem;
	}

	.fbc-header .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
	.fbc-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container {
		visibility: visible;
		overflow: visible;
		opacity: 1;
		width: auto;
		height: auto;
		min-width: 14rem;
	}
}

.fbc-main {
	min-height: 45vh;
}

.fbc-hero {
	background: var(--wp--preset--color--navy);
}

.fbc-hero-photo {
	margin: 0;
}

.fbc-hero-photo img {
	display: block;
	width: 100%;
	height: 300px;
	max-height: none;
	object-fit: cover;
	object-position: center bottom;
}

.fbc-hero-sheet {
	margin-top: -0.75rem;
	border-radius: 1.5rem 1.5rem 0 0;
	position: relative;
}

.fbc-kicker {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.fbc-hero h1 {
	margin-top: 0;
	margin-inline: auto;
	max-width: 100%;
	text-align: center;
	font-size: clamp(1.85rem, 7.2vw, 2.35rem);
	line-height: 1.15;
}

.fbc-hero-sheet .wp-block-buttons {
	width: 100%;
	justify-content: center;
}

.fbc-lede {
	margin-inline: auto;
	max-width: 40rem;
	text-align: center;
	font-size: 1.25rem;
	color: var(--wp--preset--color--ink-soft);
}

@media (min-width: 600px) {
	.fbc-hero h1 {
		white-space: nowrap;
		font-size: clamp(1.45rem, 0.72rem + 1.85vw, 2.45rem);
	}
}

.fbc-times {
	margin-top: 0.5rem;
}

.fbc-times .wp-block-column,
.fbc-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--cream-deep);
	border-radius: 1rem;
	padding: 1rem 1.1rem;
	height: 100%;
}

.fbc-times h3,
.fbc-card h3 {
	margin: 0.15rem 0;
	font-size: 1.35rem;
}

.fbc-time {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.fbc-address {
	font-family: var(--wp--preset--font-family--sans);
	color: var(--wp--preset--color--ink-soft);
}

.wp-block-buttons .wp-block-button__link {
	min-height: 44px;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border: 2px solid var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--navy);
	color: #fffcf7;
}

.fbc-existing {
	padding: 1rem 1.25rem 2.5rem;
}

.fbc-existing > .wp-block-post-content {
	max-width: 72rem;
}

.fbc-home-intro {
	align-items: center;
	justify-content: center;
	max-width: 600px;
	margin-inline: auto;
}

.fbc-home-intro > .wp-block-column {
	flex: 1 1 100% !important;
	min-width: 0;
	max-width: 600px;
	margin-inline: auto;
}

.fbc-carousel-root {
	position: relative;
	max-width: 600px;
	margin-inline: auto;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel,
.wp-block-gallery.is-style-carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 0 !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	margin: 0;
	border-radius: 1rem;
	touch-action: pan-x pan-y;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel::-webkit-scrollbar,
.wp-block-gallery.is-style-carousel::-webkit-scrollbar {
	display: none;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel > .wp-block-image,
.wp-block-gallery.is-style-carousel > .wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel img,
.wp-block-gallery.is-style-carousel img {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 60vh;
	margin-inline: auto;
	object-fit: contain !important;
	background: var(--wp--preset--color--paper);
	border-radius: 1rem;
	aspect-ratio: auto;
}

.fbc-carousel-controls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.45rem;
	pointer-events: none;
}

.fbc-carousel-btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--navy);
	color: #fffcf7;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(7, 24, 51, 0.28);
}

.fbc-carousel-btn:hover,
.fbc-carousel-btn:focus-visible {
	background: var(--wp--preset--color--navy-deep);
}

.fbc-carousel-live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wp-block-gallery.fbc-carousel {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 0.75rem;
}

.wp-block-post-content .wp-block-gallery.fbc-carousel > .wp-block-image {
	width: auto !important;
	margin: 0;
}

.wp-block-post-content .wp-block-gallery.fbc-carousel img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.75rem;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel > .wp-block-image,
.wp-block-gallery.is-style-carousel > .wp-block-image {
	display: block !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	min-width: 0;
	height: auto !important;
	max-height: none;
	aspect-ratio: auto;
	align-self: flex-start;
	background: transparent;
	overflow: hidden;
}

.fbc-home-intro .wp-block-gallery.fbc-carousel img,
.wp-block-gallery.is-style-carousel img {
	display: block !important;
	flex: none !important;
	width: 100% !important;
	max-width: 100%;
	min-height: 0;
	height: auto !important;
	max-height: 60vh;
	margin-inline: auto;
	object-fit: contain !important;
	background: var(--wp--preset--color--paper);
}

.fbc-services {
	text-align: center;
	margin-top: 2rem;
	padding-top: 0.5rem;
}

.fbc-services hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--navy);
	max-width: 8rem;
	margin: 0 auto 1.25rem;
}

.fbc-memory {
	text-align: center;
	margin: 1.5rem 0;
}

.fbc-memory a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.3rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ember);
	color: #fff !important;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
}

.fbc-memory a:hover,
.fbc-memory a:focus-visible {
	background: #7d1f19;
	color: #fff !important;
}

.fbc-contact {
	align-items: center;
	flex-flow: row nowrap !important;
}

.fbc-contact > .wp-block-column:first-child {
	flex: 0 0 15rem !important;
}

.fbc-contact > .wp-block-column:last-child {
	flex: 1 1 auto !important;
	min-width: 0;
}

@media (max-width: 599px) {
	.fbc-contact {
		flex-flow: column nowrap !important;
	}

	.fbc-contact > .wp-block-column:first-child,
	.fbc-contact > .wp-block-column:last-child {
		flex-basis: auto !important;
	}

	.fbc-home-intro,
	.fbc-carousel-root,
	.fbc-home-intro > .wp-block-column {
		max-width: none;
		width: 100%;
	}

	.fbc-home-intro .wp-block-gallery.fbc-carousel img,
	.wp-block-gallery.is-style-carousel img {
		max-height: 60vh;
	}

	.fbc-carousel-controls {
		position: static;
		margin-top: 0.65rem;
		justify-content: center;
		gap: 0.75rem;
		pointer-events: auto;
	}
}

.fbc-contact .wp-block-image {
	text-align: center;
}

.fbc-contact .wp-block-image img,
img.fbc-emblem {
	max-width: 220px;
	width: 220px;
	height: auto;
	margin-inline: auto;
	border-radius: 0;
	background: transparent;
}

.wp-block-post-content .wp-block-image img,
.entry-content img {
	border-radius: 0.75rem;
}

.fbc-page-intro {
	padding-top: 2.25rem;
	padding-bottom: 0.5rem;
}

.fbc-page-body {
	padding-bottom: 3rem;
}

.fbc-page-body .wp-block-post-content > *:first-child {
	margin-top: 0;
}

#staff {
	scroll-margin-top: 1.25rem;
}

.fbc-map {
	display: block;
	width: 100%;
	min-height: 280px;
	height: 360px;
	border: 1px solid var(--wp--preset--color--cream-deep);
	border-radius: 1rem;
	background: var(--wp--preset--color--mist);
}

.fbc-note {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.95rem;
	color: var(--wp--preset--color--ink-soft);
	background: var(--wp--preset--color--mist);
	border-radius: 0.75rem;
	padding: 0.85rem 1rem;
}

.fbc-footer {
	color: #fffcf7;
	margin-top: 0;
}

.fbc-footer a {
	color: #fffcf7;
}

.fbc-footer .fbc-logo-link {
	display: flex;
	justify-content: center;
	margin: 0 auto 0.35rem;
}

.fbc-footer .fbc-logo-link img {
	width: min(220px, 72vw);
}

.fbc-footer p {
	color: #d6dee8;
}

.fbc-footer .wp-block-navigation a {
	color: #fffcf7;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.fbc-footer .wp-block-site-title,
.fbc-footer .wp-block-site-title a {
	color: #fffcf7;
	font-size: 1.35rem;
}

.fbc-back {
	font-family: var(--wp--preset--font-family--sans);
}

.wp-block-query .wp-block-post-title {
	margin-bottom: 0.2rem;
}

.wp-block-query .wp-block-post-date {
	font-family: var(--wp--preset--font-family--sans);
	color: var(--wp--preset--color--ink-soft);
	font-size: 0.95rem;
}

.wp-block-post-template > * {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--cream-deep);
}

@media (max-width: 599px) {
	header.fbc-header.has-global-padding {
		padding-left: 0;
		padding-right: 0;
	}

	.fbc-header > .wp-block-group {
		flex-wrap: nowrap;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.fbc-header .wp-block-navigation {
		flex: 0 0 auto;
	}

	.fbc-header .fbc-logo-link img {
		width: 168px;
	}
}

@media (min-width: 800px) {
	.fbc-hero-photo img {
		height: 520px;
	}

	.fbc-hero-sheet {
		margin-top: -1.25rem;
	}

}
