html:has(body.punchyab-home),
body.punchyab-home {
	scrollbar-width: none;
}

html.lenis,
html.lenis body {
	height: auto;
}

html.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

html:has(body.punchyab-home)::-webkit-scrollbar,
body.punchyab-home::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

body.punchyab-home,
body.punchyab-home .site-main,
.py-home {
	background: #000;
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.py-hero-pin {
	position: sticky;
	top: var(--py-header-h, 80px);
	z-index: 1;
	height: calc(100svh - var(--py-header-h, 80px));
}

.admin-bar .py-hero-pin {
	top: calc(var(--py-header-h, 80px) + 32px);
	height: calc(100svh - var(--py-header-h, 80px) - 32px);
}

.py-hero {
	height: 100%;
	overflow: hidden;
	background: #111;
	color: #fff;
}

.py-hero .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.py-mosaic__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(3, minmax(0, 1fr));
	width: 100%;
	height: 100%;
}

.py-mosaic__cell {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: #161616;
}

.py-mosaic__media,
.py-mosaic__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.py-mosaic__img {
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.py-mosaic__cell:hover .py-mosaic__img,
.py-mosaic__cell:focus-visible .py-mosaic__img {
	transform: scale(1.12);
}

.py-mosaic__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 0, 0, 0.36);
	text-align: center;
	transition: background 0.35s;
}

.py-mosaic__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 34ch;
}

.py-mosaic__title {
	display: block;
	color: #fff;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: clamp(28px, 2.8vw, 52px);
	font-weight: 500;
	font-synthesis: none;
	letter-spacing: normal;
	line-height: 1.25;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	animation: py-mosaic-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(var(--i) * 80ms);
}

.py-mosaic__note {
	display: block;
	max-height: 0;
	margin-top: 0;
	overflow: hidden;
	color: #fff;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: clamp(16px, 1.35vw, 22px);
	font-weight: 500;
	line-height: 1.75;
	opacity: 0;
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: max-height 0.5s ease, opacity 0.45s ease, margin-top 0.45s ease;
}

.py-mosaic__cell:hover .py-mosaic__note,
.py-mosaic__cell:focus-visible .py-mosaic__note {
	max-height: 9em;
	margin-top: 12px;
	opacity: 1;
}

body.punchyab .py-mosaic__cell,
body.punchyab .py-mosaic__cell:hover,
body.punchyab .py-mosaic__cell:focus,
body.punchyab .py-mosaic__cell:focus-visible {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
	background-color: #161616;
}

@keyframes py-mosaic-in {
	from {
		opacity: 0;
		transform: translate3d(0, -42vh, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (max-width: 900px) {
	.py-hero-pin,
	.admin-bar .py-hero-pin {
		position: relative;
		top: auto;
		height: auto;
	}

	.py-mosaic__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: none;
		height: auto;
	}

	.py-mosaic__cell {
		min-height: 0;
		aspect-ratio: 3 / 4;
	}

	.py-mosaic__shade {
		padding: 8px;
	}

	.py-mosaic__title {
		font-size: clamp(15px, 4.2vw, 22px);
		line-height: 1.3;
	}

	.py-mosaic__note {
		font-size: clamp(12px, 3.2vw, 15px);
		line-height: 1.5;
	}
}

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

	.py-mosaic__img,
	.py-mosaic__shade,
	.py-mosaic__note {
		transition: none;
	}
}
