.product-hero {
	--_gap: 1rem;
	--_space-top: 3rem;
	--_image-overflow: 0.25;
	--_content-background-overflow: 1px;
	--_image-max-width: 450px;

	position: relative;
	isolation: isolate;
	color: #FFF;
}

.product-hero--no-image {
	--_content-background-overflow: 1px !important;
}

.product-hero__grid {
	display: grid;
	grid-template-columns: 1fr minmax(auto, var(--_image-max-width));
	gap: 1rem;
	padding-top: var(--_space-top);
}

.product-hero--no-image .product-hero__grid {
	padding-bottom: 0;
}

.product-hero__content {
	width: 100%;
	padding-top: 3rem;
	padding-bottom: 7rem;
	position: relative;
}

.product-hero :is(h1, p) {
	animation: producthero__textFadeIn 0.3s ease-in-out;
}

.product-hero__content::before {
	content: '';
	position: absolute;
	z-index: -1;
	bottom: calc(var(--_content-background-overflow) * -1);
	right: 0;
	width: 100vw;
	height: calc(100% + var(--_space-top) + var(--_content-background-overflow));
	background: #000;
	box-shadow: 100vw 0 0 0 #000;
}

.product-hero__content h1 {
	text-wrap: balance;
}
.product-hero__content p {
	text-wrap: balance;
	font-size: 1.25rem;
}

.product-hero__link {
	text-decoration: none;
	font-weight: bold;
	font-size: 1.25rem;
	display: inline-flex;
	gap: 1em;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
	padding: 1em 1.5em 0.9em 1.5em;

	position: absolute;
	left: 0;
	bottom: calc(var(--_content-background-overflow) * -1);
}

.product-hero__link i {
	transform: translateY(0.1em);
}

.product-hero__image {
	width: 100%;
	/*padding-top: calc(100% * var(--_image-overflow));*/
	aspect-ratio: 1 / calc(var(--_image-overflow) - 0.5);
	position: relative;
}

.product-hero--no-image .product-hero__image {
	padding-top: 50%;
}

.product-hero__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	object-position: bottom right;
	position: absolute;
	top: 0;
	left: 0;
	animation: producthero__imageFadeIn 0.3s ease-in-out;
}

@media(min-width: 1150px) {
	.product-hero__image img {
		transform: scale(1.4);
	}
}

@media(max-width: 1150px) {
	.product-hero {
		--_content-background-overflow: 400px;
	}

	.product-hero__grid {
		grid-template-columns: 1fr;
		justify-items: end;
		padding-bottom: 0;
	}

	.product-hero__content {
		padding-bottom: 1rem;
	}

	.product-hero__content::before {
		right: 0;
	}

	.product-hero__link {
		position: static;
		margin-top: 1.5rem;
		font-size: 1rem;
	}

	.product-hero--no-image .product-hero__image {
		display: none;
	}

	.product-hero__image {
		max-width: 600px;
		padding-top: 0;
	}

	.product-hero__image img {
		position: static;
	}
}

@media(max-width: 600px) {
	.product-hero {
		--_content-background-overflow: 70vw;
	}
}

@keyframes producthero__imageFadeIn {
	from {
		opacity: 0;
		transform: translateX(30%) scale(1);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1.4);
	}
}

@keyframes producthero__textFadeIn {
	from {
		opacity: 0;
		transform: translateY(30%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
