.dko-timeline {
    --img-height: 180px;
    padding: var(--global-vertical-padding) 0px;
}

.dko-timeline__title {
    font-size: 34px;
    line-height: 36px;
    margin: 0px var(--global-lateral-padding) 40px;
}
.dko-timeline__text {
    font-size: 18px;
    line-height: 26px;
    margin: 0px var(--global-lateral-padding) 34px;
}

.dko-timeline--records-list {
    height: fit-content;
}

.dko-timeline__record {
    width: min(62vw, 294px);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.dko-timeline .record__content {
    opacity: 0;
    background-color: var(--crf--shiny-blue);
    color: var(--crf--white);
    border-radius: 5px;
    overflow: hidden;
}
.dko-timeline__record.swiper-slide-active .record__content {
    opacity: 1;
}
.dko-timeline__record__year {
    position: absolute;
    top: var(--img-height);
    transform: translateY(-50%);
    background-color: var(--crf--light-grey);
    color: var(--crf--shiny-blue);
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    z-index: 1; /* to stand above parallaxed card content */
    transition: color, background-color 600ms ease 0s;
    padding: 0.4em 1.3em;
    border-radius: 21px;
}
.dko-timeline__record__year .top-right,
.dko-timeline__record__year .top-left,
.dko-timeline__record__year .bottom-left,
.dko-timeline__record__year .bottom-right {
    fill: var(--crf--light-grey);
    
    transition: fill 600ms ease 0s;
}

.dko-timeline__record.swiper-slide-active .dko-timeline__record__year .top-right,
.dko-timeline__record.swiper-slide-active .dko-timeline__record__year .top-left,
.dko-timeline__record.swiper-slide-active .dko-timeline__record__year .bottom-left,
.dko-timeline__record.swiper-slide-active .dko-timeline__record__year .bottom-right {
    fill: var(--crf--shiny-blue);
}

.dko-timeline__record__year .top-right {
    position: absolute;
    right: -21px;
    top: 7px;
}
.dko-timeline__record__year .top-left {
    position: absolute;
    left: -21px;
    top: 7px;
}
.dko-timeline__record__year .bottom-left {
    position: absolute;
    bottom: 4px;
    left: -20px;
}
.dko-timeline__record__year .bottom-right {
    position: absolute;
    bottom: 4px;
    right: -18px;
}
.dko-timeline__record.swiper-slide-active .dko-timeline__record__year {
    background-color: var(--crf--shiny-blue);
    color: var(--crf--white);
}
.record__content__image {
    height: var(--img-height);
}
.record__content__text {
    padding: 17px 20px;
}
.record__content__text:first-child {
    margin-top: var(--img-height);
}
.record__content__text:first-child::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 180px;
    top: 0px;
    left: 0px;
    background-image: url('./../../assets/images/svg/logo-carrefour--white.svg');
    background-repeat: no-repeat;;
    background-size: 130% 110%;
    background-position: left bottom;
    opacity: 0.15;
}
.dko-timeline__record__title {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    margin-bottom: 11px;
}
.dko-timeline__swiper::before {
    content: "";
    display: block;
    position: absolute;
    top: 180px;
    width: 100%;
    height: 4px;
    background-color: var(--crf--light-grey);
}

.dko-timeline__swiper-btn-prev,
.dko-timeline__swiper-btn-next {
    min-width: 0px;
    width: 40px;
    height: 40px;
    padding: 0px;
    border-radius: 20px;
    
    position: absolute;
    top: var(--img-height);
    transform: translateY(-50%);
    z-index: 1;
    
    background-image: url(./../../assets/images/svg/arrow-right--no-tail--white.svg);
    background-size: contain;
    background-repeat: no-repeat;
}
.dko-timeline__swiper-btn-prev {    
    transform: translateY(-50%) rotateZ(180deg);
}
.dko-timeline__swiper-btn-next {
    right: 0px;
}
.swiper-button-disabled.dko-timeline__swiper-btn-prev,
.swiper-button-disabled.dko-timeline__swiper-btn-next {
    border-color: var(--crf--light-grey);
    background-color: var(--crf--light-grey);
}

@media screen and (max-width: 576px) {
    .dko-timeline__record.swiper-slide-prev,
    .dko-timeline__record.swiper-slide-next {
        z-index: -1; /* to prevent the year <span> to overlap the active card (on mobile) */
    }
    .dko-timeline__record.swiper-slide-prev .dko-timeline__record__year {
        transform: translate(15vw, -50%);
    }
    .dko-timeline__record.swiper-slide-next .dko-timeline__record__year {
        transform: translate(-15vw, -50%);
    }
}
@media screen and (max-width: 767px) {
    .dko-timeline__swiper-btn-prev,
    .dko-timeline__swiper-btn-next {
        opacity: 0;
        pointer-events: none;
    }
}
@media screen and (min-width: 768px) {
    .dko-timeline__swiper {
        margin: 0px var(--global-lateral-padding);
    }
    .dko-timeline__title {
        font-size: 48px;
        line-height: 52px;
        margin: 0px var(--global-lateral-padding) 20px;
    }
    .dko-timeline__text {
        line-height: 32px;
        margin: 0px var(--global-lateral-padding) 40px;
    }
    
    .dko-timeline__swiper::after {
        content: "";
        position: absolute;
        top: 160px;
        height: 40px;
        width: 100%;
        z-index: 1;
        border-right: 20px solid var(--crf--white);
        border-left: 20px solid var(--crf--white);
        box-sizing: border-box;
        pointer-events: none;
    }
    .dko-timeline__swiper-btn-prev, 
    .dko-timeline__swiper-btn-next {
        z-index: 2;
    }
}

.dko-timeline__record:not(.swiper-slide-prev):not(.swiper-slide-next):not(.swiper-slide-active) {
    pointer-events: none;
}

/*.dko-timeline .swiper-wrapper {
    height: auto;
}*/