/* ---------- mobile ---------- */

.timeline-module-wrapper {
    margin-bottom: 96px;
    position: relative;
    z-index: 99;
}

.timeline-module-wrapper .timeline-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 0;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-header {
    grid-column: 1 / -1;
    text-align: center;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-header {
    margin-bottom: 96px;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-header p {
    margin-bottom: 1rem;

    &:last-of-type {
        margin-bottom: 0;
    }
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-header h2 {
    margin-bottom: 96px;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 96px;
    position: relative;

    /*background-color: red;*/
    min-height: 1rem;

    display: flex;
    flex-direction: column;
    row-gap: 5rem;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-line {
    position: absolute;
    width: 1px;
    background-color: black;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    display: block;
    z-index: -1;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry {
    display: flex;
    flex-direction: column;
    row-gap: 1em;
    position: relative;
    padding: 1rem 0;
    background-color: #f8f8f8;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.16666);
    padding: 1rem;
    border-radius: 2rem;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry .timeline-entry-media {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    line-height: 1.5;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry .timeline-entry-media img {
    aspect-ratio: 16 / 9;
}

.timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry::after {
    content: '';
    width: 1rem;
    height: 1rem;
    display: block;
    background-color: white;
    position: absolute;
    bottom: -3rem;
    margin: 0 auto;
    left: 0;
    right: 0;
    border: 1px solid black;
    border-radius: 50%;
}

.timeline-module-wrapper .timeline-module-grid button {
    grid-column: 1 / -1;
    display: block;
    border: 1px solid black;
    background-color: #ffffff;
    color: #000000;
    padding: 1rem;
    text-decoration: none;
    text-align: center;
    /* border-radius: 2rem; */
    transition: all 300ms ease-in-out;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 3rem;
    max-width: 66.66666%;
    margin-left: auto;
    margin-right: auto;
    width: -webkit-fill-available;
}

.timeline-module-wrapper .timeline-module-grid button:hover {
    color: #ffffff;
    background-color: #000000;
    cursor: pointer;
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {}

/* ---------- laptop ---------- */

@media screen and (min-width: 80rem) {
    .timeline-module-wrapper .timeline-module-grid {
        grid-template-columns: repeat(12, 1fr);
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body {
        grid-column: 2 / span 10;
        
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem; 
        row-gap: 2rem;    
        align-items: start; 
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-line {
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry::after {
        bottom: auto;
        top: 1rem; 
        left: auto;   
        right: auto;  
        margin: 0; 
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry:nth-child(even) {
        grid-column: 1;
        margin-top: 0;
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry:nth-child(even)::after {
        right: -1.5rem;
    }

    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry:nth-child(odd) {
        grid-column: 2;
        margin-top: 4rem;
    }
    .timeline-module-wrapper .timeline-module-grid .timeline-module-body .timeline-entry:nth-child(odd)::after {
        left: -1.5rem;
    }

    .timeline-module-wrapper .timeline-module-grid button {
        /*grid-column: 4 / 10;*/
        max-width: 33.33333%;
    }
}