.page-template-default .content-wrap {
	padding: 40px 90px 0;
}

.ht-timeline {
	--ht-bg:      #efe9e4;
	--ht-text:    #2F2F2F;
	--ht-accent:  #BF0909;
	--ht-rail:    rgba(191, 9, 9, 0.28);

	--ht-font-body:    'Poppins', 'Open Sans', system-ui, sans-serif;
	--ht-font-display: 'Poppins', 'Neutra', 'Open Sans', sans-serif;

	font-family: var(--ht-font-body);
	color: var(--ht-text);

	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left:  calc(50% - 50vw);
	margin-right: calc(50% - 50vw);

	background: var(--ht-bg);
	overflow: hidden;

	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	padding: 4rem 0 1rem;
}

.ht-timeline__bg-year {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.ht-timeline__bg-digits {
	display: flex;
	font-family: var(--ht-font-display);
	font-weight: 700;
	font-size: clamp(140px, 26vw, 460px);
	line-height: 1;
	color: var(--ht-accent);
	opacity: 0.1;
	letter-spacing: -0.02em;
	user-select: none;
}

.ht-timeline__bg-digit {
	display: inline-block;
	height: 1em;
	width: 0.58em;
	overflow: hidden;
	position: relative;
	text-align: center;
	transition: width 400ms ease;
}

.ht-timeline__bg-digit.is-hidden { width: 0; }

.ht-timeline__bg-strip {
	display: flex;
	flex-direction: column;
	transition: transform 800ms cubic-bezier(0.55, 0.085, 0, 0.99);
	will-change: transform;
}

.ht-timeline__bg-strip > span {
	display: block;
	height: 1em;
	line-height: 1;
}

.ht-timeline__content {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	height: 350px;
	width: 100%;
}

.ht-timeline__panel {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(1280px, 94vw);
	height: 100%;
	pointer-events: none;
}

.ht-timeline__panel.is-active { pointer-events: auto; }

.ht-timeline__panel-grid {
	display: grid;
	grid-template-columns: minmax(360px, 50%) minmax(0, 1fr);
	gap: 3rem;
	align-items: stretch;
	text-align: left;
	height: 350px;
}

.ht-timeline__panel.has-no-images .ht-timeline__panel-grid {
	grid-template-columns: minmax(0, 1fr);
	max-width: 820px;
	margin: 0 auto;
	height: auto;
	max-height: 350px;
}

@media (max-width: 720px) {
	
	.ht-timeline {
		padding-top: 2rem;
	}
	.ht-timeline__content {
		height: auto;
		min-height: 600px;
	}
	.ht-timeline__panel {
		height: 100%;
	}
	.ht-timeline__panel-grid {
		grid-template-columns: 1fr;
		grid-template-rows: 220px minmax(0, 1fr);
		height: 100%;
		max-height: none;
		gap: 1.25rem;
	}
	.ht-timeline__panel.has-no-images .ht-timeline__panel-grid {
		grid-template-rows: minmax(0, 1fr);
		max-height: none;
	}
	.ht-timeline__panel-images,
	.ht-timeline__panel-image {
		width: 100%;
		height: 100%;
	}
	
	.ht-timeline__bg-digits {
		font-size: clamp(70px, 22vw, 160px);
		opacity: 0.08;
	}
	
	.page-template-default .content-wrap {
		padding: 24px 16px 0;
	}
}

.ht-timeline__panel-images,
.ht-timeline__panel-title,
.ht-timeline__panel-divider,
.ht-timeline__panel-body {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 380ms ease,
		transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-timeline__panel.is-active .ht-timeline__panel-images   { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.ht-timeline__panel.is-active .ht-timeline__panel-title    { opacity: 1; transform: translateY(0); transition-delay: 180ms; }
.ht-timeline__panel.is-active .ht-timeline__panel-divider  { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.ht-timeline__panel.is-active .ht-timeline__panel-body     { opacity: 1; transform: translateY(0); transition-delay: 310ms; }

.ht-timeline__year-list-title,
.ht-timeline__year-list-items {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 380ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-timeline__year-list-divider {
	opacity: 0;
	transition: opacity 380ms ease;
}

.ht-timeline__panel--year.is-active .ht-timeline__year-list-title    { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.ht-timeline__panel--year.is-active .ht-timeline__year-list-divider  { opacity: 1; transition-delay: 170ms; }
.ht-timeline__panel--year.is-active .ht-timeline__year-list-items    { opacity: 1; transform: translateY(0); transition-delay: 220ms; }

.ht-timeline__panel-images {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.ht-timeline__panel-image {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.ht-timeline__panel-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ht-timeline__panel-text {
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 0;
}

.ht-timeline__panel-title,
.ht-timeline__panel-divider {
	flex: 0 0 auto;
}

.ht-timeline__panel-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 1rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(191, 9, 9, 0.4) transparent;
}

.ht-timeline__panel-body::-webkit-scrollbar { width: 6px; }
.ht-timeline__panel-body::-webkit-scrollbar-track { background: transparent; }
.ht-timeline__panel-body::-webkit-scrollbar-thumb {
	background: rgba(191, 9, 9, 0.4);
	border-radius: 3px;
}

.ht-timeline__panel-title {
	font-family: var(--ht-font-display);
	font-weight: 600;
	font-size: clamp(18px, 1.7vw, 24px);
	line-height: 1.25;
	letter-spacing: 0;
	margin: 0 0 0.75rem;
	color: var(--ht-text);
}

.ht-timeline__panel-divider {
	width: 48px;
	height: 2px;
	background: var(--ht-accent);
	margin: 0 0 1rem;
}

.ht-timeline__panel.has-no-images .ht-timeline__panel-divider {
	margin: 0 0 1rem;
}

.ht-timeline__panel-body {
	font-size: 15px;
	line-height: 1.75;
	color: var(--ht-text);
}

.ht-timeline__panel-body p:first-child { margin-top: 0; }
.ht-timeline__panel-body p:last-child  { margin-bottom: 0; }

.ht-timeline__panel--year { width: min(960px, 94vw); }

.ht-timeline__year-list {
	display: grid;
	grid-template-columns: auto 1px minmax(0, 1fr);
	gap: 0 2.5rem;
	align-items: center;
	text-align: left;
}

.ht-timeline__year-list-title {
	font-family: var(--ht-font-display);
	font-weight: 700;
	font-size: clamp(56px, 7vw, 104px);
	color: var(--ht-accent);
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
	padding-right: 0.5rem;
}

.ht-timeline__year-list-divider {
	width: 1px;
	background: rgba(47, 47, 47, 0.25);
	align-self: stretch;
	min-height: 140px;
}

.ht-timeline__year-list-items {
	list-style: none;
	margin: 0;
	padding: 0.6rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: rgba(239, 233, 228, 0.4);
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	border-radius: 4px;
}

.ht-timeline__year-list-items li { margin: 0; }

.ht-timeline__year-list-items a {
	display: grid;
	grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
	column-gap: 1.5rem;
	align-items: baseline;
	font-family: var(--ht-font-body);
	font-weight: 500;
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.4;
	color: var(--ht-text);
	opacity: 0.85;
	text-decoration: none;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(47, 47, 47, 0.12);
	transition: color 200ms, opacity 200ms, background 200ms;
}

.ht-timeline__year-list-items li:last-child a { border-bottom: none; }

.ht-timeline__year-list-items a:hover,
.ht-timeline__year-list-items a:focus-visible {
	opacity: 1;
	color: var(--ht-accent);
	outline: none;
}

.ht-timeline__year-list-date {
	font-family: var(--ht-font-display);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ht-accent);
	opacity: 0.85;
	white-space: nowrap;
}

.ht-timeline__year-list-text { font-weight: 500; }

@media (max-width: 720px) {
	.ht-timeline__year-list {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1rem;
	}
	.ht-timeline__year-list-divider { display: none; }
	.ht-timeline__year-list-items a {
		grid-template-columns: minmax(56px, max-content) minmax(0, 1fr);
		text-align: left;
	}
}

.ht-timeline__rail-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
}

.ht-timeline__stem {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 29px;
	height: 75px;
	width: 1px;
	background: var(--ht-rail);
	z-index: 2;
	pointer-events: none;
}

.ht-timeline__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 14%;
	pointer-events: none;
	z-index: 3;
}

.ht-timeline__fade--left {
	left: 0;
	background: linear-gradient(to right, var(--ht-bg) 0%, rgba(239, 233, 228, 0) 100%);
}

.ht-timeline__fade--right {
	right: 0;
	background: linear-gradient(to left, var(--ht-bg) 0%, rgba(239, 233, 228, 0) 100%);
}

.ht-timeline__viewport {
	overflow: hidden;
	cursor: grab;
	outline: none;
	padding: 5.6rem 0 3rem;
	position: relative;
	
	touch-action: pan-y;
}

.ht-timeline__viewport.is-dragging { cursor: grabbing; }

.ht-timeline__viewport:focus-visible {
	outline: 2px solid var(--ht-accent);
	outline-offset: 4px;
}

.ht-timeline__track {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0; 
	padding: 0 50%;
	will-change: transform;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-timeline__track.is-dragging { transition: none; }

.ht-timeline__line {
	position: absolute;
	top: 50%;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--ht-rail);
	transform: translateY(-50%);
	z-index: 0;
	pointer-events: none;
}

.ht-timeline__cell {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.ht-timeline__node {
	position: relative;
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	padding: 6px;
	cursor: pointer;
	z-index: 1;
	display: block;
	font: inherit;
	color: inherit;
}

.ht-timeline__node-dot {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ht-accent);
	box-shadow:
		0 0 0 4px var(--ht-bg),
		0 0 0 6px var(--ht-accent);
	transition:
		background 200ms ease,
		box-shadow 200ms ease,
		transform 250ms ease;
}

.ht-timeline__node:hover .ht-timeline__node-dot { transform: scale(1.12); }
.ht-timeline__node.is-active .ht-timeline__node-dot { transform: scale(1.25); }

.ht-timeline__node--minor .ht-timeline__node-dot {
	width: 12px;
	height: 12px;
	box-shadow: none;
}

.ht-timeline__node--minor.is-active .ht-timeline__node-dot {
	background: #000;
	transform: scale(1.2);
}

.ht-timeline__node--intro .ht-timeline__node-dot {
	width: 18px;
	height: 18px;
	background: transparent;
	box-shadow:
		inset 0 0 0 2px var(--ht-accent),
		0 0 0 4px var(--ht-bg),
		0 0 0 6px var(--ht-accent);
}

.ht-timeline__node--intro.is-active .ht-timeline__node-dot {
	background: var(--ht-accent);
	transform: scale(1.15);
}

.ht-timeline__intro-label {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
}

.ht-timeline__year-meta {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	pointer-events: none; 
}

.ht-timeline__year-label {
	display: inline-block;
	font-family: var(--ht-font-display);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.04em;
	color: var(--ht-text);
	white-space: nowrap;
	transition: color 200ms ease, opacity 200ms ease;
}

.ht-timeline__cell .ht-timeline__node:not(.is-active) ~ .ht-timeline__year-meta .ht-timeline__year-label {
	opacity: 0.55;
}

.ht-timeline__year-events {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 220px;
	max-width: 320px;
}

.ht-timeline__year-events li { margin: 0; }

.ht-timeline__year-events a {
	display: block;
	padding: 0.25rem 0.5rem;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ht-text);
	opacity: 0.7;
	text-decoration: none;
	border-radius: 3px;
	transition: opacity 180ms ease, background 180ms ease, color 180ms ease;
}

.ht-timeline__year-events a:hover,
.ht-timeline__year-events a:focus-visible {
	opacity: 1;
	color: var(--ht-accent);
	background: rgba(191, 9, 9, 0.06);
	outline: none;
}

.ht-timeline__empty {
	position: relative;
	z-index: 1;
	text-align: center;
	opacity: 0.6;
	padding: 4rem 0;
}

@media (prefers-reduced-motion: reduce) {
	.ht-timeline__bg-strip,
	.ht-timeline__track,
	.ht-timeline__node-dot,
	.ht-timeline__panel-images,
	.ht-timeline__panel-title,
	.ht-timeline__panel-divider,
	.ht-timeline__panel-body,
	.ht-timeline__bg-digit {
		transition-duration: 0.01ms !important;
	}
}
