/* Formcraft Design – styles for the built-in copy of Lumina Personal features (generated). */

/* ==========================================================================
   Homepage intro with a background photo (Customize → Homepage intro → Background photo)
   ========================================================================== */
.fc-hero-bg .hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: #2b2824;
	border-bottom: 0;
	padding-block: calc(var(--lp-space) * 1.4);
}
/* The photo, on its own layer so it can be made see-through (Background photo transparency). */
.fc-hero-bg .hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image: var(--fc-hero-img);
	background-position: var(--fc-hero-pos, center);
	background-size: cover;
	background-repeat: no-repeat;
	opacity: var(--fc-hero-op, 1);
}
/* Tint: even over the photo, a little stronger behind the text side. */
.fc-hero-bg .hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, var(--fc-tint-strong) 0%, var(--fc-tint) 65%, var(--fc-tint) 100%);
}
.fc-hero-bg .hero__inner { width: 100%; }
.fc-hero-bg:not(.fc-hero-keep-photo) .hero__media { display: none; }
.fc-hero-bg:not(.fc-hero-keep-photo) .hero__inner { grid-template-columns: minmax(0, 1fr) !important; }
.fc-hero-bg:not(.fc-hero-keep-photo) .hero__text { max-width: 760px; }

/* Heights (svh = the visible screen on phones, ignoring the address bar). */
.fc-hero-h-medium .hero { min-height: 60vh; min-height: 60svh; }
.fc-hero-h-tall .hero { min-height: 80vh; min-height: 80svh; }
.fc-hero-h-full .hero { min-height: calc(100vh - var(--lp-header-h, 68px)); min-height: calc(100svh - var(--lp-header-h, 68px)); }

/* White text on a darkened photo. */
.fc-hero-bg-light .hero__title { color: #fff; }
.fc-hero-bg-light .hero__lead { color: rgba(255, 255, 255, .92); }
.fc-hero-bg-light .hero__eyebrow { color: #f0d6b6; }
.fc-hero-bg-light .hero__title,
.fc-hero-bg-light .hero__lead,
.fc-hero-bg-light .hero__eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.fc-hero-bg-light .hero__actions .lp-button--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, .85);
	background: rgba(0, 0, 0, .15);
}
.fc-hero-bg-light .hero__actions .lp-button--ghost:hover,
.fc-hero-bg-light .hero__actions .lp-button--ghost:focus-visible {
	background: #fff;
	color: #141210;
	border-color: #fff;
}
.fc-hero-bg-light .hero__actions .button:focus-visible { outline-color: #fff; }

/* Dark text on a lightened photo. */
.fc-hero-bg-dark .hero__lead { color: var(--lp-text); }
.fc-hero-bg-dark .hero__actions .lp-button--ghost { background: rgba(255, 255, 255, .6); }

@media (max-width: 639px) {
	.fc-hero-bg .hero { padding-block: calc(var(--lp-space) * 1.1); }
	/* Phones: text runs full width, so tint evenly. */
	.fc-hero-bg .hero::before { background: var(--fc-tint-strong); }
	.fc-hero-h-medium .hero { min-height: 70svh; }
	.fc-hero-h-full .hero { min-height: calc(100svh - var(--lp-m-header-h, 60px)); }
}

/* ==========================================================================
   Text on images (Image block → Text on image): Before / After labels, captions
   ========================================================================== */
.fc-imgtext-wrap {
	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: inherit;
}
.wp-block-image.aligncenter .fc-imgtext-wrap,
.wp-block-image .aligncenter .fc-imgtext-wrap { margin-inline: auto; }
.wp-block-image .fc-imgtext-wrap img { display: block; }
/* Images inside a Gallery: the picture already fills a positioned box. */
.wp-block-gallery .fc-imgtext-wrap { display: contents; }
.wp-block-gallery .wp-block-image { position: relative; }

.fc-imgtext {
	position: absolute;
	z-index: 2;
	max-width: calc(100% - 24px);
	padding: .35em .7em;
	border-radius: 4px;
	font-family: var(--lp-font-body, system-ui, sans-serif);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .08em;
	text-transform: uppercase;
	pointer-events: none;
	overflow-wrap: break-word;
}
.fc-imgtext--s { font-size: .72rem; }
.fc-imgtext--m { font-size: .85rem; }
.fc-imgtext--l { font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); letter-spacing: .02em; text-transform: none; font-family: var(--lp-font-heading, Georgia, serif); font-weight: 600; padding: .3em .65em; }

.fc-imgtext--tl { top: 12px; left: 12px; }
.fc-imgtext--tr { top: 12px; right: 12px; text-align: right; }
.fc-imgtext--bl { bottom: 12px; left: 12px; }
.fc-imgtext--br { bottom: 12px; right: 12px; text-align: right; }
.fc-imgtext--c { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.fc-imgtext.fc-imgtext--strip {
	left: 0; right: 0; bottom: 0;
	max-width: none;
	border-radius: 0;
	padding: 2.2em 1em .8em;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

.fc-imgtext--dark { background: rgba(20, 18, 16, .82); color: #fff; }
.fc-imgtext--light { background: rgba(255, 255, 255, .92); color: #141210; }
.fc-imgtext--brand { background: var(--lp-primary, #8a5a2b); color: #fff; }
.fc-imgtext--plain { background: none; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .45); padding: 0; }
/* The band fades up from the bottom edge so it sits on any photo. */
.fc-imgtext--strip.fc-imgtext--dark,
.fc-imgtext--strip.fc-imgtext--plain { background: linear-gradient(to top, rgba(20, 18, 16, .85), rgba(20, 18, 16, 0)); padding: 2.2em 1em .8em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.fc-imgtext--strip.fc-imgtext--light { background: rgba(255, 255, 255, .92); padding: .7em 1em; }
.fc-imgtext--strip.fc-imgtext--brand { padding: .7em 1em; }

@media (max-width: 639px) {
	.fc-imgtext--tl, .fc-imgtext--tr { top: 8px; }
	.fc-imgtext--tl, .fc-imgtext--bl { left: 8px; }
	.fc-imgtext--tr, .fc-imgtext--br { right: 8px; }
	.fc-imgtext--bl, .fc-imgtext--br { bottom: 8px; }
	.fc-imgtext { max-width: calc(100% - 16px); }
}
/* Custom colours / tint (set per image in the editor). */
.fc-imgtint { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fc-imgtext--hasbg.fc-imgtext--plain { padding: .35em .7em; text-shadow: none; }
.fc-imgtext--hasbg.fc-imgtext--strip { padding: .7em 1em; text-shadow: none; }
.fc-imgtext--l.fc-imgtext--hasbg.fc-imgtext--plain { padding: .3em .65em; }

/* ==========================================================================
   Background image behind the whole page (Customize → Background image behind the page)
   ========================================================================== */
.lp-page-bg::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: var(--lp-page-img);
	background-position: var(--lp-page-pos, center);
	background-size: cover;
	background-repeat: no-repeat;
	opacity: var(--lp-page-op, .2);
}
/* Scrolls with the page instead of staying still. */
.lp-page-bg--scroll { position: relative; }
.lp-page-bg--scroll::before { position: absolute; }
/* A small picture or pattern repeated across the page. */
.lp-page-bg--tile::before { background-size: auto; background-repeat: repeat; background-position: top left; }
/* Let it show behind the homepage intro too (when the intro has no photo of its own). */
.lp-page-bg-hero .hero { background: transparent; }
