.lpf-kegelbahn-page {
	position: relative;
	z-index: 2;
	overflow: visible;
}

.lpf-kegelbahn-page__block {
	position: relative;
	overflow: visible;
}

.lpf-kegelbahn-page__block--intro {
	z-index: 2;
	background-color: var(--lpf-color-intro-bg);
	margin-top: calc(-1 * var(--lpf-torn-edge-overlap));
	padding: calc(60px + var(--lpf-torn-edge-overlap)) 0 0;
	clip-path: var(--lpf-torn-edge-clip-top);
	filter: drop-shadow(1.1px 2px 0 rgba(70, 35, 15, 0.28)) drop-shadow(2.9px 5.1px 0 rgba(70, 35, 15, 0.16)) drop-shadow(6.9px 10.9px 10px rgba(70, 35, 15, 0.12));
}

.lpf-kegelbahn-page__block--intro::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	clip-path: var(--lpf-torn-edge-clip-top);
	background:
		var(--lpf-torn-edge-highlight-top),
		var(--lpf-torn-edge-shadow-top);
}

.lpf-kegelbahn-page__block--specials {
	z-index: 3;
	background-color: var(--lpf-color-linen);
	margin-top: calc(-1 * var(--lpf-torn-edge-overlap));
	padding: calc(60px + var(--lpf-torn-edge-overlap)) 0 0;
	clip-path: var(--lpf-torn-edge-clip-top);
	filter: drop-shadow(1.1px 2px 0 rgba(70, 35, 15, 0.28)) drop-shadow(2.9px 5.1px 0 rgba(70, 35, 15, 0.16)) drop-shadow(6.9px 10.9px 10px rgba(70, 35, 15, 0.12));
}

.lpf-kegelbahn-page__block--specials::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	clip-path: var(--lpf-torn-edge-clip-top);
	background:
		var(--lpf-torn-edge-highlight-top),
		var(--lpf-torn-edge-shadow-top);
}

.lpf-kegelbahn-page__texture {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: url("/wp-content/themes/la-pastaria-fracasso/assets/images/paper-overlay-test.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	filter: saturate(0);
	mix-blend-mode: multiply;
	opacity: 0.2;
	pointer-events: none;
}

.lpf-kegelbahn-page__intro {
	position: relative;
	z-index: 2;
}

.lpf-kegelbahn-page__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
	max-width: var(--lpf-content-max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.lpf-kegelbahn-page__intro--reversed .lpf-kegelbahn-page__inner {
	grid-template-columns: 1fr 1fr;
}

.lpf-kegelbahn-page__eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--lpf-font-subheading);
	font-size: clamp(1.1rem, 2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.3;
	color: var(--lpf-color-text);
}

.lpf-kegelbahn-page__title {
	margin: 0 0 1.25rem;
	font-family: var(--lpf-font-heading);
	font-size: clamp(2rem, 4.5vw, 3.375rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--lpf-color-text);
}

.lpf-kegelbahn-page__text {
	margin-bottom: 1.75rem;
	font-family: var(--lpf-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--lpf-color-text);
}

.lpf-kegelbahn-page__text p {
	margin: 0;
}

.lpf-kegelbahn-page__text p + p,
.lpf-kegelbahn-page__text ul + p {
	margin-top: 1rem;
}

.lpf-kegelbahn-page__text ul {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.lpf-kegelbahn-page__text li + li {
	margin-top: 0.35rem;
}

.lpf-kegelbahn-page__text a {
	color: var(--lpf-color-button);
	text-decoration: underline;
}

.lpf-kegelbahn-page__text a:hover,
.lpf-kegelbahn-page__text a:focus-visible {
	color: #7d3e22;
}

.lpf-kegelbahn-page .lpf-btn {
	display: inline-block;
	padding: 0.6rem 1.75rem;
	background-color: var(--lpf-color-button);
	color: #ffffff;
	font-family: var(--lpf-font-body);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
	border: 1.1px solid var(--lpf-color-button);
	border-radius: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lpf-kegelbahn-page .lpf-btn:hover,
.lpf-kegelbahn-page .lpf-btn:focus-visible {
	background-color: #7d3e22;
	border-color: #7d3e22;
	color: #ffffff;
}

.lpf-kegelbahn-page__media {
	display: block;
	overflow: visible;
}

.lpf-kegelbahn-page__media img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 550px;
	max-height: 550px;
	object-fit: cover;
	object-position: center;
	border: 8px solid #ffffff;
	box-shadow: 5.1px 8px 4px rgba(55, 35, 20, 0.22);
	transform: rotate(-1deg);
	transform-origin: center center;
}

.lpf-kegelbahn-page__intro--reversed .lpf-kegelbahn-page__media img {
	aspect-ratio: 1 / 1;
	height: auto;
	max-height: none;
	object-fit: cover;
	object-position: center;
	transform: rotate(1deg);
}

.lpf-kegelbahn-page__gallery {
	position: relative;
	z-index: 2;
	max-width: var(--lpf-content-max-width);
	margin: 4rem auto 0;
	padding: 0 1.5rem 100px;
	overflow: visible;
}

.lpf-kegelbahn-page__gallery-grid {
	display: grid;
	gap: 30px;
	overflow: visible;
}

.lpf-kegelbahn-page__gallery--three .lpf-kegelbahn-page__gallery-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 1600px;
}

.lpf-kegelbahn-page__gallery-item {
	margin: 0;
	overflow: visible;
}

.lpf-kegelbahn-page__gallery-item img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 350px;
	object-fit: cover;
	object-position: center;
	border: 8px solid #ffffff;
	box-shadow: 5.1px 8px 4px rgba(55, 35, 20, 0.22);
	transform-origin: center center;
}

.lpf-kegelbahn-page__gallery--three .lpf-kegelbahn-page__gallery-item:nth-of-type(1) img {
	transform: rotate(1.2deg);
}

.lpf-kegelbahn-page__gallery--three .lpf-kegelbahn-page__gallery-item:nth-of-type(2) img {
	transform: rotate(-0.8deg);
}

.lpf-kegelbahn-page__gallery--three .lpf-kegelbahn-page__gallery-item:nth-of-type(3) img {
	transform: rotate(1deg);
}

.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-item:nth-of-type(1) img {
	transform: rotate(2deg);
}

.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-item:nth-of-type(2) img {
	transform: rotate(-1.6deg);
}

.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-item:nth-of-type(3) img {
	transform: rotate(1.4deg);
}

.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-item:nth-of-type(4) img {
	transform: rotate(-2.2deg);
}

@media (max-width: 900px) {
	.lpf-kegelbahn-page__block--intro {
		padding-top: calc(48px + var(--lpf-torn-edge-overlap));
	}

	.lpf-kegelbahn-page__block--specials {
		padding-top: calc(48px + var(--lpf-torn-edge-overlap));
	}

	.lpf-kegelbahn-page__inner,
	.lpf-kegelbahn-page__intro--reversed .lpf-kegelbahn-page__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1.25rem;
	}

	.lpf-kegelbahn-page__content {
		order: 1;
	}

	.lpf-kegelbahn-page__media {
		order: 2;
	}

	.lpf-kegelbahn-page__intro--reversed .lpf-kegelbahn-page__media {
		order: -1;
	}

	.lpf-kegelbahn-page__intro--reversed .lpf-kegelbahn-page__content {
		order: 1;
	}

	.lpf-kegelbahn-page__media img {
		width: 100%;
		height: auto;
		max-height: none;
		aspect-ratio: 1 / 1;
		object-fit: cover;
	}

	.lpf-kegelbahn-page__gallery {
		margin-top: 2.5rem;
		padding: 0 1.25rem 100px;
	}

	.lpf-kegelbahn-page__gallery--three .lpf-kegelbahn-page__gallery-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.lpf-kegelbahn-page__gallery--four .lpf-kegelbahn-page__gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.lpf-kegelbahn-page__gallery-item img {
		height: auto;
		aspect-ratio: 4 / 5;
		border-width: 6px;
	}
}
