/* ===== Audience cards: photo (if the card has an image) or gradient, text over a dark fade ===== */
.ig-aud-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.ig-aud-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	min-height: 220px;
	padding: 28px;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--light-blue));
	color: var(--wp--preset--color--white);
}
.ig-aud-card:nth-child(3n) { background: linear-gradient(135deg, var(--wp--preset--color--navy), var(--wp--preset--color--blue)); }
.ig-aud-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(12, 26, 46, 0) 20%, rgba(12, 26, 46, 0.88));
}
.ig-aud-card > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.ig-aud-card > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ig-aud-card h3 {
	color: var(--wp--preset--color--white);
	font-size: 21px;
}
/* The heading link covers the whole card. */
.ig-aud-card h3 a {
	color: inherit;
	text-decoration: none;
}
.ig-aud-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.ig-aud-card:hover h3 { color: var(--wp--preset--color--light-blue); }
.ig-aud-card > p {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	line-height: 1.5;
}
@media (min-width: 782px) {
	.ig-aud-grid { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 44px; }
}

/* Audience cards on a photo band (audience-photo, a Cover block like the photo hero). */
.ig-section.ig-audience--photo {
	min-height: 0;
	padding: 56px 0;
	color: var(--wp--preset--color--white);
}
.ig-audience--photo .wp-block-cover__inner-container { width: 100%; }
.ig-audience--photo .ig-section-head h2 { color: var(--wp--preset--color--white); }
@media (min-width: 782px) {
	.ig-section.ig-audience--photo { padding: 96px 0; }
	/* Two wide photo cards: taller, so each page's hero photo isn't cropped to a strip. */
	.ig-audience--photo .ig-aud-card { min-height: 320px; }
}

/* ig-aud-grid--cards (the homepage): white cards with the photo on top and the text below, like the Case Studies
   cards (cases-grid.css). The heading link still covers the card; hover changes colour only. */
.ig-aud-grid--cards .ig-aud-card,
.ig-aud-grid--cards .ig-aud-card:nth-child(3n) {
	justify-content: flex-start;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	transition: border-color 0.2s ease;
}
.ig-aud-grid--cards .ig-aud-card::before { content: none; }
.ig-aud-grid--cards .ig-aud-card > .wp-block-image {
	position: static;
	z-index: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
}
.ig-aud-grid--cards .ig-aud-card > .wp-block-image img { height: 100%; }
.ig-aud-grid--cards .ig-aud-card h3 {
	margin: 0;
	padding: 22px 24px 0;
	color: var(--wp--preset--color--navy);
	font-size: 21px;
}
.ig-aud-grid--cards .ig-aud-card:hover { border-color: var(--wp--preset--color--blue); }
.ig-aud-grid--cards .ig-aud-card:hover h3 { color: var(--wp--preset--color--blue); }
.ig-aud-grid--cards .ig-aud-card > p {
	margin: 0;
	padding: 8px 24px 24px;
	color: var(--wp--custom--color--text-soft);
	font-size: 15px;
}
