.bt-history-timeline {
    --bt-history-dot-size: 26px;
    width: 100%;
    overflow: hidden;
    background-color: #f7efe5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bt-history-timeline .bt-history-timeline__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    touch-action: pan-y;
    user-select: none;
}

.bt-history-timeline .bt-history-timeline__viewport::-webkit-scrollbar {
    display: none;
}

.bt-history-timeline .bt-history-timeline__viewport.is-dragging {
    cursor: grabbing;
}

.bt-history-timeline .bt-history-timeline__track {
    position: relative;
    display: flex;
    width: max-content;
    min-width: 100%;
    height: 520px;
    max-height: 560px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-history-timeline .bt-history-timeline__item {
    position: relative;
    flex: 0 0 auto;
    width: 16.666vw;
    max-width: 16.666vw;
    height: 100%;
    margin: 0;
    padding: 0;
}

.bt-history-timeline .bt-history-timeline__axis {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 1;
    height: 2px;
    margin: 0;
    padding: 0;
    background: #111;
    list-style: none;
}

.bt-history-timeline .bt-history-timeline__stem {
    position: absolute;
    left: 48px;
    z-index: 2;
    width: 2px;
    height: 35%;
    background: #111;
}

.bt-history-timeline .bt-history-timeline__dot {
    position: absolute;
    left: calc(48px - var(--bt-history-dot-size) / 2);
    z-index: 3;
    display: block;
    width: var(--bt-history-dot-size);
    height: var(--bt-history-dot-size);
    border-radius: 50%;
    background: #000;
}

.bt-history-timeline .bt-history-timeline__content {
    position: absolute;
    right: auto;
    left: 0;
    width: 31vw;
    padding: 0 28px;
}

.bt-history-timeline .bt-history-timeline__item:nth-child(odd) .bt-history-timeline__stem {
    top: 15%;
}

.bt-history-timeline .bt-history-timeline__item:nth-child(odd) .bt-history-timeline__dot {
    top: calc(15% - var(--bt-history-dot-size) / 2);
}

.bt-history-timeline .bt-history-timeline__item:nth-child(odd) .bt-history-timeline__content {
    top: calc(15% - 16px);
}

.bt-history-timeline .bt-history-timeline__item:nth-child(even) .bt-history-timeline__stem {
    top: 50%;
    height: 15%;
}

.bt-history-timeline .bt-history-timeline__item:nth-child(even) .bt-history-timeline__dot {
    top: calc(65% - var(--bt-history-dot-size) / 2);
}

.bt-history-timeline .bt-history-timeline__item:nth-child(even) .bt-history-timeline__content {
    top: calc(65% - 16px);
}

.bt-history-timeline .bt-history-timeline__title {
    margin: 0 0 20px 72px;
    color: #12365f;
    font-family: Georgia, serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.bt-history-timeline .bt-history-timeline__year {
    margin: 0 0 10px 72px;
    color: #70a3d3;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 5px;
}

.bt-history-timeline .bt-history-timeline__text {
    margin-left: 72px;
    color: #111;
    font-size: 17px;
    line-height: 1.55;
}

.bt-history-timeline .bt-history-timeline__text p {
    margin: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bt-history-timeline .bt-history-timeline__track {
        height: 580px;
        max-height: 620px;
    }

    .bt-history-timeline .bt-history-timeline__item {
        width: 33.333vw !important;
        max-width: 33.333vw;
    }

    .bt-history-timeline .bt-history-timeline__content {
        width: 58vw;
        padding-right: 22px;
        padding-left: 22px;
    }

    .bt-history-timeline .bt-history-timeline__title {
        margin-left: 64px;
        font-size: 24px;
    }

    .bt-history-timeline .bt-history-timeline__year {
        margin-left: 64px;
        font-size: 20px;
    }

    .bt-history-timeline .bt-history-timeline__text {
        margin-left: 64px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .bt-history-timeline .bt-history-timeline__viewport {
        overflow: visible;
        cursor: auto;
        touch-action: auto;
        user-select: auto;
    }

    .bt-history-timeline .bt-history-timeline__track {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto !important;
        max-height: none;
        padding: 42px 24px 42px 64px;
    }

    .bt-history-timeline .bt-history-timeline__track::before {
        position: absolute;
        top: 66px;
        bottom: 66px;
        left: 40px;
        width: 2px;
        background: #111;
        content: "";
    }

    .bt-history-timeline .bt-history-timeline__item {
        width: 100% !important;
        max-width: none;
        height: auto;
        min-height: 260px;
        padding: 0 0 64px;
    }

    .bt-history-timeline .bt-history-timeline__item:nth-last-child(2) {
        min-height: 0;
        padding-bottom: 0;
    }

    .bt-history-timeline .bt-history-timeline__axis,
    .bt-history-timeline .bt-history-timeline__stem {
        display: none;
    }

    .bt-history-timeline .bt-history-timeline__dot,
    .bt-history-timeline .bt-history-timeline__item:nth-child(odd) .bt-history-timeline__dot,
    .bt-history-timeline .bt-history-timeline__item:nth-child(even) .bt-history-timeline__dot {
        top: 8px;
        left: calc(-24px - var(--bt-history-dot-size) / 2);
    }

    .bt-history-timeline .bt-history-timeline__content,
    .bt-history-timeline .bt-history-timeline__item:nth-child(odd) .bt-history-timeline__content,
    .bt-history-timeline .bt-history-timeline__item:nth-child(even) .bt-history-timeline__content {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: auto;
        padding: 0 !important;
    }

    .bt-history-timeline .bt-history-timeline__title {
        margin: 0 0 40px;
        font-size: 34px;
    }

    .bt-history-timeline .bt-history-timeline__year {
        margin: 0 0 18px;
        font-size: 28px;
    }

    .bt-history-timeline .bt-history-timeline__text {
        margin: 0;
        font-size: 21px;
    }
}
