.pyalichai-homepage,
.pyalichai-homepage * {
	box-sizing: border-box;
}

.pyalichai-homepage {
	position: relative;
	z-index: 1;
	width: 100vw;
	height: calc(100vh - 59px);
	height: calc(100svh - 59px);
	min-height: 581px;
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	font-family: var(--pyalichai-font-body);
	color: #fff;
	background: #17110d;
}

.pyalichai-homepage a,
.pyalichai-homepage a:hover,
.pyalichai-homepage a:focus,
.pyalichai-homepage a:visited {
	color: inherit;
	text-decoration: none;
}

.pyalichai-homepage__video,
.pyalichai-homepage__shade {
	position: absolute;
	inset: 0;
}

.pyalichai-homepage__video {
	z-index: 1;
	overflow: hidden;
	background: #17110d;
	pointer-events: none;
}

/* 16:9 YouTube video, center-cropped like background-size: cover. */
.pyalichai-homepage__video-frame {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.7777778vh;
	min-height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.pyalichai-homepage__video-cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 60ms linear;
}

.pyalichai-homepage__video-cover.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.pyalichai-homepage__shade {
	z-index: 3;
	background: rgba(0, 0, 0, 0.34);
	pointer-events: none;
}

.pyalichai-homepage__content {
	position: absolute;
	z-index: 8;
	top: 52.38%;
	left: 50%;
	display: flex;
	width: min(1080px, calc(100% - 80px));
	transform: translateX(-50%);
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.pyalichai-homepage__title {
	margin: 0;
	padding: 0;
	font-family: var(--pyalichai-font-display);
	font-size: 40px;
	font-weight: 600;
	line-height: 48px;
	letter-spacing: -0.35px;
	text-transform: none;
	color: #fff;
	white-space: nowrap;
}

.pyalichai-homepage__title-mobile {
	display: none;
}

.pyalichai-homepage__primary-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 164px;
	height: 52px;
	margin-top: 16px;
	border-radius: 5px;
	background: #fff;
	color: #111 !important;
	font-family: var(--pyalichai-font-body);
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}


@media (max-width: 502px) {
	.pyalichai-homepage {
		height: calc(100vh - 70px);
		height: calc(100svh - 70px);
		min-height: calc(100vh - 70px);
		min-height: calc(100svh - 70px);
	}

	/* Keep the 16:9 YouTube player undistorted while center-cropping it inside the portrait hero. */
	.pyalichai-homepage__video-frame {
		/*
		 * On mobile the iframe must become wider than the viewport so the
		 * 16:9 YouTube video can cover a portrait hero. WordPress/Elementor
		 * themes often apply iframe { max-width:100% }, which was clamping
		 * the player to 400px and creating the large black letterbox area.
		 */
		width: calc((100vh - 70px) * 1.7777778) !important;
		width: calc((100svh - 70px) * 1.7777778) !important;
		height: calc(100vh - 70px) !important;
		height: calc(100svh - 70px) !important;
		min-width: 0 !important;
		min-height: 0 !important;
		max-width: none !important;
		max-height: none !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
	}

	.pyalichai-homepage__shade {
		background: rgba(0, 0, 0, 0.31);
	}

	.pyalichai-homepage__content {
		top: 44.85%;
		width: calc(100% - 36px);
	}

	.pyalichai-homepage__title {
		font-size: 40px;
		font-weight: 600;
		line-height: 40px;
		letter-spacing: -0.4px;
		white-space: normal;
	}

	.pyalichai-homepage__title-desktop {
		display: none;
	}

	.pyalichai-homepage__title-mobile {
		display: inline;
	}

	.pyalichai-homepage__primary-cta {
		width: 162px;
		height: 52px;
		margin-top: 24px;
		font-size: 17px;
	}
}

/* Background video must never receive hover/click/focus input; this prevents YouTube's interactive overlay UI. */
.pyalichai-homepage__video,
.pyalichai-homepage__video-frame {
	pointer-events: none !important;
	user-select: none;
}


@media (max-width: 767px) {
	.pyalichai-homepage {
		height: calc(100vh - 54px);
		height: calc(100svh - 54px);
		min-height: calc(100vh - 54px);
		min-height: calc(100svh - 54px);
	}

	.pyalichai-homepage__video,
	.pyalichai-homepage__shade {
		top: -81px;
		bottom: -2px;
	}

	.pyalichai-homepage__video-frame {
		width: calc((100vh - 54px + 81px) * 1.7777778) !important;
		width: calc((100svh - 54px + 81px) * 1.7777778) !important;
		height: calc(100vh - 54px + 81px) !important;
		height: calc(100svh - 54px + 81px) !important;
		max-width: none !important;
		max-height: none !important;
	}

	.pyalichai-homepage__video-cover {
		background-position: center center;
	}

	.pyalichai-homepage__content {
		top: 53%;
		width: calc(100% - 36px);
	}

	.pyalichai-homepage__title {
		white-space: normal;
	}

	.pyalichai-homepage__title-desktop {
		display: none;
	}

	.pyalichai-homepage__title-mobile {
		display: inline;
	}
}
