.steps {
    display: flex;
}

.steps.text-align-center {
    text-align: center;
}

.steps.text-align-left {
    text-align: left;
}

.steps.text-align-center .image img {
    margin-left: auto;
    margin-right: auto;
}

.steps .image img {
    max-height: auto;
    width: auto;
}

.steps .title {
    color: var(--steps-title-color);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.16;
    margin-bottom: 15px;
    position: relative;
}

.steps .item .title:after {
    content: '';
    width: 81px;
    height: 36px;
    background: url(../../images/blocks/steps/arrow.svg) no-repeat 0 0;
    position: absolute;
    top: -10px;
    right: -70px;
    filter: var(--steps-arrow-color);
}

.steps .item:last-child .title:after {
    display: none;
}   

.steps .image {
    width: 100%;
    height: 70px;
    overflow: hidden;
    margin-bottom: 20px;
}

.steps .text {
    font-size: 16px;
    color: var(--steps-color);
    margin: 0;
}

/* On primary */
.section--primary .steps .title,
.section--primary-half-width .steps .title {
    color: var(--steps-title-color-on-primary);
}

.section--primary  .steps .text,
.section--primary-half-width .steps .text {
    color: var(--steps-color-on-primary);
}

.section--primary .steps .item .title:after,
.section--primary-half-width .steps .item .title:after {
    filter:  var(--steps-arrow-color-on-primary);
}

/* On secondary */
.section--secondary  .steps .title {
    color: var(--steps-title-color-on-secondary);
}

.section--secondary  .steps .text {
    color: var(--steps-color-on-secondary);
}

.section--secondary .steps .item .title:after {
    filter:  var(--steps-arrow-color-on-secondary);
}

/* On background */
.section--background-image  .steps .title {
    color: var(--steps-title-color-on-background);
}

.section--background-image  .steps .text {
    color: var(--steps-color-on-background);
}

.section--background-image .steps .item .title:after {
    filter:  var(--steps-arrow-color-on-background);
}


@media only screen and (min-width: 991px) {
    .steps {
        gap: 90px;
        justify-content: center;
    } 
}

@media only screen and (max-width: 991px) {

    .steps {
        row-gap: 30px;
        flex-wrap: wrap;
    }

    .steps .item {
        padding-left: 35px; 
    }

    .steps .item .title:after {
        top: 50px;
        right: 0;
        left: -70px;
        transform: rotate(267deg) scaleX(-1);
    }
    
}

@media only screen and (max-width: 767px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .steps .item {
        width: 100%;
        margin-bottom: 10px;
    }
}