/* ============================================================
   ML Past Events — gallery (dark spotlight + selectable grid)
   v2.2.0
   ============================================================ */

/* Empty state */
.ml-past-events__empty {
	max-width: 720px;
	margin: 24px auto 80px;
	padding: 30px;
	text-align: center;
	color: #cbd0d6;
	background: #2c2f33;
	border-radius: 16px;
}

/* ---- The dark "stage" panel ---- */
.ml-pe-gallery {
	box-sizing: border-box;
	/* Break out of the narrow 780px page column to a wider, viewport-centred block */
	width: min(1280px, 94vw);
	margin: 8px 0 72px;
	margin-left: calc(50% - min(640px, 47vw));
	padding: clamp(22px, 4vw, 52px);
	background: linear-gradient(180deg, #34373c 0%, #292b2f 100%);
	border-radius: 20px;
	color: #eceef0;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.ml-pe-gallery__intro {
	margin: 0 0 clamp(18px, 3vw, 30px);
	font-style: italic;
	font-size: clamp(15px, 1.6vw, 18px);
	color: #aeb4bb;
	text-align: center;
	letter-spacing: 0.2px;
}

/* ---- Spotlight (featured / selected event) ---- */
.ml-pe-spotlight {
	display: grid;
	grid-template-columns: minmax(180px, 300px) 1fr;
	gap: clamp(20px, 3.5vw, 48px);
	align-items: start;
	padding-bottom: clamp(28px, 4vw, 44px);
	margin-bottom: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ml-pe-spotlight__body {
	min-width: 0;
}

.ml-pe-spotlight__media {
	width: 100%;
}

.ml-pe-spotlight__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 14px;
	background: #1f2124;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ml-pe-spotlight__img--blank {
	background: linear-gradient(135deg, #3c4047, #2b2e33);
}

.ml-pe-spotlight__topic {
	margin: 0 0 14px;
	font-size: clamp(24px, 3.2vw, 40px);
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: -0.5px;
	color: #f4f6f7;
	overflow-wrap: break-word;
}

.ml-pe-spotlight__hosted {
	font-size: clamp(14px, 1.5vw, 16px);
	color: #b6bcc3;
	margin-bottom: 18px;
}

.ml-pe-spotlight__summary,
.ml-pe-spotlight__bio {
	font-size: clamp(14px, 1.5vw, 16px);
	line-height: 1.65;
	color: #cdd2d8;
	margin: 0 0 16px;
	overflow-wrap: break-word;
}

.ml-pe-spotlight__readmore {
	color: #57d999;
	text-decoration: none;
	font-weight: 600;
}

.ml-pe-spotlight__readmore:hover {
	text-decoration: underline;
}

.ml-pe-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 12px 26px;
	background: #27ae60;
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.ml-pe-btn:hover {
	background: #2ecc71;
	transform: translateY(-1px);
}

.ml-pe-btn.is-open {
	background: #4a4f56;
}

.ml-pe-btn.is-open:hover {
	background: #565c64;
}

/* Watch button + the recording's description, side by side */
.ml-pe-spotlight__actions {
	display: flex;
	align-items: flex-start;
	gap: clamp(16px, 2.5vw, 32px);
	margin-top: 6px;
}

.ml-pe-spotlight__actions .ml-pe-btn {
	margin-top: 0;
	flex: 0 0 auto;
}

.ml-pe-spotlight__vdesc {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(13px, 1.45vw, 15px);
	line-height: 1.6;
	color: #b6bcc3;
	overflow-wrap: break-word;
}

.ml-pe-spotlight__player {
	margin-top: 22px;
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.ml-pe-spotlight__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ml-pe-spotlight__date {
	margin-top: 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #6fe0a6;
}

/* ---- The gallery grid ---- */
.ml-pe-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: clamp(16px, 2vw, 26px);
}

.ml-pe-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	text-align: center;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
}

.ml-pe-tile[hidden] {
	display: none;
}

.ml-pe-tile__media {
	display: block;
	position: relative;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ml-pe-tile__img,
.ml-pe-tile__img--blank {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ml-pe-tile__img--blank {
	background: linear-gradient(135deg, #3c4047, #2b2e33);
}

.ml-pe-tile:hover .ml-pe-tile__media {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.ml-pe-tile.is-active .ml-pe-tile__media {
	outline: 3px solid #2ecc71;
	outline-offset: 2px;
}

.ml-pe-tile:focus-visible {
	outline: none;
}

.ml-pe-tile:focus-visible .ml-pe-tile__media {
	outline: 3px solid #2ecc71;
	outline-offset: 2px;
}

.ml-pe-tile__name {
	font-size: 15px;
	font-weight: 600;
	color: #eef0f2;
	line-height: 1.25;
}

.ml-pe-tile__topic {
	font-size: 12.5px;
	line-height: 1.4;
	color: #9aa0a7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- "Meet our speakers" call to action ---- */
.ml-pe-gallery__cta {
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.ml-pe-cta-btn {
	display: inline-block;
	padding: 13px 30px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: #eceef0;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ml-pe-cta-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.ml-pe-spotlight {
		grid-template-columns: 1fr;
	}
	.ml-pe-spotlight__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.ml-pe-spotlight__media {
		max-width: 220px;
	}
	.ml-pe-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-pe-btn,
	.ml-pe-cta-btn,
	.ml-pe-tile__media {
		transition: none;
	}
}
