/* FRVA Photo Highway - front end marquee */

.fph {
	--fph-navy: #0B2F4F;
	--fph-orange: #F26B38;
	--fph-green: #5E9F3A;
	--fph-gold: #F4B942;
	--fph-blue: #0F4C81;
	--fph-white: #FAF9F6;

	/* Overridden inline by the shortcode. */
	--fph-height: 140px;
	--fph-gap: 32px;

	/* Overridden by the script once the set width is measured. */
	--fph-shift: 50%;
	--fph-duration: 24s;

	background: var(--fph-white);
	border-block: 1px solid rgba(11, 47, 79, 0.10);
	padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3.5vw, 36px);
	position: relative;
	overflow: hidden;
}

.fph__label {
	color: var(--fph-navy);
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	margin: 0 0 clamp(16px, 2vw, 24px);
	padding-inline: clamp(16px, 4vw, 48px);
	text-transform: uppercase;
}

.fph__label::after {
	background: var(--fph-orange);
	border-radius: 2px;
	content: "";
	display: block;
	height: 3px;
	margin-top: 10px;
	width: 56px;
}

/* The road holds the moving lane and fades both shoulders. */
.fph__road {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Center line: the one decorative flourish, and it earns its place. */
.fph__road::after {
	background-image: linear-gradient(to right, var(--fph-gold) 0 28px, transparent 28px 60px);
	background-repeat: repeat-x;
	background-size: 60px 2px;
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	opacity: 0.55;
	position: absolute;
	right: 0;
}

.fph__lane {
	animation: fph-drive var(--fph-duration) linear infinite;
	display: flex;
	flex-wrap: nowrap;
	padding-bottom: clamp(14px, 2vw, 20px);
	width: max-content;
	will-change: transform;
}

.fph[data-fph-direction="right"] .fph__lane {
	animation-name: fph-drive-reverse;
}

.fph:hover .fph__lane,
.fph:focus-within .fph__lane {
	animation-play-state: paused;
}

.fph__set {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fph__item {
	flex: 0 0 auto;
	list-style: none;
	margin: 0 var(--fph-gap) 0 0;
	padding: 0;
}

.fph__img {
	background: rgba(15, 76, 129, 0.06);
	border-radius: 6px;
	display: block;
	height: var(--fph-height);
	max-width: none;
	object-fit: cover;
	width: auto;
	box-shadow: 0 2px 10px rgba(11, 47, 79, 0.14);
}

@keyframes fph-drive {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(calc(-1 * var(--fph-shift)), 0, 0); }
}

@keyframes fph-drive-reverse {
	from { transform: translate3d(calc(-1 * var(--fph-shift)), 0, 0); }
	to   { transform: translate3d(0, 0, 0); }
}

/* No motion: park the cars and let people scroll the strip themselves. */
@media (prefers-reduced-motion: reduce) {
	.fph__road {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.fph__lane {
		animation: none;
		transform: none;
	}

	.fph__set[aria-hidden="true"] {
		display: none;
	}
}