
body {
    scroll-behavior: smooth;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media(min-width: 768px) {
    
    .timeline {
        position: relative;
        white-space: nowrap;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto;
    }
    .timeline ol {
        cursor: grab;
    }
    .timeline ol.scrolling {
        cursor: grabbing;
        cursor: -webkit-grabbing;
        scroll-snap-type: none;
        user-select: none;
    }
    
    .timeline ol::-webkit-scrollbar {
        display: none !important;
    }
    
    .timeline ol::-webkit-scrollbar-thumb,
    .timeline ol::-webkit-scrollbar-track {
        display: none !important;
    }
    
    .timeline ol::-webkit-scrollbar-thumb {
        display: none !important;
    }
    
    .timeline ol::-webkit-scrollbar-track {
        display: none !important;
    }
    
    .timeline ol {
        font-size: 0;
        padding: 300px 0;
        overflow-x: scroll;
    }
    
    .timeline ol li {
        position: relative;
        display: inline-block;
        list-style-type: none;
        width: 240px;
        height: 1px;
        background: #CECECE;
        scroll-snap-align: start;
    }
    
    .timeline ol li:last-child {
        width: 430px;
    }
    
    .timeline ol li:not(:first-child) {
        margin-left: 14px;
    }
    
    .timeline ol li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        left: calc(100% + 1px);
        bottom: 0;
        width: 20px;
        height: 20px;
        transform: translateY(-50%);
        border-radius: 50%;
        background: #fff;
        z-index: 1;
    }
    
    .timeline ol li div {
        position: absolute;
        left: calc(100% + 7px);
        width: 360px;
        padding: 24px;
        white-space: normal;
        color: #fff;
        background: #FFFFFF4D;
        border-radius: 0;
        margin-left: 24px;
    }
    
    .timeline ol li div::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 0;
        height: 0;
        border-style: solid;
    }
    
    .timeline ol li:nth-child(even) div {
        bottom: calc(100% + 60px);
        margin-bottom: 30px;
    }
    
    .timeline ol li:nth-child(even) div::before {
        top: unset;
        bottom: -30px;
        border: none;
        height: calc(100% + 30px);
        left: -24px;
        width: 1px;
        background-color: #fff;
    }
    
    .timeline ol li:nth-child(odd) div {
        top: calc(100% + 60px);
        margin-top: 60px;
    }
    
    .timeline ol li:nth-child(odd) div::before {
        top: -60px;
        border: none;
        height: calc(100% + 60px);
        left: -24px;
        width: 1px;
        background-color: #fff;
    }
    
    .timeline time {
        position: absolute;
        left: 100%;
        display: block;
        margin-bottom: 8px;
        color: #fff;
    }
    
    .timeline ol li:nth-child(odd) time {
        top: 18px;
    }
    
    .timeline ol li:nth-child(even) time {
        top: -38px;
    }

}

@media(max-width: 767px) {
    .timeline ol {
        padding: 0;
        display: flex;
        flex-direction: column;
        margin-left: 24px;
    }

    .timeline ol li {
        width: 100%;
        color: #fff;
        position: relative;
        display: inline-block;
        list-style-type: none;
    }

    .timeline ol li:before {
        content: "";
        position: absolute;
        width: 11px;
        height: 11px;
        border: 1px solid;
        left: -20px;
        top: 7px;
        border-radius: 50%;
        transition: background-color .3s ease-in;
    }

    .timeline ol li:after {
        content: "";
        position: absolute;
        left: -15px;
        width: 1px;
        height: calc(100% - 10px);
        background-color: #fff;
        top: 17px;
    }

    .timeline ol li div {
        position: relative;
        left: 0;
        width: 100%;
        margin-left: 0;
    }
    
    .timeline ol li div::before,
    .timeline ol li:last-child {
        display: none;
    }
    
    .timeline time {
        position: relative;
        left: 0;
        display: block;
        margin-bottom: 8px;
    }

    .timeline ol li:not(:first-child) .timeline-content {
        display: none;
    }

    .timeline ol li.active:before {
        background-color: #fff;
    }

}

