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

.timeline-module-wrap {
    padding: 0 16px;
    margin-bottom: 64px
}

.timeline-module-wrap .timeline-module-grid {
    max-width: 80rem;
    margin: 0 auto;
}

.timeline-module-wrap .timeline-module-grid h2 {
    text-align: center;
    margin-bottom: 48px;
}

.timeline-module-wrap .timeline-module-grid > p {
    text-align: center;
    margin-bottom: 48px;
}

.timeline-module-wrap .timeline-module-grid #timeline {
    margin: 2rem auto;
    max-width: 60rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    position: relative;
}

#timeline button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /*border: 0;*/
    cursor: pointer;
    font: inherit;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.timeline-content {
    position: relative;
}

.timeline-content::after {
    clear: both;
    content: " ";
    display: table;
}

.timeline-content__content {
    overflow: hidden;
    transition: max-height 1s linear 0s;
}


.timeline-content__content p {
    margin-bottom: 24px;
}

.timeline-content__content img {
    display: block;
    max-width: 100%;
}

.timeline-content__content img:has(+small) {
    margin-bottom: 12px;
}

.timeline-content__content small {
    display: block;
    max-width: 83.33333%;
    text-align: right;
    margin-left: auto;
}

.timeline-content__content hr {
    margin-top: 24px;
    margin-bottom: 24px;
}

.timeline-content__content > div {
    margin-top: 1rem;
}

.timeline-content.show .timeline-content__content {
    max-height: 1000px;
    transition: max-height 1s linear 0s;
}

.timeline-content__header {
    margin-bottom: 1rem;
}

.timeline-content__date {
    margin-bottom: 0.444rem;
}

.timeline-content__date span {
    background-color: #ffffff;
    color: #fff;
    display: inline-block;
    line-height: 1;
    padding: 0.222rem 0.444rem;
}

.timeline-content__content {
    text-align: left;
}

.timeline-content__dot {
    background: #fff;
    border-radius: 100%;
    display: none;
    height: 2rem;
    left: -3rem;
    position: absolute;
    top: 6rem;
    width: 2rem;
    border: 1px solid black !important;
}

.timeline-content__dot span {
    background-color: #000000;
    border-radius: 100%;
    border: 1px solid black;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.timeline-content.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.timeline-block::after {
    clear: both;
    content: " ";
    display: table;
}

.timeline-block+.timeline-block {
    margin-top: 4rem;
}

.timeline-block:nth-child(even) .timeline-content__dot {
    left: -3rem;
    right: auto;
}

.timeline-block:nth-child(even) .timeline-content::before {
    left: auto;
    right: 100%;
}

.timeline-more {
    margin-top: 4rem;
    text-align: center;
}

.timeline-more button {
    border: var(--border) solid black;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: black;
    border-radius: var(--radius-md);
    justify-self: center;
    width: 100%;
    background-color: transparent;
}

.timeline-more button:hover {
    background-color: var(--black);
    color: var(--white);
}

.timeline-block:has(.timeline-content.visually-hidden) {
        margin-top: 0rem;
}

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

@media screen and (min-width: 48rem) {
    .timeline-module-wrap .timeline-module-grid #timeline {
        flex-direction: row;
        column-gap: 16px;
    }

    #timeline::before {
        background: #000000;
        content: " ";
        height: calc(100% - 48px);
        left: 1rem;
        position: absolute;
        top: 0;
        width: 0.056rem;
    }

     .timeline-content {
        margin-left: 3rem;
        padding-left: 1rem;
    }

    .timeline-content::before {
        background: #000000;
        content: " ";
        height: 0.056rem;
        position: absolute;
        right: 100%;
        top: 7rem;
        width: 3rem;
    }

    .timeline-content__dot {
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .timeline-content__content {
        width: 66.66666%;
    }

    .timeline-more button {
        max-width: 66.66666%;
    }
}

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

@media screen and (min-width: 80rem) {
    .timeline-module-wrap {
        margin-bottom: 96px;
    }

    .timeline-module-wrap .timeline-module-grid #timeline {
        column-gap: 24px;
    }

     #timeline::before {
        left: 50%;
    }

     #timeline::before {
        height: calc(100% - 48px - 48px);
    }

    .timeline-block+.timeline-block {
        margin-top: 0;
    }

     .timeline-content__dot {
        left: auto;
        right: -5rem;
    }

    .timeline-content {
        margin-left: 0;
        padding-left: 0;
        padding-right: 1rem;
        text-align: right;
        width: calc(50% - 4rem);
    }

    .timeline-content::before {
        left: 100%;
    }

     .timeline-block:nth-child(even) .timeline-content {
        float: right;
        padding-left: 1rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-block:nth-child(1n+2) .timeline-content {
        margin-top: -1rem;
    }

    .timeline-block:nth-child(even) .timeline-content__dot {
        left: -5rem;
    }

    .timeline-content__content {
        width: 100%;
    }

    .timeline-more button {
        max-width:  max-content;
    }
}

