/**
 * Post Hero pattern — layout refinements.
 *
 * Matches the original op-post-hero block sizing and spacing.
 * The warm background, bleed, and padding come from the pattern's
 * inline block attributes.
 */

.op-post-hero {
	padding-left: var(--op-section-px);
	padding-right: var(--op-section-px);
	position: relative;
	isolation: isolate;
	overflow: visible;
}

.op-post-hero:not(.alignfull)::after {
	content: '';
	position: absolute;
	inset: 0;
	left: calc(50% - 50vw);
	width: 100vw;
	background-color: inherit;
	z-index: -1;
	pointer-events: none;
}

.op-post-hero__headline {
	font-family: var(--wp--preset--font-family--heading);
}

.op-post-hero__image img {
	aspect-ratio: 2 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

/* ─── Responsive ─── */

@media (max-width: 1279px) {
	.op-post-hero .op-post-hero__headline {
		font-size: var(--wp--preset--font-size--3-xl) !important;
	}
}

@media (max-width: 1023px) {
	.op-post-hero {
		padding-top: 6rem !important;
	}
}

@media (max-width: 767px) {
	.op-post-hero .op-post-hero__headline {
		font-size: 2rem !important;
	}
}
