/* Solo acts: photo cards, the chosen one opens wide */
.act-cards {
	--cards-h: clamp(420px, 62vh, 600px);
	--cards-gap: 10px;
}
.act-cards__row { display: flex; gap: var(--cards-gap); height: var(--cards-h); }
.act-cards__card {
	position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
	background: var(--c-text); color: var(--c-on-photo); cursor: pointer;
	transition: flex-grow .55s var(--ease);
}
.act-cards__card.is-open { flex-grow: 3.4; cursor: default; }
.act-cards__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.act-cards__card:hover .act-cards__photo { transform: scale(1.03); }
.act-cards__card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 48%);
}
.act-cards__label { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 4px; justify-items: start; }
.act-cards__name {
	font-size: 19px; letter-spacing: var(--ls-title); color: inherit; white-space: nowrap;
}
.act-cards__text { font-size: 15px; line-height: 1.45; max-width: 34ch; }
.act-cards__ask {
	margin-top: 8px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor;
	font-size: var(--fs-caps); font-weight: 500; letter-spacing: var(--ls-link); text-transform: uppercase;
}
.act-cards__ask:focus-visible { outline-color: var(--c-on-photo); }

/* closed cards: just the name, written upwards */
.act-cards__card:not(.is-open) .act-cards__name { writing-mode: vertical-rl; transform: rotate(180deg); }
.act-cards__card:not(.is-open) .act-cards__text,
.act-cards__card:not(.is-open) .act-cards__ask { opacity: 0; position: absolute; pointer-events: none; }
.act-cards__card.is-open .act-cards__text,
.act-cards__card.is-open .act-cards__ask { animation: act-cards-in .35s .18s both var(--ease); }
@keyframes act-cards-in { from { opacity: 0; transform: translateY(6px); } }

.act-cards__dots { display: none; }

/* Phones: swipeable row, no scrollbar, a peek of the next card, dots below */
@media (max-width: 760px) {
	.act-cards__row {
		height: auto; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
		scrollbar-width: none;
	}
	.act-cards__row::-webkit-scrollbar { display: none; }
	.act-cards__card, .act-cards__card.is-open { flex: 0 0 74vw; aspect-ratio: 3 / 4; scroll-snap-align: start; cursor: default; }
	.act-cards__card:not(.is-open) .act-cards__name { writing-mode: horizontal-tb; transform: none; }
	.act-cards__card:not(.is-open) .act-cards__text,
	.act-cards__card:not(.is-open) .act-cards__ask { opacity: 1; position: static; pointer-events: auto; }
	.act-cards__card .act-cards__text, .act-cards__card .act-cards__ask { animation: none; }

	.act-cards__dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
	.act-cards__dot {
		width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
	}
	.act-cards__dot::before {
		content: ""; width: 6px; height: 6px; border-radius: 50%;
		background: var(--c-hair-band); transition: background var(--t), transform var(--t);
	}
	.act-cards__dot.is-current::before { background: var(--c-text); transform: scale(1.15); }
}
