.roundhouse-timeline {
	margin: 0 auto;
	width: 100%;
}

.roundhouse-timeline__intro {
	margin: 0 0 2.75rem;
	text-align: left;
}

.roundhouse-timeline__swipe-hint {
	display: none;
}

.roundhouse-timeline__controls {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin: 0 0 0.8rem;
}

.roundhouse-timeline__control {
	appearance: none;
	background: #272727;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	height: 2.25rem;
	line-height: 1;
	padding: 0;
	width: 2.25rem;
}

.roundhouse-timeline__control:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.roundhouse-timeline__items {
	overflow-x: auto;
	padding: 0 0.75rem;
	scroll-behavior: smooth;
}

.roundhouse-timeline__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(220px, 290px);
	gap: clamp(1.5rem, 3vw, 3.5rem);
	position: relative;
	width: max-content;
}

.roundhouse-timeline__track::before {
	background: #4b4b4b;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-1px);
}

.roundhouse-timeline__item {
	display: grid;
	grid-template-rows: minmax(120px, auto) auto 110px auto minmax(120px, auto);
	min-width: 220px;
	position: relative;
	z-index: 1;
	justify-items: stretch;
}

.roundhouse-timeline__item--top .roundhouse-timeline__card {
	grid-row: 1;
	align-self: end;
	margin: 0 0 0.9rem;
}

.roundhouse-timeline__item--top .roundhouse-timeline__date {
	grid-row: 2;
	align-self: start;
	margin: 0;
}

.roundhouse-timeline__item--bottom .roundhouse-timeline__date {
	grid-row: 4;
	align-self: start;
	margin: 0.9rem 0 0;
}

.roundhouse-timeline__item--bottom .roundhouse-timeline__card {
	grid-row: 5;
	margin: 0.9rem 0 0;
}

.roundhouse-timeline__date {
	color: #000;
	font-size: clamp(2.05rem, 2.8vw, 2.6rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 0.95;
	padding: 0;
	text-align: left;
}

.roundhouse-timeline__rail {
	grid-row: 3;
	position: relative;
	width: 1px;
	justify-self: start;
}

.roundhouse-timeline__rail::before {
	background: #4b4b4b;
	content: "";
	display: block;
	left: 0;
	position: absolute;
	transform: none;
	width: 1px;
}

.roundhouse-timeline__dot {
	display: none;
}

.roundhouse-timeline__item--top .roundhouse-timeline__rail::before {
	top: 0;
	height: 50%;
}

.roundhouse-timeline__item--bottom .roundhouse-timeline__rail::before {
	bottom: 0;
	height: 50%;
}

.roundhouse-timeline__card {
	border-left: 1px solid #4b4b4b;
	padding: 0.1rem 0 0.1rem 1rem;
	width: min(100%, 290px);
}

.roundhouse-timeline__image {
	margin: 0 0 0.85rem;
}

.roundhouse-timeline__image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.roundhouse-timeline__text p {
	font-size: clamp(1.05rem, 1.2vw, 1.35rem);
	line-height: 1.35;
	margin: 0;
}

@media (max-width: 781px) {
	.roundhouse-timeline__controls {
		display: none;
	}

	.roundhouse-timeline__swipe-hint {
		display: none;
	}

	.roundhouse-timeline__items {
		position: relative;
		scroll-snap-type: x mandatory;
	}

	.roundhouse-timeline__items::after {
		background: linear-gradient(90deg, rgba(255, 255, 255, 0), #f5f5f3 82%);
		bottom: 0;
		content: "";
		pointer-events: none;
		position: absolute;
		right: 0;
		top: 0;
		width: 2.5rem;
	}

	.roundhouse-timeline__track {
		grid-auto-columns: minmax(240px, 82vw);
	}

	.roundhouse-timeline__item {
		scroll-snap-align: start;
	}

	.roundhouse-timeline__date {
		font-size: clamp(2rem, 10vw, 2.5rem);
	}

	.roundhouse-timeline__text p {
		font-size: 1rem;
	}
}

@media (min-width: 782px) {
	.roundhouse-timeline__track {
		grid-auto-columns: minmax(250px, 310px);
	}
}
