.lpf-catering-page {
	position: relative;
	z-index: 2;
	overflow-x: hidden;
	overflow-y: visible;
	background-color: var(--lpf-color-intro-bg);
	margin-top: calc(-1 * var(--lpf-torn-edge-overlap));
	margin-bottom: calc(-1 * var(--lpf-torn-edge-overlap));
	padding: calc(60px + var(--lpf-torn-edge-overlap)) 0;
	clip-path: var(--lpf-torn-edge-clip);
	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-catering-page::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	clip-path: var(--lpf-torn-edge-clip);
	background:
		var(--lpf-torn-edge-highlight-top),
		var(--lpf-torn-edge-shadow-top),
		var(--lpf-torn-edge-shadow-bottom);
}

.lpf-catering-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-catering-page__intro {
	position: relative;
	z-index: 2;
}

.lpf-catering-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-catering-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-catering-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-catering-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-catering-page__text p {
	margin: 0;
}

.lpf-catering-page__text p + p {
	margin-top: 1rem;
}

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

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

.lpf-catering-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-catering-page .lpf-btn:hover,
.lpf-catering-page .lpf-btn:focus-visible {
	background-color: #7d3e22;
	border-color: #7d3e22;
	color: #ffffff;
}

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

.lpf-catering-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-catering-page__gallery {
	position: relative;
	z-index: 2;
	max-width: 1600px;
	margin: 4rem auto 0;
	padding: 0 1.5rem;
	overflow: visible;
}

.lpf-catering-page__gallery .ig-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	overflow: visible;
}

.lpf-catering-page__gallery .ig-gallery__item {
	margin: 0;
	overflow: visible;
}

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

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 1) .ig-gallery__image {
	transform: rotate(2deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 2) .ig-gallery__image {
	transform: rotate(-1.6deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 3) .ig-gallery__image {
	transform: rotate(1.4deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 4) .ig-gallery__image {
	transform: rotate(-2.2deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 5) .ig-gallery__image {
	transform: rotate(-1.2deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 6) .ig-gallery__image {
	transform: rotate(1.8deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 7) .ig-gallery__image {
	transform: rotate(-0.8deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 8) .ig-gallery__image {
	transform: rotate(2.4deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 9) .ig-gallery__image {
	transform: rotate(-2deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 10) .ig-gallery__image {
	transform: rotate(1.1deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 11) .ig-gallery__image {
	transform: rotate(-1.4deg);
}

.lpf-catering-page__gallery .ig-gallery__item:nth-of-type(12n + 12) .ig-gallery__image {
	transform: rotate(1.6deg);
}

@media (max-width: 900px) {
	.lpf-catering-page {
		padding: calc(48px + var(--lpf-torn-edge-overlap)) 0;
	}

	.lpf-catering-page__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1.25rem;
	}

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

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

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

	.lpf-catering-page__gallery {
		margin-top: 2.5rem;
		padding: 0 1.25rem;
	}

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

	.lpf-catering-page__gallery .ig-gallery__image {
		border-width: 6px;
	}
}
