/**
 * Feature Cards style: Photo Blocks
 *
 * A wrapping three-up of photograph, title and copy. Nothing here is a card: the blocks sit
 * on the page color with no surface, so the only shared piece is the intro above them.
 */

.module.feature-cards.style-blocks .container {
	row-gap: 0;
}

.module.feature-cards.style-blocks .intro {
	gap: var(--text-spacing-xsmall);
	grid-column: 2 / span 10;
}

.module.feature-cards.style-blocks .cards {
	grid-column: 1 / -1;
	row-gap: var(--text-spacing-xxlarge);
}

.module.feature-cards.style-blocks .cards > li {
	display: flex;
	flex-direction: column;
	gap: var(--text-spacing-small);
	grid-column: span 4;
}

.module.feature-cards.style-blocks .media {
	aspect-ratio: 3 / 2;
	border-radius: 10px;
}

.module.feature-cards.style-blocks .text {
	display: flex;
	flex-direction: column;
	gap: var(--text-spacing-xxsmall);
}

.module.feature-cards.style-blocks .content-styles > :first-child {
	margin-top: 0;
}

.module.feature-cards.style-blocks .content-styles > :last-child {
	margin-bottom: 0;
}

.module.feature-cards.style-blocks .fine-print {
	grid-column: 1 / -1;
	margin-top: var(--text-spacing-xlarge);
	text-align: center;
}

.module.feature-cards.style-blocks .fine-print > * {
	margin-block: 0;
}

/***************************************************************************************************************************************************************************************/
/* MQ MAX-WIDTH 1200 - Smaller Desktop Sizes / Larger Tablet Sizes */
/***************************************************************************************************************************************************************************************/

@media only screen and (max-width: calc(1200rem/16)) {

	.module.feature-cards.style-blocks .intro {
		grid-column: 1 / -1;
	}

}

/***************************************************************************************************************************************************************************************/
/* MQ MAX-WIDTH 950 - Tablet Sizes */
/***************************************************************************************************************************************************************************************/

@media only screen and (max-width: calc(950rem/16)) {

	/* Rows rather than a two-up: three blocks over two columns leaves the last one alone beside a
	   gap. Each takes the container and splits it 40/60, photograph to copy. */
	.module.feature-cards.style-blocks .cards {
		row-gap: var(--text-spacing-large);
	}

	.module.feature-cards.style-blocks .cards > li {
		align-items: center;
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: 40fr 60fr;
	}

}

/***************************************************************************************************************************************************************************************/
/* MQ MAX-WIDTH 650 - Mobile Sizes */
/***************************************************************************************************************************************************************************************/

@media only screen and (max-width: calc(650rem/16)) {

	.module.feature-cards.style-blocks .cards > li {
		gap: var(--text-spacing-xsmall);
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr);
	}

	.module.feature-cards.style-blocks .text {
		gap: 0;
	}

}
