/*!
 * NetParsi Slideshow 1.0.0 — mod_netparsislideshow
 * Dependency-free. License: GNU GPL v2 or later
 */
.nps {
	--nps-ratio: 16 / 9;
	--nps-offset: 0px;
	--nps-fit: cover;
	--nps-bg: #111;
	--nps-arrow-bg: rgba(0, 0, 0, .45);
	--nps-arrow: #fff;
	--nps-dot: rgba(255, 255, 255, .5);
	--nps-dot-active: #fff;
	--nps-caption: #fff;
	--nps-ease: cubic-bezier(.22, .61, .36, 1);

	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--nps-bg);
	isolation: isolate;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.nps *,
.nps *::before,
.nps *::after {
	box-sizing: border-box;
}

/* ---------- Size modes ---------- */
.nps--ratio {
	aspect-ratio: var(--nps-ratio);
}

.nps--fullscreen {
	height: calc(100vh - var(--nps-offset));
	height: calc(100svh - var(--nps-offset));
	min-height: 240px;
}

/* ---------- Track & slides ---------- */
.nps-track {
	position: absolute;
	inset: 0;
	touch-action: pan-y;
}

.nps.is-dragging .nps-track {
	cursor: grabbing;
}

.nps-slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	z-index: 1;
	backface-visibility: hidden;
}

.nps-slide.is-active {
	visibility: visible;
	z-index: 2;
}

.nps-slide.is-moving {
	visibility: visible;
	z-index: 3;
	will-change: transform, opacity;
}

.nps-link {
	position: absolute;
	inset: 0;
	display: block;
	color: inherit;
	text-decoration: none;
	-webkit-user-drag: none;
}

a.nps-link:focus-visible {
	outline: 3px solid var(--nps-dot-active);
	outline-offset: -6px;
}

.nps-media,
.nps-media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	max-width: none;
	object-fit: var(--nps-fit);
	object-position: center;
	border: 0;
	-webkit-user-drag: none;
	pointer-events: none;
}

/* ---------- Caption ---------- */
.nps-caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	display: block;
	padding: 72px clamp(16px, 4vw, 48px) 56px;
	color: var(--nps-caption);
	background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.nps-caption__title {
	display: block;
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.3;
}

.nps-caption__text {
	display: block;
	max-width: 60ch;
	font-size: clamp(.9rem, 1.6vw, 1.125rem);
	line-height: 1.8;
	opacity: .92;
}

/* ---------- Arrows ---------- */
.nps-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--nps-arrow);
	background: var(--nps-arrow-bg);
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity .25s, background-color .25s, transform .25s;
}

.nps-prev {
	inset-inline-start: 16px;
}

.nps-next {
	inset-inline-end: 16px;
}

.nps-arrow:hover {
	background: rgba(0, 0, 0, .7);
}

.nps-arrow:focus-visible,
.nps-dot:focus-visible,
.nps-sound:focus-visible {
	outline: 2px solid var(--nps-dot-active);
	outline-offset: 2px;
}

.nps-arrow:disabled {
	opacity: .3;
	cursor: default;
}

.nps-arrow svg,
.nps-sound svg {
	display: block;
	pointer-events: none;
}

.nps--rtl .nps-arrow svg {
	transform: scaleX(-1);
}

/* ---------- Dots / navigation ---------- */
.nps-dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
}

.nps-dot {
	display: block;
	margin: 0;
	padding: 10px 2px;
	border: 0;
	border-radius: 0;
	background-color: var(--nps-dot);
	background-clip: content-box;
	cursor: pointer;
	transition: background-color .3s, width .3s var(--nps-ease);
}

.nps-dot.is-active {
	background-color: var(--nps-dot-active);
}

/* bars */
.nps--dots-bars .nps-dot {
	width: 32px;
	height: 24px;
}

.nps--dots-bars .nps-dot.is-active {
	width: 52px;
}

/* squares */
.nps--dots-squares .nps-dot {
	width: 30px;
	height: 30px;
	padding: 10px;
}

/* round */
.nps--dots-round .nps-dot {
	width: 30px;
	height: 30px;
	padding: 10px;
	border-radius: 50%;
}

/* ---------- Sound toggle ---------- */
.nps-sound {
	position: absolute;
	bottom: 16px;
	inset-inline-end: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--nps-arrow);
	background: var(--nps-arrow-bg);
	cursor: pointer;
}

.nps-sound[hidden] {
	display: none;
}

.nps-sound .nps-sound__on,
.nps-sound.is-muted .nps-sound__off {
	display: block;
}

.nps-sound .nps-sound__off,
.nps-sound.is-muted .nps-sound__on {
	display: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
	.nps-arrow {
		width: 40px;
		height: 40px;
	}

	.nps-prev {
		inset-inline-start: 8px;
	}

	.nps-next {
		inset-inline-end: 8px;
	}

	.nps-caption {
		padding-bottom: 48px;
	}
}

@media (hover: none) {
	.nps-arrow:hover {
		background: var(--nps-arrow-bg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nps-dot {
		transition: none;
	}
}
