.c-person {
    @screen sm {
        display: flex;
        padding-bottom: 1rem;
    }
}

.c-person--round-image {
    .c-person__image {
        height: 8rem;
        width: 8rem;
        border-radius: 50%;

        @screen sm {
            height: 16rem;
            width: 16rem;
        }
    }

    .c-person__image-wrapper {
        height: 8rem;
        width: 8rem;
        flex: 0 0 auto;
        min-height: 8rem;
        max-height: 8rem;

        @screen sm {
            height: 16rem;
            width: 16rem;
        }
    }
}

.c-person__image-wrapper {
    position: relative;
    min-height: 12rem;
    max-height: 18rem;

    @screen sm {
        flex: 0 0 38.2%;
        width: 38.2%;
        height: 15.5rem;
    }
}

.c-person__image-wrapper + .c-person__text {
    @screen sm {
        margin-left: 1.5rem;
    }
}

.c-person__image {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.c-person__text {
    flex: 1 1 auto;
    padding: 1rem 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    @screen sm {
        padding: 1rem 0;
    }
}

.c-person__name {
    font-size: 1.875rem;
    font-weight: 700;

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

.c-person__title {
    color: theme('colors.primary.500');
    font-weight: 700;
    margin-top: .5rem;

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

.c-person__description {
    color: theme('colors.gray.900');
    font-size: 1rem;
    margin-top: 1.25em;

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

.c-person__contact {
    list-style: none;
    margin-top: 1.25rem;
    padding-left: 0;

    @screen md {
        margin-top: 1.5rem;
    }

    li:first-of-type {
        margin-bottom: .5rem;

        @screen md {
            margin-right: 1rem;
        }
    }

    a,
    span {
        text-decoration: none;
        display: flex;
        align-items: center;
        color: theme('colors.gray.800');

        @screen md {
            font-size: .875em;
        }

        .c-icon {
            font-size: .875em;
            top: 0;
            margin-right: .25rem;
            color: theme('colors.gray.800');

            // stylelint-disable
            .text-white & {
                color: #fff;
            }
            // stylelint-enable
        }

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

    // Do not want this behaviour in the backend.
    a:hover,
    a:focus {
        color: theme('colors.gray.900');
    }

    a:hover {
        text-decoration: underline;
    }

    a:focus {
        outline: 1px dotted currentColor;
    }
}
