[data-template="steps"] {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: var(--wrapper-size);
    font-family: var(--font-family);
    font-size: 20px;
    line-height: normal;
    color: var(--color-text-main);
}

[data-template="steps"] .steps {
    padding: calc(var(--gap-size) * 2) 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap-size) * 2);
}

[data-template="steps"] .steps .steps__stepsWrapper {
    padding-left: 0;
    margin: 0 auto;
    width: calc(100vw - calc(calc(var(--gap-size) * 2) * 2));
    max-width: 100%;
    list-style-type: none;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: calc(var(--gap-size) * 1.25);
    counter-reset: steps;
}

[data-template="steps"] .stepsWrapper .stepsWrapper__stepItem {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--color-wrapper);
    overflow: hidden;
}
[data-template="steps"] .stepsWrapper .stepsWrapper__stepItem::before {
    content: counter(steps);
    width: 100%;
    aspect-ratio: 280 / 260;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 180px;
    /*color: var(--color-main);*/
    color: var(--color-steps-text);
    counter-increment: steps;
    background-color: var(--color-fill);
}

[data-template="steps"] .stepsWrapper .stepsWrapper__stepItem:has(.stepItem__stepPicture)::before {
    z-index: 0;
}

[data-template="steps"] .stepItem .stepItem__stepPicture {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    max-width: 280px;
    aspect-ratio: 280 / 260;
    object-fit: cover;
}

[data-template="steps"] .stepItem .stepItem__stepDetails {
    padding: calc(var(--gap-size) * 1.25);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap-size) / 2);
    font-size: 16px;
    font-weight: 400;
}

[data-template="steps"] .stepDetails .stepDetails__stepTitle {
    font-size: 24px;
}

@media only screen and (max-width: 1440px) {

    [data-template="steps"] .steps .steps__stepsWrapper {
        flex-wrap: wrap;
    }

    [data-template="steps"] .stepsWrapper .stepsWrapper__stepItem {
        min-width: 280px;
    }

}

@media only screen and (max-width: 1024px) {

    [data-template="steps"] .steps {
        padding: var(--gap-size) 0;
        gap: var(--gap-size); 
    }
    
    [data-template="steps"] .steps .steps__stepsWrapper {
        width: calc(100vw - calc(var(--gap-size) * 2));
        display: grid;
        grid-template-columns: repeat(
            auto-fill, 
            minmax(160px, 1fr)
        );
        gap: var(--gap-size);
    }

    [data-template="steps"] .stepsWrapper .stepsWrapper__stepItem {
        min-width: auto;
        max-width: 100%;
    }
    [data-template="steps"] .stepsWrapper .stepsWrapper__stepItem::before {
        aspect-ratio: 160 / 150;
        font-size: 103.35px;
    }
    
    [data-template="steps"] .stepItem .stepItem__stepPicture {
        max-width: 100%;
        aspect-ratio: 160 / 150;
    }

    [data-template="steps"] .stepItem .stepItem__stepDetails {
        padding: calc(var(--gap-size) / 2) calc(var(--gap-size) / 1.5);
        gap: calc(var(--gap-size) / 4);
        font-size: 12px;
    }

    [data-template="steps"] .stepDetails .stepDetails__stepTitle {
        font-size: 18px;
    }

}