.cd-h-timeline,
.cd-h-timeline *,
.cd-h-timeline *::before,
.cd-h-timeline *::after {
	box-sizing: border-box;
}

.cd-h-timeline {
	--cd-color-1: hsl(0, 0%, 22%);
	--cd-color-2: #1b4551;
	--cd-color-3: hsl(0, 0%, 97%);
	--cd-line-color: hsl(0, 0%, 87.3%);
	--component-padding: 1.25em;
	color: var(--cd-color-1);
	margin-bottom: 1.25em;
	background: transparent;
	border: 0;
	font-family: "Outfit", sans-serif;
}

.cd-h-timeline ol,
.cd-h-timeline ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cd-h-timeline a {
	box-shadow: none;
}

.cd-h-timeline .container {
	width: calc(100% - (2 * var(--component-padding)));
	margin-left: auto;
	margin-right: auto;
}

.js .cd-h-timeline {
	opacity: 0;
	transition: opacity 0.2s;
}

.js .cd-h-timeline--loaded {
	opacity: 1;
}

.js .cd-h-timeline__container {
	position: relative;
	height: 100px;
	/* max-width: 800px; */
	max-width: 100%;
	background: transparent;
	border: 0;
}

.js .cd-h-timeline__dates {
	position: relative;
	height: 100%;
	margin: 0 40px;
	overflow: hidden;
	background: transparent;
	border: 0;
}

.js .cd-h-timeline__dates::before,
.js .cd-h-timeline__dates::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	height: 100%;
	width: 20px;
	pointer-events: none;
}

.js .cd-h-timeline__dates::before {
	left: 0;
	/* background: linear-gradient(to right, var(--cd-color-3), hsla(0, 0%, 97%, 0)); */
}

.js .cd-h-timeline__dates::after {
	right: 0;
	/* background: linear-gradient(to left, var(--cd-color-3), hsla(0, 0%, 97%, 0)); */
}

.js .cd-h-timeline__line {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 49px;
	height: 2px;
	width: 100%;
	background-color: var(--cd-line-color);
	transition: transform 0.4s;
}

.js .cd-h-timeline__filling-line {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-color: var(--cd-color-2);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s;
}

.js .cd-h-timeline__date {
	position: absolute;
	bottom: 0;
	z-index: 2;
	text-align: center;
	font-size: 0.8em;
	padding-bottom: 0.75em;
	color: var(--cd-color-1);
	user-select: none;
	text-decoration: none;
	background: transparent;
	border: 0;
}

.js .cd-h-timeline__date::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -5px;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	border: 2px solid var(--cd-line-color);
	background-color: var(--cd-color-3);
	transition: background-color 0.3s, border-color 0.3s;
}

.js .cd-h-timeline__date:hover::after,
.js .cd-h-timeline__date--selected::after {
	background-color: var(--cd-color-2);
	border-color: var(--cd-color-2);
}

.js .cd-h-timeline__date--selected::after {
	bottom: -7px;
	height: 17px;
	width: 17px;
}

.js .cd-h-timeline__date--selected {
	pointer-events: none;
}

.js .cd-h-timeline__date--selected .cd-h-timeline__date-dot-label {
	font-weight: 700;
}

.js .cd-h-timeline__date--older-event::after {
	border-color: var(--cd-color-2);
}

.js .cd-h-timeline__navigation {
	position: absolute;
	z-index: 1;
	top: 50%;
	transform: translateY(-50%);
	height: 34px;
	width: 34px;
	border-radius: 50%;
	border: 2px solid var(--cd-line-color);
	background: transparent;
	transition: border-color 0.3s;
}

.js .cd-h-timeline__navigation::after {
	content: "";
	position: absolute;
	height: 10px;
	width: 10px;
	top: 50%;
	left: 50%;
	border-top: 2px solid var(--cd-color-1);
	border-right: 2px solid var(--cd-color-1);
	transform: translate(-65%, -50%) rotate(45deg);
}

.js .cd-h-timeline__navigation:hover {
	border-color: var(--cd-color-2);
}

.js .cd-h-timeline__navigation--prev {
	left: 0;
	transform: translateY(-50%) rotate(180deg);
}

.js .cd-h-timeline__navigation--next {
	right: 0;
}

.js .cd-h-timeline__navigation--inactive {
	cursor: not-allowed;
}

.js .cd-h-timeline__navigation--inactive::after {
	border-color: var(--cd-line-color);
}

.js .cd-h-timeline__navigation--inactive:hover {
	border-color: var(--cd-line-color);
}

.text-replace {
	overflow: hidden;
	color: transparent;
	text-indent: 100%;
	white-space: nowrap;
}

.js .cd-h-timeline__events {
	position: relative;
	width: 100%;
	overflow: hidden;
	transition: height 0.4s;
	background: transparent;
	border: 0;
	min-height: 450px;
}

.js .cd-h-timeline__event {
	position: absolute;
	z-index: 1;
	width: 100%;
	left: 0;
	top: 0;
	transform: translateX(-100%);
	padding: 40px 5%;
	opacity: 0;
	animation-duration: 0.4s;
	animation-timing-function: ease-in-out;
	background: transparent;
	border: 0;
}

.js .cd-h-timeline__event--selected {
	position: relative;
	z-index: 2;
	opacity: 1;
	transform: translateX(0);
}

.js .cd-h-timeline__event--enter-right,
.js .cd-h-timeline__event--leave-right {
	animation-name: cd-enter-right;
}

.js .cd-h-timeline__event--enter-left,
.js .cd-h-timeline__event--leave-left {
	animation-name: cd-enter-left;
}

.js .cd-h-timeline__event--leave-right,
.js .cd-h-timeline__event--leave-left {
	animation-direction: reverse;
}

.js .cd-h-timeline__event-content {
	/* max-width: 800px; */
	max-width: 100%;
	background: transparent;
	border: 0;
}

.cd-h-timeline__event-content > *:first-child {
	margin-top: 0;
}

.cd-h-timeline__event-content > *:last-child {
	margin-bottom: 0;
}

.cd-h-timeline__event-content h1,
.cd-h-timeline__event-content h2,
.cd-h-timeline__event-content h3,
.cd-h-timeline__event-content h4,
.cd-h-timeline__event-content h5,
.cd-h-timeline__event-content h6 {
	color: var(--cd-color-1);
	font-family: "Playfair Display", serif;
	font-weight: 700;
}

.cd-h-timeline__event-content h2:first-child {
	font-size: clamp(2rem, 6vw, 3.25rem);
	line-height: 1.1;
}

@keyframes cd-enter-right {
	0% {
		opacity: 0;
		transform: translateX(100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0%);
	}
}

@keyframes cd-enter-left {
	0% {
		opacity: 0;
		transform: translateX(-100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0%);
	}
}

html:not(.js) .cd-h-timeline__dates,
html:not(.js) .cd-h-timeline__navigation {
	display: none;
}

.otrt-timeline-editor {
	opacity: 1;
	background: transparent;
	border: 0;
}

.otrt-timeline-editor__items {
	display: grid;
	gap: 16px;
}

.otrt-timeline-editor__item {
	padding: 16px;
	background: #fff;
	border: 1px solid #000;
	width: 100%;
	max-width: none;
}

.otrt-timeline-editor__controls {
	margin-bottom: 12px;
}

.otrt-timeline-editor__item-meta {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 8px;
	color: #1e1e1e;
	font-size: 13px;
}

.otrt-timeline-editor__item-meta span {
	color: #757575;
}

.otrt-timeline-editor__content {
	width: 100%;
	max-width: none;
}

.otrt-timeline-editor__content > .block-editor-inner-blocks,
.otrt-timeline-editor__content > .block-editor-inner-blocks > .block-editor-block-list__layout {
	width: 100%;
	max-width: none;
}

.otrt-timeline-editor__content .wp-block {
	max-width: none;
}
