.custom-steps {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.custom-steps h2 {
    margin-top: 0;
}
span.custom-step-number {
    background: #00442a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
        min-width: 3rem;
    border-radius: 100%;
}

.custom-step-content {
    margin-top: 2rem;
}

span.custom-step-number:before {
    content: "";
    width: calc(100% + 4rem);
    height: 2px;
    background: #00442a;
    position: absolute;
    left: 0;
    z-index: -1;
}

.custom-step:last-of-type span.custom-step-number:before {
    background: #fff;
}

.custom-step {
    position: relative;
    flex: 1;
}


.custom-step-content h3 {
    margin: 2rem 0 1.5rem 0;
}

.custom-step figure {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    width: 100%;
}

.custom-step figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Vertical */
.vertical span.custom-step-number:before {
    height: calc(100% + 4rem);
    width: 2px;
    top: 4rem;
    left: 1.5rem;
}
.vertical .custom-steps {
    flex-direction: column;
    gap: 0;
    margin: 0;
}
.vertical .step-number-heading {
    display: flex;
    gap: 1rem;
}

.vertical .step-number-heading h3 {
    margin: 0;
}

.vertical .custom-step p {
    margin-left: 4rem;
    margin-top: 1rem;
}

.content-right figure {
    position: relative;
    height: 0;
    padding-bottom: 120%;
    overflow: hidden;
    width: 100%;
}

.content-right figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.block-steps.vertical {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.vertical .content-left {
    flex: 1;
}

.vertical .content-right {
    flex: 1;
}




/* Tablet */
@media only screen and (max-width: 900px) {

.block-steps {
    display: flex;
    flex-direction: column;
}

.vertical .content-right {
    width: 100%;
}
    
    

.block-steps:not(.vertical) .custom-steps {
    flex-direction: column;
}

.block-steps:not(.vertical) .custom-steps {
    border-left: 2px solid;
    padding-left: 3rem;
    margin-left: 1rem;
    gap: 6rem;
}

.block-steps:not(.vertical) .step-number-heading {
    display: flex;
    align-items: center;
}

.block-steps:not(.vertical) span.custom-step-number {
    margin-left: -4.5rem;
    margin-right: 1.5rem;
    margin-top: -1.5rem;
}

.block-steps:not(.vertical) span.custom-step-number:before {
    display: none;
}

.block-steps:not(.vertical) .custom-step {
    display: flex;
    flex-direction: column-reverse;
}

.block-steps:not(.vertical) .custom-step-content h3 {
    margin-top: 0;
}

.block-steps:not(.vertical) .custom-step-content {
    margin-top: 0;
}

.block-steps:not(.vertical) .custom-step:last-of-type:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    left: -5rem;
}

.block-steps:not(.vertical) .custom-step:last-of-type > * {
    position: relative;
    z-index: 2;
}
    
}