.at-textAndImage__contentWrapper {
    margin-bottom: 2rem;
}

.at-textAndImage__content {
    margin-bottom: 1rem;
}

.at-textAndImage__imageWrapper {
    position: relative;
    max-width: 34rem;
    padding: 3rem 3rem 3rem 0;
}

.at-textAndImage--imgText .at-textAndImage__imageWrapper {
    padding: 3rem 0 3rem 3rem;
}

.at-textAndImage__imageWrapper::after {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    width: calc(100% - 5rem);
    height: 100%;
    content: '';
    z-index: 0;
    background-color: var(--primaryColor500);
}

.at-textAndImage--imgText .at-textAndImage__imageWrapper::after {
    right: auto;
    left: 0;
}

.at-textAndImage__image {
    position: relative;
    display: block;
    width: 100%;
    z-index: 1;
}

@media (min-width: 1024px) {
    .at-textAndImage__inner {
        display: flex;
        align-items: flex-start;
    }

    .at-textAndImage--imgText .at-textAndImage__inner {
        flex-direction: row-reverse;
    }

    .at-textAndImage__contentWrapper {
        margin-bottom: 0;
        flex: 1 1 calc(100% - 34rem - 6rem);
    }

    .at-textAndImage--textImg .at-textAndImage__contentWrapper {
        margin-right: 6rem;
    }

    .at-textAndImage--imgText .at-textAndImage__contentWrapper {
        margin-left: 6rem;
    }

    .at-textAndImage__imageWrapper {
        position: relative;
        flex: 0 1 34rem;
    }
}
