/* OSSI Two Promo Blocks. Base look; every value here can be overridden from the Elementor widget controls. */

.ossi-ed {
	width: 100%;
	max-width: 1000px;
	margin-inline: auto;
	text-align: center;
}

.ossi-ed__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.ossi-ed .ossi-ed__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.ossi-ed .ossi-ed__label {
	margin: 0 0 10px;
	padding: 0;
	color: #000;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ossi-ed .ossi-ed__heading {
	margin: 0 0 24px;
	padding: 0;
	color: #000;
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

/* Pushed to the bottom so both images line up even when one heading wraps onto more lines. */
.ossi-ed__media {
	margin-top: auto;
	overflow: hidden;
}

.ossi-ed .ossi-ed__img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Both images share one aspect ratio (set inline by the widget); the taller image is cropped to fit. */
.ossi-ed--matched .ossi-ed__media {
	aspect-ratio: var(--ossi-ed-ratio);
}

.ossi-ed--matched .ossi-ed__img {
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.ossi-ed__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ossi-ed .ossi-ed__heading {
		font-size: 22px;
	}
}
