/**
 * Metropolis CTA Band.
 */

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: end;
	gap: 32px 64px;
	padding-block: clamp(64px, 8vw, 112px);
}

.cta-band__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 4.4vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.cta-band__text {
	max-width: 48ch;
	margin-top: 20px;
	color: var(--on-fascia-soft);
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px 28px;
}

/* Centred layout: a single column, heading, line and actions in the middle. */
.cta-band--centred .cta-band__inner {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
}

.cta-band--centred .cta-band__title {
	max-width: 20ch;
	font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.cta-band--centred .cta-band__text {
	margin-inline: auto;
}

.cta-band--centred .cta-band__actions {
	justify-content: center;
}

/* Photo layout: heading, text and actions on the left; a photo fills the right column. */
.cta-band--image .cta-band__inner {
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	align-items: center;
	gap: 40px clamp(40px, 6vw, 96px);
}

.cta-band--image .cta-band__actions {
	justify-content: flex-start;
	margin-top: 32px;
}

.cta-band__media {
	margin: 0;
}

.cta-band__img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
}

@media (max-width: 960px) {
	.cta-band__inner,
	.cta-band--image .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
	.cta-band--centred .cta-band__actions { justify-content: center; }
	.cta-band__actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
	.cta-band__actions .btn { width: 100%; }
}
