#fixed-layer-timeline {
    z-index: 1000;
}

#timeline-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#timeline-container {
    height: 600vh;
    position: relative;
}

#timeline {
    height: 100vh;
    width: 100%;
    left: 0;
    right: 0;
    display: none;
}
#timeline.active {
    display: block;
}

#timeline .timeline-title {
    display: none;
    position: absolute;
    top: 50%;
    left: 2vw;
    width: 26vw;
    transform: translateY(-50%);
    font-size: 5em;
    font-weight: 700;
    line-height: 1.2em;
    color: #555;
}

@media (min-width: 1000px) {
    #timeline .timeline-title {
        font-size: 8em;
    }
}

#timeline .timeline-progress {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 4px;
    width: 100%;
    background-color: #595959;
}
#timeline .timeline-progress-bar {
    background: #900;
    height: 4px;
}
#timeline .timeline-progress .timeline-label {
    transform: translateX(-50%);
    bottom: 40px;
    font-weight: 700;
    font-size: 1.5em;
}
#timeline .timeline-progress .timeline-label.active {
    color: #fff;
}
#timeline .timeline-progress .timeline-marker {
    transform: translate(-50%, -50%);
    top: 50%;
    height: 60px;
    width: 10px;
    background-color: #595959;
}
#timeline .timeline-progress .timeline-marker.active {
    background-color: #fff;
}

#timeline .timeline-images {
    position: absolute;
    top: 30vh;
    right: 0;
    bottom: auto;
    left: 0;
    pointer-events: none;
    z-index: 2;
}
#timeline .timeline-text {
    position: absolute;
    top: 60vh;
    bottom: auto;
    right: 5vw;
    left: 5vw;
    width: auto;
    text-align: center;
}
#timeline .timeline-text > div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    transition: right 0.2s ease-in-out;
}
#timeline .timeline-text .before {
    right: -30vw;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
#timeline .timeline-text .active {
    right: 0;
    opacity: 1;
    transition: all 0.2s ease-in-out;
}
#timeline .timeline-text .after {
    right: 20vw;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
#timeline .timeline-images .timeline-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 50vw;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    border-radius: 8px;
}
#timeline .timeline-images .timeline-image-container.active {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
#timeline .timeline-images .timeline-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (min-width: 800px)
{
    
    #timeline .timeline-title {
        display: block;
    }

    #timeline .timeline-images {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
    #timeline .timeline-images .timeline-image-container {
        width: 40vw;
        height: 30vw;
    }
    #timeline .timeline-text {
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: 25vw;
        text-align: left;
    }
}