.timeline-wrapper {
    position: relative;
}

.timeline-line-animation {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--timeline-line-width, 4px);
    height: 100%;
    transform-origin: top;
    transform: translateX(-50%) scaleY(0);
    background-color: #F37321;
    will-change: transform;
    z-index: 2;
}


.timeline-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.timeline-media-link img,
.timeline-media-link video {
    display: block;
}


.timeline img {
    border: 0;
    margin: 0 auto;
    max-width: 100%;
}

ul.timeline {
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0;
}

.timeline:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    width: var(--timeline-line-width, 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

    background-color: #F6F6F8;
}

.timeline-panel {
    position: relative;

}



.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns:1fr;
    justify-content: center;
    margin: 0;
}


.timeline-item:not(:first-child) {
    margin-top: 40px;
}

.timeline-side p:not(:last-child) {
    margin-bottom: 10px;
}

.tl-desc-short strong {
    font-weight: bold;
}
.tl-desc-short a {
    text-decoration: underline;
}

.tl-content{
    display: flex;
    flex-direction: column;
    border: 1px solid #F6F6F8;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tl-content .tl-desc-short p{
    margin-bottom: 10px;
}


.tl-content-horizontal{
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.tl-content-horizontal .timeline_pic,
.tl-content-horizontal .timeline-media-link {
    flex: 0 1 45%;
    min-width: 0;
    max-width: 45%;
}

.tl-content-horizontal .timeline-media-link .timeline_pic {
    max-width: 100%;
}

.tl-content-horizontal .timeline_pic img,
.tl-content-horizontal .timeline_pic video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.tl-content-horizontal .tl-desc {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tl-content-horizontal .tl-title,
.tl-content-horizontal .tl-desc-short {
    max-width: 100%;
}


.tl-mark {
    position: absolute;
    top: 0;
    left:50%;
    transform: translateX(-50%);
    align-self: self-start;
    transition: background 0.2s;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-sizing: border-box;
    backface-visibility: hidden;
    z-index: 3;
    background-color: #F6F6F8;
}



.tl-mark:has(img) {
    background: none !important;
    background-size: cover;
    max-width: 30px;
}

.tl-mark img {
    max-width: initial !important;
    position: absolute;
    left: -50%;
}

.timeline.timeline-animation-marker .is-stuck .tl-mark,
.timeline.timeline-animation-marker li.is-stuck .tl-mark {
    transition: background 0.2s;
    background-color: #F37321;
}

.tl-trigger {
    position: absolute;
    top: 50vh;
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.timeline-side {
    width: 100%;
    line-height: 1.3em;
}

.timeline-side b,
.timeline-side strong{
    font-weight: 700;
}

.timeline-side p {
    margin-top: 0;
}

.timeline-side li:not(:last-child){
    margin-bottom: 8px;
}


.tl-body p,
.tl-body ul {
    margin-bottom: 0;
}

.tl-body > p + p {
    margin-top: 5px;
}

.timeline .timeline_pic {
    position: relative;
    padding: 0;
}

.tl-title {
    display: block;
    margin: 0;
}

.tl-content p {
    margin-top: 0;
    margin-bottom: 5px
}


@media (min-width: 701px) {

    .timeline-item {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-animation-marker .timeline-item {
        grid-template-columns: 1fr 26px 1fr;
        grid-gap: 20px;
        padding-left: 0;
    }

    .timeline-inverted {
        direction: rtl;

        & > * {
            direction: ltr;
        }
    }

    .tl-desc-short ul,
    .timeline-side ul {
        padding-left: 22px;
    }

    .timeline-animation-other-side-sticky .timeline-side {
        position: sticky;
        top: 0;
        align-self: start;
        conteiner-type: scroll-snape;
        z-index: 2;
    }

    .timeline-animation-marker .tl-mark {
        position: sticky;
        /*left: calc(50% - 13px);*/
    }

    .timeline-left .timeline-side {
        padding-right: 30px;
    }

    .timeline-animation-marker .timeline-panel {
        margin: 0;
    }

    .tl-reverse{
        flex-direction: column-reverse;
    }
    .tl-content-horizontal.tl-reverse{
        flex-direction: row-reverse;
    }

}

@media (max-width: 700px) {

    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }


    .tl-title,
    .timeline-side p {
        text-align: left;
    }

    .tl-mark {
        transform: none;
        left: 7px;
    }

    .timeline-line-animation {
        left: 20px;
    }

    .timeline:before {
        left: 20px;
        margin-left: 0;
    }

    .timeline-panel {
        order: -1;
        margin-bottom: 20px;
    }


    .timeline-item > .timeline-panel:before {
        border-left-width: 0;
        border-right-width: 15px;
        left: -15px;
        right: auto;
    }

    .timeline-item > .timeline-panel:after {
        border-left-width: 0;
        border-right-width: 14px;
        left: -14px;
        right: auto;
    }

    .tl-content-horizontal {
        flex-direction: column;
        align-items: stretch;
    }


    .tl-content-horizontal .timeline_pic,
    .tl-content-horizontal .timeline-media-link {
        flex-basis: auto;
        max-width: 100%;
    }
}



