/**
 * The Cast grid.
 *
 * Colour is inherited, not declared: this drops onto a dark Divi page today and
 * could land on a light one tomorrow. Only structure, rhythm and the circular
 * portrait crop live here — matching how the cast already reads on event pages.
 */

.mpr-cast-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--mpr-cast-cols, 4), minmax(0, 1fr));
	gap: 40px 28px;
}

.mpr-cast-card {
	margin: 0;
	text-align: center;
}

.mpr-cast-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* ─── Portrait ─────────────────────────────────────────────────────────── */

.mpr-cast-photo {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 auto 16px;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 50%;
	overflow: hidden;
}

.mpr-cast-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.mpr-cast-link:hover .mpr-cast-photo img,
.mpr-cast-link:focus-visible .mpr-cast-photo img {
	transform: scale(1.04);
}

/* A monster with no photo yet keeps its place in the grid rather than
   collapsing the row into a ragged line. */
.mpr-cast-photo-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: currentColor;
	opacity: .08;
}

/* ─── Text ─────────────────────────────────────────────────────────────── */

.mpr-cast-body {
	display: block;
}

.mpr-cast-title {
	display: block;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.2;
}

.mpr-cast-role {
	display: block;
	margin-top: 4px;
	font-size: .8em;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .65;
}

.mpr-cast-tagline {
	display: block;
	margin-top: 8px;
	font-size: .9em;
	line-height: 1.45;
	opacity: .8;
}

.mpr-cast-empty {
	opacity: .7;
}

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.mpr-cast-grid {
		grid-template-columns: repeat(min(var(--mpr-cast-cols, 4), 3), minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.mpr-cast-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}
}

@media (max-width: 480px) {
	.mpr-cast-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 16px;
	}

	.mpr-cast-tagline {
		display: none; /* Two columns on a phone leaves no room for prose. */
	}
}
