/**
 * Event list.
 *
 * brand.css .event-list / .event. A stacked list of wide rows, so the grid the
 * parent widget draws is forced to one column here regardless of the column
 * setting on the instance.
 */

.nysf-event-list .inlingua-con-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.nysf-event {
	display: flex;
	background: var(--nysf-card);
	border: 1px solid var(--nysf-line);
	border-radius: var(--nysf-r-lg);
	overflow: hidden;
	box-shadow: var(--nysf-shadow-sm);
	transition: 0.25s;
}

.nysf-event:hover,
.nysf-event:focus-within {
	transform: translateY(-4px);
}

/* brand.css .event .date */
.nysf-event__date {
	flex: 0 0 110px;
	background: var(--nysf-navy);
	color: var(--nysf-light);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.nysf-event__date b {
	font-family: var(--nysf-display);
	font-size: 40px;
	line-height: 1;
	color: var(--nysf-gold);
}

.nysf-event__date span {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 4px;
}

/*
 * The photo must not drive the row height.
 *
 * With the image in normal flow, `height: 100%` cannot resolve during
 * intrinsic sizing (the row's height depends on its children), so it falls
 * back to auto and the image contributes its natural height. The row then
 * stretched to the photo instead of the copy, leaving a block of empty card
 * under the button. Taking the image out of flow makes the info column the
 * only thing that sets the height, which is what brand.css assumes.
 */
.nysf-event__media {
	flex: 0 0 220px;
	position: relative;
	overflow: hidden;
}

.nysf-event__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nysf-event__info {
	flex: 1;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
	min-height: 168px;
}

.nysf-event__title {
	font-family: var(--nysf-display);
	font-size: 22px;
	line-height: 1.2;
	color: var(--nysf-navy);
	margin: 0 0 8px;
}

.nysf-event__meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	color: var(--nysf-ink-soft);
	font-size: 13.5px;
	margin-bottom: 12px;
}

.nysf-event__meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

/*
 * brand.css uses btn-navy btn-sm here, so the row's button is the shared
 * small variant rather than a local size override.
 */
.nysf-event__cta {
	align-self: flex-start;
}

@media (max-width: 780px) {
	.nysf-event {
		flex-wrap: wrap;
	}

	.nysf-event__date {
		flex: 0 0 90px;
	}

	.nysf-event__media {
		flex: 1 1 160px;
		min-height: 140px;
	}

	.nysf-event__info {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nysf-event {
		transition: none;
	}

	.nysf-event:hover,
	.nysf-event:focus-within {
		transform: none;
	}
}
