.bg-1 {
    background: #d8d8d8
}

.bg-2 {
    background: #9c9894
}

.bg-3 {
    background: #454444
}

.bg-4 {
    background: #666666
}

.bg-5 {
    background: #292929
}

.bg-6 {
    background: #ada8a4
}

.section__timeline {
    padding: 5vw 0
}

@media all and (max-width: 767px) {
    .section__timeline {
        padding-top:40px
    }
}

.section__timeline__header {
    text-align: center;
    padding-bottom: 4vw
}

.section__timeline__header * {
    font-size: 3.25rem;
    line-height: 1.1em;
    margin: 0;
    font-weight: 500
}

@media all and (max-width: 1200px) {
    .section__timeline__header * {
        font-size:2.5rem
    }
}

@media all and (max-width: 767px) {
    .section__timeline__header * {
        font-size:1.875rem
    }
}

.section__timeline__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(100px,1fr))
}

@media all and (max-width: 767px) {
    .section__timeline__wrapper {
        grid-template-columns:1fr
    }
}

.section__timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    gap: 1.6vw
}

@media all and (max-width: 767px) {
    .section__timeline__step {
        flex-direction:row;
        padding: 25px;
        gap: 20px
    }
}

.section__timeline__step__checkbox {
    position: relative;
    width: 4vw;
    height: 4vw
}

@media all and (max-width: 767px) {
    .section__timeline__step__checkbox {
        width:45px;
        height: 45px
    }
}

.section__timeline__step__checkbox span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #9c9894;
    background: #d8d8d8;
    z-index: 1
}

.section__timeline__step__checkbox span:before {
    content: "";
    display: none;
    position: absolute;
    top: .7vw;
    left: 1.4vw;
    width: 1vw;
    height: 1.8vw;
    transform: rotate(45deg);
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff
}

@media screen and (max-width: 1024px) {
    .section__timeline__step__checkbox span:before {
        left:1.2vw
    }
}

@media all and (max-width: 767px) {
    .section__timeline__step__checkbox span:before {
        left:14px;
        top: 5px;
        width: 12px;
        height: 24px
    }
}

.section__timeline__step__checkbox:before,.section__timeline__step__checkbox:after {
    content: "";
    position: absolute;
    top: 50%;
    left: -400%;
    width: 400%;
    height: 3px;
    transform: translateY(-50%);
    background: #9c9894
}

@media all and (max-width: 767px) {
    .section__timeline__step__checkbox:before,.section__timeline__step__checkbox:after {
        top:-400%;
        left: 50%;
        width: 3px;
        height: 400%;
        transform: translate(-50%)
    }
}

.section__timeline__step__checkbox:after {
    left: unset;
    right: -400%
}

@media all and (max-width: 767px) {
    .section__timeline__step__checkbox:after {
        top:unset;
        bottom: -400%;
        left: 50%
    }
}

.section__timeline__step:first-child .section__timeline__step__checkbox:before {
    display: none
}

.section__timeline__step:last-child .section__timeline__step__checkbox:after {
    display: none
}

.section__timeline__step.active .section__timeline__step__checkbox span {
    border-color: #262626;
    background: #262626
}

.section__timeline__step.active .section__timeline__step__checkbox span:before {
    display: block
}

.section__timeline__step.active--before .section__timeline__step__checkbox:before {
    background: #262626
}

.section__timeline__step.active--after .section__timeline__step__checkbox:after {
    background: #262626
}

.section__timeline__step p {
    max-width: 9vw;
    font-size: 1.125rem;
    line-height: 1.1em;
    font-weight: 700;
    color: #9c9894;
    margin: 0
}

@media screen and (max-width: 1024px) {
    .section__timeline__step p {
        max-width:11vw;
        font-size: .875rem;
        font-weight: 600
    }
}

@media all and (max-width: 767px) {
    .section__timeline__step p {
        max-width:unset;
        font-size: 1rem;
        font-weight: 700
    }
}

.section__timeline__step.active p {
    color: #262626
}

.pswp__custom-caption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    font-size: 18px;
    color: #fff;
    background: rgba(102,102,102,.4392156863);
    padding: 2px 14px
}

[data-pswp-caption] {
    position: relative
}

[data-pswp-caption]:before {
    content: attr(data-pswp-caption);
    position: absolute;
    left: 15px;
    top: 30px;
    opacity: 0;
    transition: .3s all;
    font-size: 16px;
    color: #fff;
    background: rgba(102,102,102,.4392156863);
    padding: 2px 10px
}

[data-pswp-caption]:hover:before {
    top: 15px;
    opacity: 1
}