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

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

.timeline-module .timeline-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.timeline-module .timeline-wrapper .timeline-container {
    position: relative;
}

.timeline-module .timeline-wrapper .timeline-container h2 {
    margin-bottom: 72px;
    text-align: center;
}

.timeline-module .timeline-wrapper .timeline-container > p {
    margin-bottom: 24px;
    text-align: center;

    &:last-of-type {
        margin-bottom: 72px;
    }
}

.timeline-module .timeline-wrapper .timeline-container a {
    color: #000000;
    text-align: center;
}

.timeline-module .timeline-wrapper .timeline-container #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: -4rem;
    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: -4rem;
    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 {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid black !important;
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 12px;
    width: 100%;
    text-decoration: none;
    border-radius: 6rem;
    font-weight: normal;
    max-width: 30rem;
    margin: 0 auto;

    /*&:hover {
        filter: invert(1);
    }*/
}

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

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

@media screen and (min-width: 48rem) {
    #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%;
    }
}

#load-more {
    border: 3px solid black !important;
    border-radius: 6rem;
    line-height: 1.33333;
    max-width: 42rem !important;
    padding: 20px 40px !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    transition: background-color 200ms ease-in-out !important;
}

#load-more:hover {
    background-color: black;
    color: white;
}

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

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

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

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

    .timeline-module .timeline-wrapper .timeline-container {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .timeline-module .timeline-wrapper .timeline-container h2 {
        grid-column: 3 / span 8;
    }

    .timeline-module .timeline-wrapper .timeline-container p,
    .timeline-module .timeline-wrapper .timeline-container #timeline {
        grid-column: 3 / span 8;
    }

    .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%;
    }
}