.history {
    --arrows-spacing: 50px;
    position: relative;
}

.history__intro-content {
    margin-bottom: 30px;
}

.history__year {
    margin: 0 0 12px;
    padding: 0 0 32px;
    font-size: 56px;
    line-height: 1em;
    font-weight: 700;
    color: #f3f6f4;
    text-align: center;
    position: relative;
    text-shadow: 1px 1px 0 #4d80c7, -1px -1px 0 #4d80c7, 1px -1px 0 #4d80c7,
        -1px 1px 0 #4d80c7, 1px 1px 0 #4d80c7;
    cursor: pointer;
}

.history__year::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 21px;
    height: 21px;
    background: #bfdaff;
    border-radius: 4px;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    z-index: 2;
}

.slick-current .history__year {
    color: #14245f;
    text-shadow: none;
    -webkit-text-fill-color: #14245f;
    -webkit-text-stroke-color: #14245f;
    -webkit-text-stroke-width: 1px;
}

.slick-current .history__year::before {
    background: #23367c;
}

.history__listings {
    position: relative;
}

.history__listings::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 85px;
    width: calc(100% + 44px);
    height: 2px;
    background: #bfdaff;
}

.history--slider-arrows-top .history__listings::before {
    top: calc(var(--arrows-spacing) + 110px);
}

.history__details {
    margin: 38px 15px 15px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    color: #14245f;
    overflow: hidden;
    box-shadow: 0 0 13px rgba(35, 54, 124, 0.12);
}

.history__details p {
    line-height: 1.5em;
}

.history__details img {
    margin: 0 auto 10px;
    width: 100%;
    aspect-ratio: 16 / 9 auto;
}

.history__listings .slick-initialized .slick-slide {
    vertical-align: top;
}

.history__image {
    width: calc(100% + 50px);
    height: 210px;
    margin: 30px -25px -25px;
}

.history__image img {
    margin-bottom: 0;
}

.history-slider-list {
    margin: 0 -15px 0;
}

.history--slider-arrows-top .history-slider-list {
    padding-top: calc(var(--arrows-spacing) + 25px);
}

.history--slider-arrows-top .history-slider-list .slick-arrow {
    margin-bottom: 25px;
    top: 0;
    bottom: auto;
}

.history--slider-arrows-bottom .history-slider-list {
    padding-bottom: var(--arrows-spacing);
}

@media (min-width: 768px) {
    .history {
        --arrows-spacing: 65px;
    }

    .history__intro-content {
        margin-bottom: 10px;
    }

    .history__listings {
        margin-right: -52px;
    }

    .history__year {
        margin: 0 0 12px;
        padding: 0 0 32px;
        font-size: 75px;
        text-align: left;
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
    }

    .history__listings::before {
        left: -52px;
        width: calc(100% + 104px);
        top: 106px;
    }

    .history--slider-arrows-top .history__listings::before {
        top: calc(var(--arrows-spacing) + 130px);
    }

    .history__details {
        margin: 30px 0 0;
        padding: 25px;
        background: #ffffff;
        border-radius: 8px;
        color: #14245f;
        overflow: hidden;
        box-shadow: 0 0 13px rgba(35, 54, 124, 0.12);
        width: 316px;
    }

    .history__details h4 {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .history__details p {
        line-height: 1.66em;
    }

    .history__image {
        width: calc(100% + 50px);
        height: 210px;
        margin-left: -25px;
        margin-top: 18px;
    }

    .history__listings .slick-initialized .slick-slide {
        margin: 0 16px;
    }

    .history-slider-list {
        margin: 0;
    }

    /* Slick */
    .history-slider-list .slick-list {
        overflow: visible;
    }

    .history-slider-list:not(.is-slid) .slick-slide.slick-cloned:first-child,
    .history-slider-list.is-slid .slick-slide[data-slick-index="-1"] {
        display: none;
    }
}

@media (min-width: 1200px) {
    .history {
        --arrows-spacing: 75px;
    }

    .history__intro-content {
        margin-bottom: 40px;
    }

    .history__listings {
        margin-right: 0px;
    }

    .history__year {
        margin: 0 0 12px;
        padding: 0 0 36px;
        font-size: 90px;
        text-align: left;
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
    }

    .history-details-item:hover .history__year {
        color: #14245f;
        text-shadow: none;
        -webkit-text-fill-color: #14245f;
        -webkit-text-stroke-color: #14245f;
        -webkit-text-stroke-width: 1px;
        transition: 0.3s color, 0.3s text-shadow;
    }

    .history__year::before {
        width: 26px;
        height: 26px;
    }

    .history-details-item:hover .history__year::before {
        background: #23367c;
        transition: 0.3s background;
    }

    .history__listings::before {
        left: -50%;
        width: 100%;
        top: 121px;
    }

    .history--slider-arrows-top .history__listings::before {
        top: calc(var(--arrows-spacing) + 146px);
    }

    .history__listings::after {
        content: "";
        position: absolute;
        right: -50%;
        width: 100%;
        top: 121px;
        height: 2px;
        background: #bfdaff;
    }

    .history--slider-arrows-top .history__listings::after {
        top: calc(var(--arrows-spacing) + 146px);
    }

    .history__details {
        margin: 40px 0 0;
        width: 324px;
    }

    .history__details h4 {
        font-size: 28px;
        padding-bottom: 12px;
    }

    .history__image {
        margin-top: 18px;
    }

    .history-slider-list {
        margin: 0;
        width: 6000px;
        z-index: 1;
    }

    .slick-arrow {
        left: calc(50% - 40%);
    }
}
