.history-slider {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

.history-slider .carousel__item {
    display: flex;
    flex-direction: column;
    background-color: var(--color-grey-25);
    color: var(--color-grey-100);
    width: 300px;
    transition: color 0.5s, background-color 0.5s;
}

.history-slider .carousel__item--active {
    background-color: var(--history-accent-color);
    color: var(--color-white);
}

.history-slider .item__content--wrapper {
    flex: 1 1 0px;
    overflow: hidden;
    transition: flex 0.5s;
}

.history-slider .carousel__item--active .item__content--wrapper {
    flex: 100%;
}

.history-slider .item__content {
    padding: 25px;
}

.history-slider .item__title {
    font-style: normal;
    font-weight: 700;
    font-size: 25px;
    line-height: 130%;
    margin-bottom: 10px;
}

.history-slider .item__focus-content {
    opacity: 0;
}

.history-slider .carousel__item--active .item__focus-content {
    opacity: 1;
}

.history-slider .item__date {
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 130%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.5s;
    margin-bottom: 10px;
}

.history-slider .item__description {
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
    transition: opacity 0.5s;
}

.history-slider .item__image {
    flex: 1 1 0px;
    height: 50%;
    transition: height 0.5s;
}

.history-slider .carousel__item--active .item__image {
    height: 0px;
}

.history-slider .item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-slider .heartline {
    align-self: center;
    display: flex;
    position: relative;
}

.history-slider .heartline .heartline--left {
    position: absolute;
    height: 8px;
    top: 25px;
    background-color: var(--color-grey-25);
    transition: width 0.3s, left 0.3s;
}

.history-slider .heartline .heartline--right {
    position: absolute;
    height: 8px;
    top: 25px;
    background-color: var(--color-grey-25);
    transition: width 0.3s, left 0.3s;
}

.history-slider__navigation {
    display: flex;
    gap: 15px;
    align-self: center;
    position: relative;
    left: -108px;
}

.history-slider .navigation__button {
    cursor: pointer;

    &:hover {
        opacity: 0.75;
    }
}

.history-slider .navigation__button > span {
    display: block;
    border: 1px solid var(--color-grey-100);
    font-weight: 700;
}
