/**
 * Home "Disease area focus": a card over a centered, full-bleed background image.
 * Locked at 1440px wide and centered; the image keeps its proportions (object-fit, never stretched).
 * Markup: template-parts/v2/sections/home-disease.php
 */
@layer sections {
	.lb-v2-disease {
		position: relative;
		isolation: isolate;
		max-width: var(--lb-v2-banner-max);
		margin-inline: auto;
		padding-block: var(--lb-v2-section-space-sm); /* 75px: image shows above and below the card */
		background: var(--lb-v2-color-grey-200);
	}

	.lb-v2-disease__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		display: block;
	}

	.lb-v2-disease__media img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	/* Mobile and tablet: the card sits inside the page gutters over the image. */
	.lb-v2-disease__card {
		position: relative;
		display: grid;
		justify-items: start;
		gap: var(--lb-v2-stack-gap);
		padding: var(--lb-v2-space-7) 1.25rem; /* 40px / 20px */
		background: var(--lb-v2-color-grey-100);
	}

	.lb-v2-disease__links {
		display: grid;
		justify-items: start;
		gap: 1.25rem; /* 20px */
		margin-top: calc(var(--lb-v2-cta-gap) - var(--lb-v2-stack-gap));
	}

	@media (min-width: 80rem) {
		.lb-v2-disease {
			display: grid;
			align-items: center;
			min-height: 46.75rem; /* 748px: the desktop image height, so a 1440 × 748 image is never scaled */
			padding-block: var(--lb-v2-section-space);
		}

		.lb-v2-disease__card {
			align-content: start;
			max-width: 40.0625rem; /* 641px */
			min-height: 34.25rem; /* 548px */
			padding: var(--lb-v2-space-10);
			border-radius: var(--lb-v2-radius-lg);
			background: var(--lb-v2-color-white);
		}

		.lb-v2-disease__links {
			gap: var(--lb-v2-space-6); /* 32px */
		}
	}
}
