/**
 * jQuery Thumbnail Scroller 1.7 — native responsive gallery rail.
 */
.jx-ts {
	--ts-accent: #4f46e5;
	--ts-overlay: rgba(3, 7, 18, .94);
	--ts-thumb-w: 220px;
	--ts-thumb-h: 150px;
	--ts-mobile-w: 170px;
	--ts-gap: 14px;
	--ts-radius: 14px;
	--ts-fit: cover;
	--ts-surface: #fff;
	--ts-surface-2: #f8fafc;
	--ts-text: #0f172a;
	--ts-muted: #475569;
	--ts-border: #dbe3ee;
	--ts-shadow: 0 18px 46px rgba(15, 23, 42, .1);
	color: var(--ts-text);
	container-type: inline-size;
	position: relative;
	width: 100%;
}

.jx-ts--theme-dark {
	--ts-surface: #111827;
	--ts-surface-2: #1f2937;
	--ts-text: #f8fafc;
	--ts-muted: #cbd5e1;
	--ts-border: #334155;
	--ts-shadow: 0 22px 56px rgba(0, 0, 0, .34);
}

.jx-ts--theme-sand {
	--ts-surface: #fffaf0;
	--ts-surface-2: #f7ecd7;
	--ts-text: #3f2d20;
	--ts-muted: #735941;
	--ts-border: #e8d7b8;
	--ts-shadow: 0 18px 46px rgba(91, 67, 42, .14);
}

.jx-ts--theme-ink {
	--ts-surface: #0b1020;
	--ts-surface-2: #151c32;
	--ts-text: #f1f5f9;
	--ts-muted: #b5c0d4;
	--ts-border: #293553;
	--ts-shadow: 0 22px 60px rgba(2, 6, 23, .54);
}

.jx-ts--theme-forest {
	--ts-surface: #f2f8f4;
	--ts-surface-2: #e0eee4;
	--ts-text: #123326;
	--ts-muted: #426655;
	--ts-border: #bfd5c7;
	--ts-shadow: 0 18px 46px rgba(19, 78, 54, .14);
}

.jx-ts__rail-shell {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	position: relative;
}

.jx-ts__viewport {
	min-width: 0;
	overflow: auto hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-color: color-mix(in srgb, var(--ts-accent) 55%, transparent) transparent;
	scrollbar-width: thin;
	touch-action: pan-y pinch-zoom;
}

.jx-ts__viewport:focus-visible {
	border-radius: calc(var(--ts-radius) + 4px);
	outline: 3px solid color-mix(in srgb, var(--ts-accent) 48%, transparent);
	outline-offset: 4px;
}

.jx-ts__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.jx-ts__track {
	display: flex;
	gap: var(--ts-gap);
	min-width: max-content;
	padding: 8px 2px 12px;
}

.jx-ts__item {
	background: var(--ts-surface);
	border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius);
	box-shadow: var(--ts-shadow);
	flex: 0 0 var(--ts-thumb-w);
	margin: 0;
	overflow: hidden;
	scroll-snap-align: start;
}

.jx-ts__media {
	appearance: none;
	background: var(--ts-surface-2);
	border: 0;
	border-radius: inherit;
	color: inherit;
	cursor: pointer;
	display: block;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-decoration: none;
	width: 100%;
}

.jx-ts__media img {
	aspect-ratio: var(--ts-thumb-w) / var(--ts-thumb-h);
	display: block;
	height: var(--ts-thumb-h);
	object-fit: var(--ts-fit);
	transition: filter .25s ease, opacity .25s ease, transform .3s ease;
	width: 100%;
}

.jx-ts__media-shine {
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28), transparent 68%);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(-45%);
	transition: opacity .25s ease, transform .45s ease;
}

.jx-ts__media:hover img {
	filter: saturate(1.06) contrast(1.02);
	transform: scale(1.035);
}

.jx-ts__media:hover .jx-ts__media-shine {
	opacity: 1;
	transform: translateX(45%);
}

.jx-ts__media:focus-visible {
	outline: 3px solid var(--ts-accent);
	outline-offset: -4px;
}

.jx-ts__caption {
	display: grid;
	gap: 4px;
	padding: 13px 15px 15px;
}

.jx-ts__title {
	color: var(--ts-text);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
}

.jx-ts__description {
	color: var(--ts-muted);
	display: -webkit-box;
	font-size: .82rem;
	line-height: 1.45;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.jx-ts__arrow {
	align-items: center;
	appearance: none;
	background: var(--ts-surface);
	border: 1px solid var(--ts-border);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
	color: var(--ts-text);
	cursor: pointer;
	display: inline-flex;
	height: 46px;
	justify-content: center;
	padding: 0;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
	width: 46px;
	z-index: 2;
}

.jx-ts__arrow:hover {
	background: var(--ts-accent);
	border-color: var(--ts-accent);
	color: #fff;
}

.jx-ts__arrow:focus-visible,
.jx-ts__lightbox-action:focus-visible,
.jx-ts__lightbox-nav:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ts-accent) 65%, #fff);
	outline-offset: 3px;
}

.jx-ts__arrow:disabled {
	cursor: default;
	opacity: .32;
}

.jx-ts__arrow svg,
.jx-ts__lightbox-action svg,
.jx-ts__lightbox-nav svg {
	fill: none;
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 22px;
}

.jx-ts__footer {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: flex-end;
	margin-top: 9px;
}

.jx-ts__counter {
	color: var(--ts-muted);
	font-size: .76rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: .08em;
	min-width: 42px;
	text-align: right;
}

.jx-ts__progress {
	background: var(--ts-border);
	border-radius: 999px;
	height: 3px;
	max-width: 180px;
	overflow: hidden;
	width: 28%;
}

.jx-ts__progress span {
	background: var(--ts-accent);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 6%;
	transition: width .2s ease;
	width: 6%;
}

/* Clean strip: captions become a compact image overlay. */
.jx-ts--clean .jx-ts__item {
	background: transparent;
	border: 0;
	box-shadow: none;
	position: relative;
}

.jx-ts--clean .jx-ts__media {
	border-radius: var(--ts-radius);
}

.jx-ts--clean .jx-ts__caption {
	background: linear-gradient(transparent, rgba(2, 6, 23, .82));
	border-radius: 0 0 var(--ts-radius) var(--ts-radius);
	bottom: 0;
	color: #fff;
	inset-inline: 0;
	padding: 30px 13px 12px;
	pointer-events: none;
	position: absolute;
}

.jx-ts--clean .jx-ts__title,
.jx-ts--clean .jx-ts__description {
	color: #fff;
}

/* Cards: polished catalogue cards with generous text space. */
.jx-ts--cards .jx-ts__item {
	border-radius: calc(var(--ts-radius) + 4px);
}

.jx-ts--cards .jx-ts__media {
	border-radius: calc(var(--ts-radius) + 3px) calc(var(--ts-radius) + 3px) 0 0;
}

.jx-ts--cards .jx-ts__caption {
	min-height: 72px;
}

/* Filmstrip: visual perforations without image assets. */
.jx-ts--filmstrip {
	--ts-surface: #151515;
	--ts-surface-2: #080808;
	--ts-text: #fff;
	--ts-muted: #d1d5db;
	--ts-border: #2f2f2f;
}

.jx-ts--filmstrip .jx-ts__track {
	background:
		radial-gradient(circle, #030303 0 3px, transparent 3.5px) 2px 3px / 20px 12px repeat-x,
		radial-gradient(circle, #030303 0 3px, transparent 3.5px) 2px calc(100% - 3px) / 20px 12px repeat-x,
		#171717;
	border-radius: calc(var(--ts-radius) + 6px);
	padding: 19px 16px;
}

.jx-ts--filmstrip .jx-ts__item {
	border-color: #383838;
	border-radius: max(2px, calc(var(--ts-radius) / 2));
	box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
}

.jx-ts--filmstrip .jx-ts__caption {
	background: #111;
}

/* Editorial: a lively rhythm while preserving one scroll axis. */
.jx-ts--editorial .jx-ts__track {
	align-items: stretch;
}

.jx-ts--editorial .jx-ts__item {
	border: 0;
	box-shadow: none;
}

.jx-ts--editorial .jx-ts__item:nth-child(3n + 1) {
	flex-basis: calc(var(--ts-thumb-w) * 1.28);
}

.jx-ts--editorial .jx-ts__item:nth-child(3n + 1) .jx-ts__media img {
	aspect-ratio: calc(var(--ts-thumb-w) * 1.28) / var(--ts-thumb-h);
}

.jx-ts--editorial .jx-ts__caption {
	border-inline-start: 3px solid var(--ts-accent);
	margin-top: 9px;
	padding-block: 4px;
}

/* Vertical rail. */
.jx-ts--vertical {
	margin-inline: auto;
	max-width: calc(var(--ts-thumb-w) + 116px);
}

.jx-ts--vertical .jx-ts__rail-shell {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 48px minmax(0, 560px) 48px;
}

.jx-ts--vertical .jx-ts__viewport {
	max-height: 560px;
	overflow: hidden auto;
	scroll-snap-type: y mandatory;
	touch-action: pan-x pinch-zoom;
}

.jx-ts--vertical .jx-ts__track {
	flex-direction: column;
	min-width: 0;
	padding-inline: 8px 12px;
}

.jx-ts--vertical .jx-ts__item {
	flex: 0 0 auto;
	width: 100%;
}

.jx-ts--vertical .jx-ts__arrow {
	justify-self: center;
	transform: rotate(90deg);
}

.jx-ts--vertical .jx-ts__footer {
	justify-content: center;
}

.jx-ts--edge-fade .jx-ts__rail-shell::before,
.jx-ts--edge-fade .jx-ts__rail-shell::after {
	content: "";
	inset-block: 5px 12px;
	pointer-events: none;
	position: absolute;
	width: 28px;
	z-index: 1;
}

.jx-ts--edge-fade .jx-ts__rail-shell::before {
	background: linear-gradient(90deg, var(--ts-surface), transparent);
	inset-inline-start: 58px;
}

.jx-ts--edge-fade .jx-ts__rail-shell::after {
	background: linear-gradient(270deg, var(--ts-surface), transparent);
	inset-inline-end: 58px;
}

.jx-ts--edge-fade.is-at-start .jx-ts__rail-shell::before,
.jx-ts--edge-fade.is-at-end .jx-ts__rail-shell::after {
	opacity: 0;
}

.jx-ts--vertical.jx-ts--edge-fade .jx-ts__rail-shell::before,
.jx-ts--vertical.jx-ts--edge-fade .jx-ts__rail-shell::after {
	display: none;
}

/* Accessible modal lightbox. */
.jx-ts-lightbox-open {
	overflow: hidden;
}

.jx-ts__lightbox {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: clamp(12px, 3vw, 42px);
	position: fixed;
	z-index: 10050;
}

.jx-ts__lightbox[hidden] {
	display: none;
}

.jx-ts__lightbox-backdrop {
	background: var(--ts-overlay);
	inset: 0;
	position: absolute;
}

.jx-ts__lightbox-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: calc(100vh - 24px);
	max-width: min(1180px, calc(100vw - 24px));
	position: relative;
	width: 100%;
}

.jx-ts__lightbox-toolbar {
	align-items: center;
	color: #fff;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	min-height: 52px;
}

.jx-ts__lightbox-count {
	font-size: .78rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: .1em;
	margin-inline-end: auto;
}

.jx-ts__lightbox-action,
.jx-ts__lightbox-nav {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
	width: 44px;
}

.jx-ts__lightbox-action:hover,
.jx-ts__lightbox-nav:hover {
	background: var(--ts-accent);
	border-color: var(--ts-accent);
	color: #fff;
}

.jx-ts__lightbox-stage {
	align-items: center;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	min-height: 0;
}

.jx-ts__lightbox-stage img {
	border-radius: min(var(--ts-radius), 18px);
	box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
	display: block;
	justify-self: center;
	max-height: calc(100vh - 160px);
	max-width: 100%;
	object-fit: contain;
	opacity: 0;
	transform: translateY(0) scale(.97);
	transition: opacity .22s ease, transform .28s ease;
}

.jx-ts__lightbox-stage img.is-loaded {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.jx-ts__lightbox--fade .jx-ts__lightbox-stage img,
.jx-ts__lightbox--none .jx-ts__lightbox-stage img {
	transform: none;
}

.jx-ts__lightbox--slide .jx-ts__lightbox-stage img {
	transform: translateY(20px);
}

.jx-ts__lightbox--slide .jx-ts__lightbox-stage img.is-loaded {
	transform: translateY(0);
}

.jx-ts__lightbox--none .jx-ts__lightbox-stage img {
	transition: none;
}

.jx-ts__lightbox-caption {
	color: #f8fafc;
	font-size: .9rem;
	line-height: 1.5;
	margin: 12px auto 0;
	max-width: 760px;
	text-align: center;
}

.jx-ts--empty {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 12px;
	color: #9a3412;
	padding: 18px;
}

@container (max-width: 620px) {
	.jx-ts:not(.jx-ts--vertical) .jx-ts__rail-shell {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 5px;
	}

	.jx-ts:not(.jx-ts--vertical) .jx-ts__item {
		flex-basis: var(--ts-mobile-w);
	}

	.jx-ts:not(.jx-ts--vertical) .jx-ts__media img {
		height: calc(var(--ts-thumb-h) * var(--ts-mobile-w) / var(--ts-thumb-w));
	}

	.jx-ts__arrow {
		height: 44px;
		width: 44px;
	}

	.jx-ts--edge-fade .jx-ts__rail-shell::before {
		inset-inline-start: 49px;
	}

	.jx-ts--edge-fade .jx-ts__rail-shell::after {
		inset-inline-end: 49px;
	}

	.jx-ts__lightbox-stage {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
	}

	.jx-ts__lightbox-nav {
		height: 42px;
		width: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jx-ts *,
	.jx-ts *::before,
	.jx-ts *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
