.kst-timeline {
	--kst-gap: 36px;
	--kst-dot: 17px;
	--kst-line-w: 4px;
	--kst-arrow-top: 90px;
	--kst-overlap: 0px;
	position: relative;
}
.kst-timeline-line {
	position: absolute;
	left: 50%;
	top: var(--kst-arrow-top);
	bottom: 0;
	width: var(--kst-line-w);
	transform: translateX(-50%);
	background-color: #D4C832;
	border-radius: var(--kst-line-w);
	overflow: hidden;
	z-index: 0;
}
.kst-timeline-fill {
	width: 100%;
	height: 0;
	background-color: #002451;
	transition: height .15s linear;
}
.kst-timeline-entry {
	position: relative;
	width: 50%;
	margin-bottom: 40px;
	box-sizing: border-box;
}
.kst-timeline-entry:last-child { margin-bottom: 0; }
.kst-timeline-entry + .kst-timeline-entry { margin-top: calc(-1 * var(--kst-overlap)); }
.kst-timeline-entry.kst-left  { padding-right: var(--kst-gap); }
.kst-timeline-entry.kst-right { margin-left: 50%; padding-left: var(--kst-gap); }

.kst-story {
	position: relative;
	background-color: #fff;
	border-radius: 20px;
	padding: 20px;
	text-align: center;
	z-index: 1;
}
/* little arrow pointing at the line */
.kst-story::before {
	content: '';
	position: absolute;
	top: calc(var(--kst-arrow-top) - 8px);
	width: 16px;
	height: 16px;
	background: inherit;
	transform: rotate(45deg);
}
.kst-left  .kst-story::before { right: -7px; }
.kst-right .kst-story::before { left: -7px; }

.kst-timeline-dot {
	position: absolute;
	top: calc(var(--kst-arrow-top) - var(--kst-dot) / 2);
	width: var(--kst-dot);
	height: var(--kst-dot);
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: calc(var(--kst-dot) * .55);
	z-index: 2;
	transition: background-color .2s ease;
}
.kst-left  .kst-timeline-dot { right: calc(var(--kst-dot) / -2); }
.kst-right .kst-timeline-dot { left: calc(var(--kst-dot) / -2); }
.kst-timeline-dot svg { width: 1em; height: 1em; }

.kst-timeline-media { line-height: 0; margin-bottom: 14px; }
.kst-timeline-media img { display: inline-block; max-width: 150px; height: auto; }
.kst-timeline-year { font-weight: 600; margin-bottom: 8px; }
.kst-timeline-title {
	margin: 0;
	padding-bottom: 9px;
	font-size: 24px;
	font-weight: 700;
	line-height: 25.6px;
	color: #002451;
}
.kst-timeline-description { font-size: 15px; line-height: 25.6px; color: #002451; margin-bottom: 5px; }
.kst-timeline-description p:last-child { margin-bottom: 0; }

/* Mobile: single column, line on the left */
@media (max-width: 767px) {
	.kst-timeline { --kst-gap: 28px; }
	.kst-timeline-line { left: 10px; transform: none; }
	.kst-timeline-entry,
	.kst-timeline-entry.kst-left,
	.kst-timeline-entry.kst-right {
		width: 100%;
		margin-left: 0;
		padding-left: calc(12px + var(--kst-gap));
		padding-right: 0;
	}
	.kst-timeline-entry + .kst-timeline-entry { margin-top: 0; }
	.kst-left .kst-timeline-dot,
	.kst-right .kst-timeline-dot { left: calc(12px - var(--kst-dot) / 2); right: auto; }
	.kst-left .kst-story::before,
	.kst-right .kst-story::before { left: -7px; right: auto; }
}
