/* Card Carousel
 * Values set in the Elementor panel override these defaults.
 */

.fhcc {
	--fhcc-per-view: 4.7;
	--fhcc-gap: 22px;
	--fhcc-ratio: 105;
	--fhcc-img-radius: 0px;
	--fhcc-arrow-w: 66px;
	--fhcc-arrow-h: 38px;
	--fhcc-arrow-radius: 0px;
	--fhcc-arrow-color: #fff;
	--fhcc-arrow-border: #fff;
	--fhcc-arrow-bg: transparent;
	--fhcc-arrow-color-hover: var(--fhcc-arrow-color);
	--fhcc-arrow-bg-hover: rgba(255, 255, 255, 0.15);
	--fhcc-arrow-border-w: 2px;

	position: relative;
	width: 100%;
	overflow: hidden;
}

@supports (overflow: clip) {
	.fhcc {
		overflow-x: clip;
		overflow-y: visible;
	}
}

/* ---------- Heading row ---------- */

.fhcc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 34px;
}

.fhcc-heading-spacer {
	flex: 1 1 auto;
}

.fhcc .fhcc-heading {
	margin: 0;
	padding: 0;
	line-height: 1.1;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
}

.fhcc-nav {
	display: flex;
	flex: none;
	gap: 18px;
	margin-left: auto;
}

.fhcc .fhcc-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--fhcc-arrow-w);
	height: var(--fhcc-arrow-h);
	margin: 0;
	padding: 0;
	border: var(--fhcc-arrow-border-w) solid var(--fhcc-arrow-border);
	border-radius: var(--fhcc-arrow-radius);
	background: var(--fhcc-arrow-bg);
	color: var(--fhcc-arrow-color);
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.fhcc .fhcc-arrow:hover,
.fhcc .fhcc-arrow:focus {
	background: var(--fhcc-arrow-bg-hover);
	color: var(--fhcc-arrow-color-hover);
}

.fhcc .fhcc-arrow:focus-visible,
.fhcc .fhcc-button:focus-visible,
.fhcc .fhcc-card-link:focus-visible,
.fhcc .fhcc-track:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.fhcc .fhcc-arrow svg {
	width: 58%;
	height: auto;
	max-height: 60%;
}

/* Only dimmed at the ends when the carousel does not wrap around */
.fhcc--dim-ends .fhcc-arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Track ---------- */

.fhcc-track {
	display: flex;
	gap: var(--fhcc-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fhcc-track::-webkit-scrollbar {
	display: none;
}

.fhcc--snap .fhcc-track {
	scroll-snap-type: x mandatory;
}

.fhcc--snap .fhcc-card {
	scroll-snap-align: start;
}

.fhcc-track.is-jumping {
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.fhcc-track.is-dragging {
	scroll-behavior: auto;
	cursor: grabbing;
	scroll-snap-type: none;
}

.fhcc-card {
	flex: 0 0 calc((100% - var(--fhcc-gap) * (var(--fhcc-per-view) - 1)) / var(--fhcc-per-view));
	min-width: 0;
}

.fhcc-media {
	position: relative;
	width: 100%;
	aspect-ratio: 100 / var(--fhcc-ratio);
	overflow: hidden;
	border-radius: var(--fhcc-img-radius);
	background: rgba(0, 0, 0, 0.08);
}

.fhcc .fhcc-media img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	-webkit-user-drag: none;
	pointer-events: none;
}

.fhcc .fhcc-card-title {
	margin: 18px 0 0;
	padding: 0;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.fhcc .fhcc-card-text {
	margin-top: 8px;
	color: #fff;
	line-height: 1.5;
}

.fhcc .fhcc-card-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fhcc .fhcc-card-link:hover {
	text-decoration: underline;
}

/* ---------- Button ---------- */

.fhcc-foot {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.fhcc .fhcc-button {
	display: inline-block;
	padding: 16px 38px;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

/* ---------- Mobile ---------- */

@media (max-width: 1024px) {
	.fhcc {
		--fhcc-per-view: 2.5;
	}
}

@media (max-width: 767px) {
	.fhcc {
		--fhcc-per-view: 1.15;
	}

	.fhcc--stack-mobile .fhcc-head {
		flex-wrap: wrap;
	}

	.fhcc--stack-mobile .fhcc-nav {
		margin-left: 0;
		order: 2;
		width: 100%;
	}
}

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