.psp-slider-wrap {
	position: relative;
	max-width: 100%;
	margin: 2em 0;
}

.psp-slider-viewport {
	overflow: hidden;
	width: 100%;
}

.psp-slider-track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

.psp-slide,
.psp-slide:link,
.psp-slide:visited,
.psp-slide:hover,
.psp-slide:active,
.psp-slide:focus {
	flex: 0 0 calc((100% / var(--psp-visible, 3)) - 16px);
	margin-right: 16px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	text-decoration: none !important;
	color: inherit !important;
	background: #ffffff !important;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.psp-slide:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.psp-slide-image {
	flex: 0 0 40%;
	min-width: 100px;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
	overflow: hidden;
	align-self: stretch;
}

.psp-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.psp-no-image {
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: linear-gradient(135deg, #eee, #ddd);
}

.psp-slide-content {
	flex: 1 1 60%;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #ffffff !important;
}

.psp-slide-title,
.psp-slide a .psp-slide-title {
	margin: 0 0 6px 0;
	font-size: 1rem;
	line-height: 1.3;
	color: #1d2327 !important;
}

.psp-slide-excerpt,
.psp-slide a .psp-slide-excerpt {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #555555 !important;
}

.psp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.psp-arrow:hover {
	background: #fff;
}

.psp-arrow-left {
	left: -8px;
}

.psp-arrow-right {
	right: -8px;
}

.psp-empty {
	color: #777;
	font-style: italic;
}

/* Single post per slide: a roomier, full-width layout instead of just a
   stretched card. Wider aspect ratio suits a full-width hero image better
   than a tall/square one. */
.psp-single .psp-slide-image {
	flex-basis: 45%;
	aspect-ratio: 16 / 9;
}

.psp-single .psp-slide-content {
	padding: 24px 32px;
}

.psp-single .psp-slide-title {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.psp-single .psp-slide-excerpt {
	font-size: 1rem;
	line-height: 1.6;
}

/* Responsive: below tablet width, side-by-side image+text columns get too
   narrow to read (text wraps to one word per line), so we always fall back
   to one full-width, stacked (image-on-top) card at a time — regardless of
   what "visible" is set to for desktop. The !important guards against the
   inline --psp-visible custom property (set by JS) leaking through here. */
@media (max-width: 900px) {
	.psp-slide {
		flex-direction: column !important;
		flex-basis: calc(100% - 16px) !important;
	}

	.psp-slide-image {
		flex-basis: auto !important;
		aspect-ratio: 16 / 9 !important;
	}

	.psp-single .psp-slide-content {
		padding: 16px 18px;
	}

	.psp-single .psp-slide-title {
		font-size: 1.2rem;
	}
}
