/* FBM Core: hero slider. */

.fbm-hero {
	position: relative;
	overflow: hidden;
	background: var(--green-deep, #08291c);
	color: #fff;
	height: clamp(480px, 78vh, 680px);
	min-height: 420px;
}

.fbm-hero__track {
	position: absolute;
	inset: 0;
}

.fbm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s ease;
}

.fbm-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.fbm-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.fbm-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 41, 28, .9) 0%, rgba(8, 41, 28, .6) 55%, rgba(8, 41, 28, .15) 100%);
}

.fbm-hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(5rem, 11vh, 7rem);
}

.fbm-hero__inner {
	width: min(100% - 2.5rem, 1180px);
	margin-inline: auto;
}

.fbm-hero__title {
	font-family: var(--font-head, Georgia, serif);
	font-weight: 600;
	font-size: clamp(2.1rem, 5vw, 3.8rem);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 .75rem;
	max-width: 18ch;
	color: #fff;
}

.fbm-hero__text {
	font-family: var(--font-head, Georgia, serif);
	font-style: italic;
	font-size: clamp(1.2rem, 2.2vw, 1.6rem);
	line-height: 1.45;
	max-width: 36ch;
	color: rgba(246, 242, 234, .95);
	margin: 0 0 1.75rem;
	quotes: "\201C" "\201D";
}

.fbm-hero__text::before {
	content: open-quote;
}

.fbm-hero__text::after {
	content: close-quote;
}

.fbm-hero__btn {
	display: inline-flex;
	align-items: center;
	padding: .9rem 1.5rem;
	border-radius: 999px;
	background: var(--red, #b42a22);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease;
}

.fbm-hero__btn:hover {
	transform: translateY(-2px);
	background: #8f1f19;
	color: #fff;
}

.fbm-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .4);
	background: rgba(8, 41, 28, .45);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.fbm-hero__arrow:hover {
	background: rgba(8, 41, 28, .75);
}

.fbm-hero__arrow--prev { left: 1rem; }
.fbm-hero__arrow--next { right: 1rem; }

.fbm-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.5rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.fbm-hero__dots {
	display: flex;
	gap: .5rem;
}

.fbm-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.fbm-hero__dot[aria-current="true"] {
	background: #fff;
	transform: scale(1.25);
}

.fbm-hero__pause {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	padding: .3rem .85rem;
	font-size: .8rem;
	font-weight: 700;
	cursor: pointer;
}

/* Portrait photo: side column, full height of the hero, text on the left. */
.fbm-hero__slide--side {
	background: var(--green-deep, #08291c);
}

.fbm-hero__slide--side .fbm-hero__shade {
	display: none;
}

.fbm-hero__slide--side .fbm-hero__content {
	right: 42%;
}

.fbm-hero__side {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 42%;
	overflow: hidden;
}

.fbm-hero__side .fbm-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

@media (max-width: 760px) {
	.fbm-hero__slide--side .fbm-hero__content {
		right: 0;
	}

	.fbm-hero__slide--side .fbm-hero__shade {
		display: block;
		background: rgba(8, 41, 28, .8);
	}

	.fbm-hero__side {
		width: 100%;
		opacity: .45;
	}
}

/* Portrait slide: quote first, name at the bottom. */
.fbm-hero__slide--side .fbm-hero__inner {
	display: flex;
	flex-direction: column;
}

.fbm-hero__slide--side .fbm-hero__text {
	order: 0;
	margin: 0 0 1.25rem;
}

.fbm-hero__slide--side .fbm-hero__title {
	order: 1;
	max-width: none;
	margin: 0 0 .5rem;
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.fbm-hero__slide--side .fbm-hero__title::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	background: var(--red, #b42a22);
	margin-bottom: .9rem;
}

.fbm-hero__slide--side .fbm-hero__btn {
	order: 2;
	margin-top: 1rem;
}

.fbm-hero :focus-visible {
	outline: 3px solid #f4b9ad;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.fbm-hero__arrow {
		display: none;
	}

	.fbm-hero__content {
		padding-bottom: 5.5rem;
	}
}
