/* Responsive two-image composition for the A.I.R. homepage feature.
 * Both editorial images remain uncropped and the rule is limited to the
 * existing front-featured module on the homepage. */
.home .front-featured-image {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(8px, 1vw, 15px);
	align-items: start;
	min-width: 0;
}

.home .front-featured-image > img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
}

.home .front-featured-image > img:nth-of-type(2) {
	display: block;
	margin-top: clamp(28px, 4vw, 64px);
	border: clamp(4px, 0.55vw, 8px) solid #fff;
	box-sizing: border-box;
}

.home .front-featured-image > img:nth-of-type(n + 3) {
	display: none;
}

.home .front-featured::before {
	display: none;
}

@media screen and (min-width: 921px) {
	/* The theme gives the image area only half of the page on desktop. Use a
	 * wider twelve-column canvas and overlap both landscape photographs so
	 * they read as one composition and connect with the black frame. */
	.home .front-featured-image {
		grid-column: 2 / 9;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 0;
		position: relative;
		z-index: 1;
	}

	.home .front-featured-title {
		grid-row: 1 / 3;
		align-self: end;
		padding-bottom: clamp(16px, 2vw, 28px);
		position: relative;
		z-index: 3;
	}

	.home .front-featured-image > img:first-of-type {
		grid-column: 1 / 9;
		grid-row: 1;
		z-index: 1;
	}

	.home .front-featured-image > img:nth-of-type(2) {
		grid-column: 7 / 13;
		grid-row: 1;
		z-index: 2;
		margin-top: clamp(110px, 9vw, 145px);
		border-width: clamp(7px, 0.65vw, 10px);
	}
}

@media screen and (max-width: 520px) {
	.home .front-featured {
		grid-template-rows: auto auto auto;
		row-gap: 20px;
	}

	.home .front-featured-title {
		grid-row: 1;
	}

	.home .front-featured-image {
		grid-column: 2 / 14;
		grid-row: 2;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.home .front-featured-content {
		grid-row: 3;
	}

	.home .front-featured-image > img:first-of-type {
		grid-column: 1;
		width: 88%;
		justify-self: start;
	}

	.home .front-featured-image > img:nth-of-type(2) {
		grid-column: 1;
		width: 88%;
		margin-top: -8vw;
		justify-self: end;
		border-width: 5px;
	}
}
