/* Post Slides. Override the custom properties in your theme to restyle. */
.psl {
	--psl-accent: #1e66d0;
	--psl-accent-text: #fff;
	--psl-radius: 6px;
	--psl-scroll-offset: 1rem; /* Raise this if your theme has a sticky header. */
	scroll-margin-top: var(--psl-scroll-offset);
}

.psl-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.5em 0;
}

.psl-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.65em 1.2em;
	border-radius: var(--psl-radius);
	background: var(--psl-accent);
	color: var(--psl-accent-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.psl-btn:hover,
.psl-btn:focus,
.psl-btn:visited {
	color: var(--psl-accent-text);
	text-decoration: none;
}

.psl-btn:hover {
	opacity: 0.88;
}

.psl-btn:focus-visible {
	outline: 2px solid var(--psl-accent);
	outline-offset: 3px;
}

.psl-btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.psl-counter {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.psl-slide {
	transition: opacity 0.2s ease;
}

.psl-slide:focus {
	outline: none;
}

.psl.is-loading .psl-slide {
	opacity: 0.4;
}

.psl.is-loading {
	cursor: progress;
}

.psl-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Small screens: arrows only. */
@media (max-width: 480px) {
	.psl-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.psl-btn {
		padding: 0.65em 1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psl-slide,
	.psl-btn {
		transition: none;
	}
}
