/* MGH Image + Text widget – two-column layout; colors and typography from MGH design tokens via Elementor controls */
/* Figma: image 686×386px. Section padding: 100px top, 50px left/right; 10px gap image–caption */
.mgh-image-text {
	display: grid;
	grid-template-columns: 686px 1fr;
	align-items: start;
	gap: 40px;
	max-width: 100%;
	padding: 100px 50px 0 50px;
}

.mgh-image-text__media {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 10px;
}

.mgh-image-text__caption {
	margin: 0;
	line-height: 1.4;
}

/* More specific than Elementor's .elementor img so border-radius and other rules apply */
.mgh-image-text .mgh-image-text__img {
	width: 100%;
	aspect-ratio: 686 / 386;
	object-fit: cover;
	display: block;
	vertical-align: middle;
	border-radius: 8px;
}

.mgh-image-text__content {
	min-width: 0;
	--mgh-image-text-gap: 20px;
}

.mgh-image-text__title {
	margin: 0;
	line-height: 1.2;
	margin-bottom: var(--mgh-image-text-gap, 20px);
}

.mgh-image-text__description {
	margin: 0;
	line-height: 1.4;
}

/* QR / button: Desktop = QR code only, Mobile = button only (same gap as title–description) */
.mgh-image-text__qr {
	margin-top: var(--mgh-image-text-gap, 20px);
}

.mgh-image-text__qr-desktop {
	display: none; /* shown on desktop via media query */
}

.mgh-image-text__qr-mobile {
	display: block; /* hidden on desktop via media query */
}

.mgh-image-text__qr-always {
	display: block;
}

.mgh-image-text__qr-img {
	display: block;
	max-width: 160px;
	height: auto;
}

/* Reversed: desktop only – text left, image right. Mobile unchanged (image first). */
/* Desktop: show QR code. Mobile: show button. */
@media (min-width: 1280px) {
	.mgh-image-text--reversed {
		grid-template-columns: 1fr 686px;
	}
	.mgh-image-text--reversed .mgh-image-text__media {
		order: 2;
	}
	.mgh-image-text--reversed .mgh-image-text__content {
		order: 1;
	}

	.mgh-image-text__qr-desktop {
		display: block;
	}
	.mgh-image-text__qr-mobile {
		display: none;
	}
	.mgh-image-text__qr-always {
		display: block;
	}
}

/* Mobile/stacked: 0–1279px; content max 884px, gap 20, 60px top / 20px left-right */
@media (max-width: 1279px) {
	.mgh-image-text {
		grid-template-columns: 1fr;
		gap: 20px;
		max-width: 884px;
		margin-left: auto;
		margin-right: auto;
		padding: 60px 20px 0;
	}
}
