/**
 * poslider - Custom Styles
 * Version: 1.2.1
 *
 * Petersen Onsite — Industrial Dark, Refined palette.
 * Brand tokens are duplicated here so the slider styles independently of
 * theme load order. Adjust a color here (or in the child theme :root) to
 * re-skin the whole slider.
 */
:root {
	--po-accent:       #025296; /* brand blue — primary CTA               */
	--po-accent-deep:  #023a68; /* deeper blue for gradients              */
	--po-accent-hover: #1a6cb5;
	--po-accent-2:     #025296; /* brand blue — active/highlight          */
	--po-accent-ink:   #ffffff;
}

/* Main Hero Slider Container */
.hero-slider {
	width: 100%;
	margin: 0 auto;
	position: relative;
	overflow: visible;
	--rfs-slide-min-height: 560px;
	--rfs-main-arrow-clearance: 72px;
}

.rfs-slider-host,
.rfs-slider-host .gdlr-core-poslider-item,
.rfs-slider-host .hero-slider {
	overflow: visible !important;
}

.rfs-slider-host {
	margin-bottom: 0 !important;
}

.rfs-slider-host .gdlr-core-item-pdlr {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* RealFactory: place slider behind page title when title block exists */
body.realfactory-body .realfactory-page-title-wrap {
	position: relative;
	z-index: 20;
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host:not(.rfs-under-title) {
	position: relative;
	z-index: 5;
	margin-top: calc(-1 * var(--rfs-page-title-height, 180px)) !important;
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host:not(.rfs-under-title) .hero-swiper,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host:not(.rfs-under-title) .hero-swiper .swiper-wrapper,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host:not(.rfs-under-title) .hero-swiper .swiper-slide,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host:not(.rfs-under-title) .slide-content-wrapper {
	min-height: calc(var(--rfs-slide-min-height, 700px) + var(--rfs-page-title-height, 0px));
}

/* For non-homepage sliders, position under the title */
body.realfactory-body .rfs-slider-host.rfs-under-title {
	margin-top: 0 !important;
	padding-bottom: 184px !important;
	position: static !important;
	z-index: auto !important;
}

body.realfactory-body .rfs-slider-host.rfs-under-title .hero-swiper,
body.realfactory-body .rfs-slider-host.rfs-under-title .hero-swiper .swiper-wrapper,
body.realfactory-body .rfs-slider-host.rfs-under-title .hero-swiper .swiper-slide,
body.realfactory-body .rfs-slider-host.rfs-under-title .slide-content-wrapper {
	min-height: var(--rfs-slide-min-height, 700px) !important;
}

@media (min-width: 769px) {
	.rfs-slider-host {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}

	.rfs-slider-host .hero-slider,
	.rfs-slider-host .hero-swiper,
	.rfs-slider-host .hero-swiper .swiper-wrapper,
	.rfs-slider-host .hero-swiper .swiper-slide {
		width: 100vw;
		max-width: 100vw;
	}
}

@media (max-width: 768px) {
	.rfs-slider-host {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}

	.rfs-slider-host .hero-slider,
	.rfs-slider-host .hero-swiper,
	.rfs-slider-host .hero-swiper .swiper-wrapper,
	.rfs-slider-host .hero-swiper .swiper-slide {
		width: 100vw;
		max-width: 100vw;
	}
}

.rfs-slider-host .gdlr-core-poslider-item.gdlr-core-item-pdlr {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Main Swiper Instance */
.hero-swiper {
	width: 100%;
	height: auto;
	min-height: var(--rfs-slide-min-height);
	position: relative;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
	height: auto;
	min-height: var(--rfs-slide-min-height);
}

/* Individual Slides */
.hero-swiper .swiper-slide {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-content-wrapper {
	width: min(100%, 1180px);
	height: auto;
	min-height: var(--rfs-slide-min-height);
	margin: 2.5rem auto 6rem;
	padding: 0 max(2rem, var(--rfs-main-arrow-clearance));
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* RealFactory theme: clear fixed header wrap */
body[class*='realfactory'] .hero-slider .slide-content-wrapper,
body.rfs-has-realfactory-header .hero-slider .slide-content-wrapper {
	margin-top: var(--rfs-header-clearance, 0px);
	min-height: max(0px, calc(var(--rfs-slide-min-height, 700px) - var(--rfs-header-clearance, 0px)));
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
	min-height: max(0px, calc(var(--rfs-slide-min-height, 700px) + var(--rfs-page-title-height, 0px) - var(--rfs-header-clearance, 0px)));
}

/* Photo grade (The7 consulting style) — an even, subtle navy darkening so
   centered white text stays legible while the photo remains vivid. */
.hero-swiper {
	--rfs-slide-overlay-top: rgba(9, 16, 28, 0.45);
	--rfs-slide-overlay-mid: rgba(9, 16, 28, 0.42);
	--rfs-slide-overlay-bottom: rgba(9, 16, 28, 0.58);
}

.hero-swiper .swiper-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, var(--rfs-slide-overlay-top) 0%, var(--rfs-slide-overlay-mid) 50%, var(--rfs-slide-overlay-bottom) 100%);
	z-index: 1;
	transition: background 0.3s ease;
}

/* Soft radial focus keeps the centered headline anchored without crushing
   the photo edges — subtle cinematic depth. */
.hero-swiper .swiper-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.32) 100%);
}

@media (max-width: 768px) {
	.hero-swiper .swiper-slide::before {
		background: linear-gradient(180deg, rgba(9,16,28,0.5) 0%, rgba(9,16,28,0.62) 100%);
	}
}

/* Slide Content Overlay (industrial steel surface) */
.hero-swiper {
	--rfs-surface: rgba(255,255,255,0.03);
	--rfs-surface-2: rgba(255,255,255,0.02);
	--rfs-accent-1: var(--po-accent);
	--rfs-accent-2: var(--po-accent-deep);
	--rfs-primary: linear-gradient(90deg, var(--rfs-accent-1), var(--rfs-accent-2));
	--rfs-glow: 0 12px 40px rgba(2,82,150,0.18);
	--rfs-glow-2: 0 16px 46px rgba(2,82,150,0.16);
	--rfs-elevation-1: 0 6px 20px rgba(0,0,0,0.35);
	--rfs-elevation-2: 0 12px 42px rgba(0,0,0,0.5);
	--rfs-motion-curve: cubic-bezier(.16,.84,.24,1);
}

/* The7 consulting style — centered copy set directly on the photo, no panel.
   Clean, minimal, authoritative. */
.slide-content {
	position: relative;
	z-index: 2;
	text-align: center !important;
	color: #fff;
	flex: 0 1 900px;
	max-width: 900px !important;
	width: auto;
	margin: 0 auto;
	padding: 2rem 1.5rem !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	font-family: 'Poppins', "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

.slide-content.slide-content-title-only {
	gap: 0;
}

.slide-content h2,
.slide-content .blurb,
.slide-content p,
.slide-content .btn {
	text-align: center !important;
}

.slide-content h2 {
	font-size: clamp(2.4rem, 5vw, 4rem);
	color: #fff !important;
	font-weight: 800;
	margin: 0 !important;
	line-height: 1.08;
	max-width: 16ch;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 22px rgba(0,0,0,0.45);
	hyphens: auto;
	word-break: break-word;
}

/* Short amber rule under the headline — The7's warm accent detail */
.slide-content h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	margin: 1.4rem auto 0;
	background: var(--po-accent-2);
	border-radius: 2px;
}

.slide-content .blurb {
	color: rgba(255,255,255,0.9);
	font-size: clamp(1.02rem, 1.5vw, 1.18rem);
	margin: 0 !important;
	line-height: 1.65;
	max-width: 620px;
	text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.slide-content .wp-block-image {
	margin: -12px 0 0;
}

.slide-content .btn {
	padding: 0.8rem 1.6rem;
	background: var(--rfs-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	border-radius: 6px;
	border: none;
	transition: transform 220ms var(--rfs-motion-curve), box-shadow 220ms var(--rfs-motion-curve), opacity 220ms var(--rfs-motion-curve);
	box-shadow: var(--rfs-glow-2);
}

.slide-content .btn:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: var(--rfs-glow-2), 0 12px 30px rgba(0,0,0,0.28);
	opacity: 0.98;
}

/* Primary CTA — solid safety-amber, high-contrast against the navy panel */
.slide-content .rfs-view-projects-btn,
.slide-content .rfs-view-sub-projects-btn {
	margin-top: 0.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.7rem;
	background: var(--po-accent-2);
	color: #ffffff;
	border: none;
	border-radius: 0;
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	text-transform: none;
	box-shadow: 0 10px 26px rgba(2,82,150,0.32);
	transition: background 180ms var(--rfs-motion-curve), transform 180ms var(--rfs-motion-curve), box-shadow 180ms var(--rfs-motion-curve);
	align-self: center;
	margin-top: 0.6rem;
}

.slide-content .rfs-view-projects-btn:hover,
.slide-content .rfs-view-sub-projects-btn:hover {
	background: var(--po-accent-hover);
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(2,82,150,0.42);
}

.slide-content .btn:focus,
.slide-content .rfs-view-projects-btn:focus,
.slide-content .rfs-view-sub-projects-btn:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(2,82,150,0.35);
}


/* Navigation Arrows */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	width: 52px;
	height: 52px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 8px 24px rgba(0,0,0,0.45);
	border: 1px solid rgba(255,255,255,0.08);
	z-index: 6;
}

.hero-swiper .swiper-button-prev {
	left: 18px;
}

.hero-swiper .swiper-button-next {
	right: 18px;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
	font-size: 1.35rem;
	line-height: 1;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
	transform: translateY(-50%) scale(1.03);
	background: rgba(0, 0, 0, 0.6);
	border-color: var(--po-accent);
}

/* Focus-visible for keyboard users */
.hero-swiper .swiper-button-next:focus,
.hero-swiper .swiper-button-prev:focus {
	outline: 3px solid rgba(255,255,255,0.12);
	box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

/* Ensure pagination and thumbs are above overlay */
.hero-swiper .swiper-pagination,
.thumb-swiper,
.thumbnail-nav {
	z-index: 7;
}

/* Pagination Dots */
.hero-swiper .swiper-pagination {
	display: none !important;
}

.hero-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #fff;
	opacity: 0.5;
	transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #fff;
	transform: scale(1.2);
}


.rfs-linked-menu-popover, .rfs-linked-menu-viewport, .rfs-linked-menu-items, .rfs-linked-menu-item, .rfs-linked-menu-nav { display: none !important; }

/* Thumbnail Navigation */
.thumbnail-nav {
	max-width: 1380px;
	margin: -104px auto -104px;
	padding: 0 4.5rem;
	position: relative;
	z-index: 4;
	background: transparent !important;
	/* allow elevated thumbnails and shadows to remain visible */
	overflow: visible !important;
}

/* #333 backdrop — ONLY on pages that render a poslider slider.
   `body:has(.hero-slider)` matches those pages (every render path outputs
   .hero-slider) and no others, so the homepage/other pages are untouched.

   NOTE: the color goes on the slider's CONTAINERS, never on .thumbnail-nav
   itself. On desktop/landscape-tablet the thumbnail strip is pulled up over
   the main photo; a background on the strip would cover the photo with #333
   between the thumbnails. Painting the containers instead keeps #333 behind
   the photo (so it only shows BELOW the slider and in the mobile gap) while
   the photo shows through between the overlapping thumbnails. */
body:has(.hero-slider) .gdlr-core-pbf-section,
.rfs-slider-host,
.rfs-slider-host .gdlr-core-poslider-item,
.hero-slider {
	background-color: #08101b !important;
}

@media (min-width: 1025px) {
	.thumbnail-nav {
		max-width: 1380px;
		padding: 0 5rem;
	}
}

@media (max-width: 767px) {
	.rfs-linked-menu-popover {
		--rfs-linked-item-height: 70px;
		--rfs-linked-item-gap: 6px;
		bottom: calc(100% + 10px);
		max-width: calc(100% - 0.75rem);
		padding: 6px;
	}

	.rfs-linked-menu-text {
		font-size: 15px;
		inset: 0;
	}
}

.thumb-swiper {
	height: auto;
	background: transparent !important;
	/* allow active/thumb transforms and shadows to show outside the swiper box */
	overflow: visible !important;
}

.thumb-swiper .swiper-wrapper {
	background: transparent !important;
	align-items: stretch;
}

.thumb-swiper .swiper-wrapper {
	/* ensure wrapper doesn't clip slides when they lift */
	overflow: visible !important;
}

/* Thumbnail arrows removed — navigate by swiping/dragging the strip or by
   tapping a thumbnail. */
.thumb-button-prev,
.thumb-button-next {
	display: none !important;
}

.thumb-swiper .swiper-slide {
	cursor: pointer;
	transition: transform 220ms var(--rfs-motion-curve), box-shadow 220ms var(--rfs-motion-curve), opacity 180ms linear;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	aspect-ratio: 5 / 4;
	min-height: 180px;
	box-shadow: var(--rfs-elevation-1);
	background: rgba(255,255,255,0.02);
}

.thumb-swiper .swiper-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.5) 100%);
	z-index: 1;
	pointer-events: none;
	transition: background 220ms var(--rfs-motion-curve), opacity 220ms var(--rfs-motion-curve);
}

.thumb-swiper .thumb-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	font-size: 0.95rem;
	line-height: 1.2;
	color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	text-align: left;
	padding: 2.25rem 1rem 0.9rem;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	pointer-events: none;
	transition: color 220ms var(--rfs-motion-curve), text-shadow 220ms var(--rfs-motion-curve), background 220ms var(--rfs-motion-curve);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.thumb-swiper .swiper-slide:hover {
	border-color: transparent;
	transform: translateY(-6px) scale(1.02);
	box-shadow: var(--rfs-elevation-2);
}

.thumb-swiper .swiper-slide:hover::after,
.thumb-swiper .swiper-slide-thumb-active::after {
	background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.6) 100%);
}

.thumb-swiper .swiper-slide:hover .thumb-title,
.thumb-swiper .swiper-slide-thumb-active .thumb-title {
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	background: transparent;
}

.thumb-swiper .swiper-slide:hover .thumb-title {
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	background: transparent;
}

.thumb-swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: transparent;
	transform: translateY(-8px) scale(1.03);
	/* Safety-amber ring marks the active thumbnail */
	box-shadow: var(--rfs-elevation-2), 0 0 0 2px var(--po-accent-2);
}

.thumb-swiper .swiper-slide img {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms var(--rfs-motion-curve);
}

.thumb-swiper .swiper-slide:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(2,82,150,0.35);
}

/* Responsive Styles */
@media (max-width: 768px) {
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host {
		margin-top: 0 !important;
	}

	body.realfactory-body .rfs-slider-host.rfs-under-title {
		margin-bottom: 118px !important;
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-wrapper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-slide,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .slide-content-wrapper {
		min-height: var(--rfs-slide-min-height, 400px);
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
		min-height: max(0px, calc(var(--rfs-slide-min-height, 400px) - var(--rfs-header-clearance, 0px)));
	}

	.hero-slider {
		--rfs-slide-min-height: 400px;
		--rfs-main-arrow-clearance: 56px;
	}

	.thumb-swiper .thumb-title {
		display: none;
	}

	.slide-content-wrapper {
		justify-content: center;
		/* reduced vertical spacing on smaller screens */
		margin: 1.5rem auto 3.5rem;
	}

	.slide-content {
		text-align: center !important;
		align-items: center;
		margin: 0 auto;
	}

	.slide-content h2,
	.slide-content .blurb,
	.slide-content p,
	.slide-content .btn {
		text-align: center !important;
	}

	.hero-swiper {
		height: auto;
		min-height: 400px;
	}

	.hero-swiper .swiper-wrapper,
	.hero-swiper .swiper-slide,
	.slide-content-wrapper {
		min-height: 400px;
	}

	.slide-content h2 {
		font-size: 2rem;
	}

	.slide-content .blurb {
		font-size: 1rem;
	}

	.slide-content .btn {
		padding: 0.75rem 2rem;
		font-size: 0.9rem;
	}

	.slide-content .rfs-view-projects-btn {
		align-self: center;
	}

	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		width: 40px;
		height: 40px;
	}

	.hero-swiper .swiper-button-prev {
		left: 12px;
	}

	.hero-swiper .swiper-button-next {
		right: 12px;
	}

	.hero-swiper .swiper-button-next::after,
	.hero-swiper .swiper-button-prev::after {
		font-size: 1rem;
	}

	/* Slightly larger arrows on mobile for tap targets */
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		width: 48px;
		height: 48px;
	}

	.thumb-swiper {
		height: auto;
	}

	.thumb-swiper .swiper-slide {
		border-width: 0;
		min-height: 90px;
		aspect-ratio: 16 / 9;
		box-shadow: none;
	}

	.thumb-swiper .swiper-slide img {
		height: 100%;
	}
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev,
	.thumb-swiper .swiper-slide,
	.rfs-linked-menu-items {
		transition: none !important;
	}
}

@media (max-width: 480px) {
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host {
		margin-top: 0 !important;
	}

	body.realfactory-body .rfs-slider-host.rfs-under-title {
		margin-bottom: 112px !important;
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-wrapper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-slide,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .slide-content-wrapper {
		min-height: var(--rfs-slide-min-height, 350px);
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
		min-height: max(0px, calc(var(--rfs-slide-min-height, 350px) - var(--rfs-header-clearance, 0px)));
	}

	.hero-slider {
		--rfs-slide-min-height: 350px;
		--rfs-main-arrow-clearance: 52px;
	}

	.thumb-swiper .thumb-title {
		display: none;
	}

	.hero-swiper {
		height: auto;
		min-height: 350px;
	}

	.hero-swiper .swiper-wrapper,
	.hero-swiper .swiper-slide,
	.slide-content-wrapper {
		min-height: 350px;
	}

	.slide-content {
		padding: 1rem;
	}

	.slide-content-wrapper {
		padding: 0 max(1rem, var(--rfs-main-arrow-clearance));
		/* tighter spacing for very small screens */
		margin: 1rem auto 2.5rem;
	}

	.slide-content h2 {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.slide-content .blurb {
		font-size: 0.9rem;
		margin-bottom: 1.5rem;
	}

	.slide-content .rfs-view-projects-btn {
		align-self: center;
	}

	.thumb-swiper {
		height: auto;
	}

	.thumb-swiper .swiper-slide {
		border-width: 0;
		min-height: 74px;
		aspect-ratio: 16 / 9;
	}

	.thumb-swiper .swiper-slide img {
		height: 100%;
	}
}

/* ==========================================================================
   TABLET & MOBILE (<= 1024px) — thumbnail strip sits BELOW the hero.
   Eliminates the overlap between the thumbnails and the slide content /
   View Projects button, and makes the arrows usable (solid, on top, in the
   side gutter) like the main slider.
   ========================================================================== */
@media (max-width: 1024px) {
	.thumbnail-nav {
		margin: 26px auto 0 !important; /* no negative pull-up = no overlap with the hero content */
		padding: 0 1rem;
	}
}

/* Single Portfolio (project post type) */
.rfs-project-single-wrap {
	padding: 60px 0;
}

.rfs-project-single {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rfs-project-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 40px;
	align-items: start;
}

.rfs-project-featured {
	margin-bottom: 24px;
	line-height: 0;
}

.rfs-project-featured img {
	width: 100%;
	height: auto;
	display: block;
}

.rfs-project-title {
	margin: 0 0 16px;
	line-height: 1.2;
}

.rfs-project-blurb {
	margin: 24px 0 0;
	font-size: 1.05rem;
	line-height: 1.6;
}

.rfs-project-blurb p:only-child,
.rfs-project-blurb p:last-child {
	margin-bottom: 0;
}

.rfs-project-content > *:first-child {
	margin-top: 0;
}

.rfs-project-info-card {
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-top: 3px solid var(--po-accent);
	border-radius: 0 0 6px 6px;
	background: #fff;
	box-sizing: border-box;
}

.rfs-project-info-card h3 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--po-accent-deep);
}

.rfs-project-info-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rfs-project-info-card li {
	margin: 0 0 12px;
	line-height: 1.5;
	word-break: break-word;
}

.rfs-project-info-card li:last-child {
	margin-bottom: 0;
}

.rfs-project-info-card a {
	color: var(--po-accent);
	text-decoration: underline;
	transition: color 0.2s var(--rfs-motion-curve);
}

.rfs-project-info-card a:hover {
	color: var(--po-accent-hover);
}

@media (max-width: 900px) {
	.rfs-project-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rfs-project-info-card {
		padding: 20px;
	}
}
