.s-timeline {
    width: 100%;
    margin: 40px 0;
}

@media screen and (min-width: 768px) {
    .s-timeline {
        margin: 80px 0;
    }
}

.s-timeline-wrap {
    background-color: #f1f1f1;
    max-width: 1540px;
    width: 100%;
    padding: 40px 0;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .s-timeline-wrap {
        padding: 80px 0;
    }
}

.s-timeline .container {
    max-width: 1348px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.acf-block-preview .s-timeline h2,
.s-timeline h2 {
    margin: 0 0 20px;
    color: #333;
}

.s-timeline-desc {
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    .s-timeline-desc {
        max-width: 50%;
    }    
}

.s-timeline-slider {
    margin-top: 50px;
}

/* navigation */

.s-timeline .swiper-button-prev,
.s-timeline .swiper-button-next {
    background: #542e91;
    position: absolute;
    top: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    z-index: 99;
}

.s-timeline .swiper-button-prev {
    left: 0;
    padding-right: 3px;
}

.s-timeline .swiper-button-next {
    right: 0;
    padding-left: 3px;
}

.s-timeline .swiper-button-prev::after,
.s-timeline .swiper-button-next::after {
    color: #FFF;
    font-size: 18px;
}

.s-timeline .swiper-button-disabled {
    background: #999b9d;
    opacity: 1;
}

/* pagination */

.s-timeline .swiper-pagination-main {
    width: 100% !important;
    position: relative;
    top: 0;
    bottom: auto;
    margin: 0 0 40px;
    padding: 14px 0 0;
    display: flex;
    flex-wrap: nowrap;
}

@media screen and (min-width: 768px) {
    .s-timeline .swiper-pagination-main {
        width: calc(100% - 80px) !important;
    }
}

.s-timeline .swiper-pagination-main::before {
    content: '';
    width: 100%;
    height: 2px;
    background: #999b9d;
    position: absolute;
    top: 27px;
    left: 0;
    z-index: -1;
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet {
    background: none;
    display: inline-flex;
    flex-direction: column;
    width: auto;
    height: auto;
    align-items: center;
    gap: 12px;
    margin-left: -70px;
    margin-right: 110px;
    opacity: 1;
    transform: none;
}

@media screen and (min-width: 768px) {
    .s-timeline .swiper-pagination-main .swiper-pagination-bullet {
        margin-left: -200px;
        margin-right: 320px;
    }
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet .dot {
    background: #999b9d;
    width: 26px;
    height: 26px;
    display: block;
    position: relative;
    border-radius: 100%;
    opacity: 1;
    transition: 0.3s;
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet .dot::before {
    content: '';
    width: 18px;
    height: 18px;
    position: absolute;
    left: 4px;
    top: 4px;
    background: #542e91;
    box-shadow: 0 0 0 4px #FFF;
    border-radius: 100%;
    opacity: 0;
    transform: scale(0);
    transition: 0.4s;
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet-active .dot {
    box-shadow: 0 0 0 4px #999b9d;
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet-active .dot::before {
    opacity: 1;
    transform: scale(1);
}

.s-timeline .swiper-pagination-main .swiper-pagination-bullet .year {
    font-size: 16px;
}

/* slides */

.s-timeline-slider .swiper-slide-main,
.s-timeline-slider .swiper-slide-sub .swiper-slide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 0;
}

@media screen and (min-width: 768px) {
    .s-timeline-slider .swiper-slide-main,
    .s-timeline-slider .swiper-slide-sub .swiper-slide {
        grid-template-columns: 1fr 1fr;
    }
}

.s-timeline-slider .swiper-slide-sub .swiper-slide {
    opacity: 0 !important;
}

.s-timeline-slider .swiper-slide-sub .swiper-slide-visible {
    opacity: 1 !important;
}

.s-timeline-slider .swiper-slide-sub .swiper-pagination {
    width: auto;
    height: 58px;
    position: absolute;
    left: auto;
    right: 60px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0 16px;
}

@media screen and (min-width: 768px) {
    .s-timeline-slider .swiper-slide-sub .swiper-pagination {
        right: calc(50% + 80px);
    }    
}

.s-timeline-slider .swiper-slide-sub .swiper-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,.3);
    opacity: 1;
    box-shadow: 0px 0px 1px 1px #000000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,0,0, 0.1);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(0, 0, 0, 0);
    }
}

.s-timeline-slider .swiper-slide-sub .swiper-pagination .swiper-pagination-bullet-active {
    background: #542e91;
    animation: none;
}

.s-timeline-slider .swiper-slide-sub .pag {
    position: absolute;
    left: auto;
    right: 0;
    top: 0;
    width: 50px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 18px;
}

@media screen and (min-width: 768px) {
    .s-timeline-slider .swiper-slide-sub .pag {
        left: calc(50% - 60px);
        right: auto;
        font-size: 22px;
    }
}

.s-timeline-slider .swiper-slide-left {
    width: 100%;
}

.acf-block-preview .s-timeline-slider .swiper-slide-left h1,
.s-timeline-slider .swiper-slide-left h1 {
    margin: 0 0 32px;
    color: #333;
}

.acf-block-preview .s-timeline-slider .swiper-slide-left h2,
.s-timeline-slider .swiper-slide-left h2 {
    margin: 0 0 32px;
    color: #333;
}

.acf-block-preview .s-timeline-slider .swiper-slide-left p,
.s-timeline-slider .swiper-slide-left p {
    color: #333;
}

.s-timeline-slider .swiper-slide-right {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .s-timeline-slider .swiper-slide-right {
        width: calc(100% - 80px);
        height: 440px;
        margin-left: 80px;
        overflow: hidden;
    }
}

.acf-block-preview .s-timeline-slider .swiper-slide-right img,
.s-timeline-slider .swiper-slide-right img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}