.py-spot.py-projects {
	position: relative;
	z-index: 4;
	background: #fff;
	color: #000;
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.16);
}

.py-spot .py-projects__sheet {
	position: sticky;
	top: var(--py-header-h, 80px);
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: auto;
	background: #fff;
	overflow: visible;
}

.admin-bar .py-spot .py-projects__sheet {
	top: calc(var(--py-header-h, 80px) + 32px);
}

.py-spot .py-projects__cover {
	height: 0;
	pointer-events: none;
}

.py-spot .py-projects__rail {
	position: relative;
	top: auto;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 64px;
	height: 64px;
	padding: 0 clamp(16px, 3vw, 40px);
	background: #fff;
	border-bottom: 1px solid #000;
	box-sizing: border-box;
	direction: rtl;
}

.py-spot .py-projects__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 800;
}

.py-spot .py-projects__index,
.py-spot .py-projects__slash {
	font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.py-spot .py-projects__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 18px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #000;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-decoration: none;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.2s ease;
}

.py-spot .py-projects__cta:hover,
.py-spot .py-projects__cta:focus-visible {
	transform: scale(1.04);
	background: #000 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.py-spot__stage {
	display: flex;
	flex-direction: column;
	background: #fff;
}

.py-spot .py-projects__headline {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 16px clamp(16px, 3vw, 40px) 12px;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: clamp(26px, 3vw, 42px);
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
}

.py-spot__view {
	overflow: hidden;
	padding: 0 clamp(16px, 3vw, 40px);
	touch-action: pan-y;
}

.py-spot__track {
	display: flex;
	gap: 16px;
	direction: rtl;
	transition: transform 0.45s ease;
}

.py-spot__track > .py-pcard {
	flex: 0 0 calc((100% - 48px) / 4);
	animation: none;
}

.py-spot__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 14px 16px 18px;
}

.py-spot__nav button {
	min-height: 36px;
	padding: 0 18px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.py-spot__nav button:disabled {
	opacity: 0.35;
	cursor: default;
}

.py-spot__empty {
	margin: 0;
	padding: 28px clamp(16px, 3vw, 40px) 36px;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	text-align: center;
}

@media (min-width: 768px) {
	.py-spot .py-projects__sheet {
		min-height: calc(100svh - var(--py-header-h, 80px));
		padding-bottom: 36px;
	}

	.admin-bar .py-spot .py-projects__sheet {
		min-height: calc(100svh - var(--py-header-h, 80px) - 32px);
	}

	.py-spot .py-projects__headline {
		padding-top: 40px;
		padding-bottom: 40px;
	}
}

@media (max-width: 767px) {
	.py-spot.py-projects,
	.py-spot .py-projects__sheet,
	.py-spot__stage {
		background: #fff;
	}

	.py-spot.py-projects {
		z-index: 4;
		isolation: isolate;
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}

	.py-spot .py-projects__sheet,
	.py-spot .py-projects__rail {
		position: relative;
		top: auto;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.py-spot .py-projects__rail {
		flex-basis: 48px;
		height: 48px;
		padding: 0 16px;
	}

	.py-spot .py-projects__title {
		font-size: 13px;
	}

	.py-spot .py-projects__cta,
	.py-spot__nav button {
		min-height: 30px;
		padding: 0 12px;
		font-size: 11px;
	}

	.py-spot .py-projects__headline {
		padding-top: 16px;
		font-size: 24px;
	}

	.py-spot__track > .py-pcard {
		flex: 0 0 calc((100% - 16px) / 2);
	}
}

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