.c-image-text {

    figcaption {
        margin-top: 1rem;
    }

    img {
        width: 100%;
    }

    @screen xs {
        display: flex;
        align-items: flex-start;

        img {
            width: 248px;
        }

        figcaption {
            flex: 1 1 auto;
            margin: 0 0 0 1rem;
            margin-top: 0;
        }
    }

    a {
        color: theme('colors.primary.400');

        &:hover,
        &:focus {
            color: theme('colors.primary.600');
        }
    }

    ul {
        list-style: disc;
    }

    ol {
        list-style: auto;
    }

    ul,
    ol {
        margin-top: .75em;
        padding-left: 1em;
    }

    p {
        display: block;
        margin: 0;
    }

    .c-button {
        color: #fff;
        margin-top: 1rem;

        &:hover,
        &:focus {
            color: #fff;
        }
    }
}

.c-image-text__image-wrapper {
    position: relative;
    flex: 1 0 auto;
    float: left;
    overflow: hidden;
}

.c-image-text__title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: .75rem;

    .text-white & {
        color: #fff;
    }
}

.c-image-text--inverted {
    flex-direction: row-reverse;

    figcaption {
        margin: 0 1rem 0 0;
    }
}

.c-image-text--wrapped {
    display: block;
    overflow: hidden;

    img {
        float: left;
        margin: 0 1rem 1rem 0;
    }

    figcaption {
        margin: 0;
    }

    &.c-image-text--inverted {
        img {
            float: right;
            margin: 0 0 1rem 1rem;
        }
    }
}

.c-image-text__title--primary {
    color: theme('colors.primary.500');
}

.c-image-text__title--secondary {
    color: theme('colors.secondary.500');
}

.c-image-text__title--black {
    color: #333;
}
