.timeline-block {
	position: relative;
	overflow: hidden;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.timeline-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
    height: 100%;
}

.timeline-nav {
	display: flex;
	align-items: center;
	position: relative;
    width: 100%;
    justify-content: space-between;
    padding-top: 2rem;
    flex-direction: column;
}

.timeline-dates {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 1rem;
	position: relative;
	z-index: 2;
    width: calc(100% - calc(var(--gutters) * 2));
}

.timeline-date {
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--bordeau);
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 200ms ease;
    font-family: "Kalufonia Regular", cursive;
}

.timeline-date.is-active {
	opacity: 1;
    font-weight: 600;
}

.timeline-arrow {
	width: 40px;
	height: 40px;
	border: 0;
	padding: 0;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	cursor: pointer;
	justify-self: center;
	align-self: center;
	grid-row: 1;
	z-index: 2;
}
.timeline-nav-head{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.timeline-arrow-prev {
	grid-column: 1;
	background-image: url(../../../assets/svg/arrow-left.svg);
}

.timeline-arrow-next {
	grid-column: 3;
	background-image: url(../../../assets/svg/arrow-right.svg);
}

.timeline-line {
	display: flex;
    width: 100%;
    margin-top: 2rem;
	height: 1px;
	background: var(--wp--preset--color--bordeau);
    position: relative;
}

.timeline-indicator {
	--timeline-progress: 0;
	position: absolute;
	top: 50%;
	left: calc(var(--timeline-progress) * 100%);
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--bordeau);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	transform: translate(-50%, -50%);
	transition: left 320ms ease;
    z-index: 3;
}

.timeline-content {
	display: flex;
	align-items: stretch;
	height: 100%;
    width: 100%;
    background-color: var(--wp--preset--color--background);
}

.timeline-text-wrapper {
	display: flex;
    justify-content: center;
	align-items: center;
	min-height: 100%;
    width: 50%;
    padding: 6rem 2rem 6rem var(--gutters);
}


.timeline-title,
.timeline-description {
	opacity: 1;
	transition: opacity 500ms ease-in-out;
	will-change: opacity;
}

.timeline-title > :first-child {
	margin-top: 0;
}

.timeline-title > :last-child,
.timeline-description > :last-child {
	margin-bottom: 0;
}

.timeline-description {
	margin-top: 1.5rem;
}

.timeline-image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
    width: 50%;
}

.timeline-image {
	position: relative;
	width: 100%;
    height: 100%;
	overflow: hidden;
	background: transparent;
}

.timeline-image-layer {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	pointer-events: none;
    display: flex;
    height: 100%;
    width: 100%;
	background: transparent;
	transition: opacity 500ms ease-in-out;
}

.timeline-image-layer.is-current {
	opacity: 1;
	z-index: 2;
}

.timeline-image-layer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	background: transparent;
}

.timeline-frise {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 1rem 0;
}
.timeline-text{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.timeline-frise__img {
	width: 100%;
	height: 6px;
	background-repeat: repeat;
	background-position: center;
	background-size: auto;
}
@media(min-height: 1080px) {
    .timeline-content{
        min-height: 75vh;
    }
}

@media (max-width: 850px) {
	.timeline-nav-head{
        padding: 0 0.5rem;
    }
}
@media (max-width: 768px) {
    .timeline-content{
        position: relative;
		flex-direction: column;
    }
    .timeline-text-wrapper{
        padding: 6rem var(--gutters);
        z-index: 2;
        position: relative;
        width: 100%;
    }
    .timeline-image-wrapper{
        width: 100%;
        height: 300px;
        z-index: 1;
    }
    .timeline-text{
        background-color: var(--wp--preset--color--background);
        padding: 1rem;
    }
    .timeline-line{
        display: none;
    }
    .timeline-dates{
        width: 80%;
    }
    .timeline-nav{
        padding-top: 1rem;
    }
    .timeline-date.has-size-35-font-size{
        font-size: 18px;
    }
}