/* 113 Shortcodes — current & past events */

.tri113-current-events__track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tri113-event-card {
	display: flex;
	flex-direction: column;
	background: #f4f6f8;
	border-radius: 12px;
	overflow: hidden;
}

.tri113-event-card__media {
	display: block;
	background: #d9dde1;
}

.tri113-event-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.tri113-event-card__body {
	padding: 20px 20px 24px;
}

.tri113-event-card__date {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #e02020;
}

.tri113-event-card__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.tri113-event-card__venue {
	margin: 0 0 16px;
	color: #5b6470;
	font-size: 0.95rem;
}

.tri113-event-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 16px;
	margin-top: 4px;
	width: 100%;
	justify-content: space-between;
}

.tri113-event-card__arrow {
	color: #e02020;
}

.tri113-past-events__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tri113-past-events__item {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tri113-past-events__year {
	color: #e02020;
	font-weight: 700;
	min-width: 48px;
}

.tri113-past-events__title {
	flex: 1;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	font-size: 1.05rem;
}

.tri113-past-events__empty {
	padding: 32px 0;
	text-align: center;
	color: #5b6470;
	border: 1px dashed rgba(0, 0, 0, 0.12);
	border-radius: 12px;
}

.tri113-past-events__arrow {
	color: #e02020;
	text-decoration: none;
	font-size: 1.1rem;
}

.tri113-past-events__view-all {
	text-align: right;
	margin-top: 20px;
}

.tri113-past-events__view-all a {
	color: #e02020;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.tri113-current-events__nav {
	display: none;
}

/* Mobile: current events become a navigable carousel */
@media (max-width: 782px) {
	.tri113-current-events__track {
		display: flex;
		grid-template-columns: unset;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.tri113-current-events__track::-webkit-scrollbar {
		display: none;
	}

	.tri113-event-card {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.tri113-current-events__nav {
		display: flex;
		justify-content: center;
		gap: 12px;
		margin-top: 16px;
	}

	.tri113-carousel-btn {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		border: 1px solid rgba(0, 0, 0, 0.15);
		background: #fff;
		color: #e02020;
		font-size: 1.4rem;
		line-height: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.tri113-carousel-btn:disabled {
		opacity: 0.35;
		cursor: default;
	}

	.tri113-past-events__item {
		gap: 12px;
	}
}
