/** ---------------------------------------------------------------------------
// Two-column grid wrapper
// --------------------------------------------------------------------------- **/

.ipm-wp-home-subhero {
	display: grid;
	grid-template-columns: 100%;
	gap: 1rem;
}

@media ( max-width: 600px ) {
	.ipm-wp-home-subhero {
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}
}

.ipm-wp-home-subhero .wp-block-columns-is-layout-flex {
    gap: 1rem;
}

@media ( max-width: 1023px ) {
	.ipm-wp-home-subhero .wp-block-columns-is-layout-flex {
		grid-template-columns: 0.5rem;
	}
}

/** ---------------------------------------------------------------------------
// Individual panel
// --------------------------------------------------------------------------- **/

.ipm-subhero-panel {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	aspect-ratio: 1 / 1;
	display: block;
	text-decoration: none;
}

/** Ensure <a> panels don't show default focus outline bleeding outside rounded corners **/
.ipm-subhero-panel:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

/** ---------------------------------------------------------------------------
// Full-bleed background image
// --------------------------------------------------------------------------- **/

.ipm-subhero-panel__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/** ---------------------------------------------------------------------------
// Heading overlay (optional — only rendered when panel_heading is set)
// --------------------------------------------------------------------------- **/

.ipm-subhero-panel__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 20px 20px;
	background: rgba(0, 0, 0, 0.5);
}

.ipm-subhero-panel__heading {
	margin: 0;
	color: var(--color-white, #fff);
	font-family: "The Seasons", the-seasons, serif;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
}