.c-text-teaser {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid theme('colors.gray.100');
    height: 100%;
    color: theme('colors.gray.900');
    transition: box-shadow $transition-time--short ease-in;

    &.c-text-teaser--round-edges {
        border-radius: 10px;
    }
}

a.c-text-teaser {
    &:hover,
    &:focus {
        box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .2);
    }

    &.c-text-teaser--round-edges {
        border-radius: 10px;
    }
}

.c-text-teaser__image-wrapper {
    position: relative;
    height: 15rem;
    overflow: hidden;
    flex-shrink: 0;

    &.c-text-teaser--round-edges {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    @screen sm {
        height: 19rem;
    }
}

.c-text-teaser__image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform $transition-time--short ease-in;

    a.c-text-teaser:hover & {
        transform: scale(1.05);
    }
}

.c-text-teaser__caption {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: #fff;

    &.c-text-teaser--round-edges {
        border-radius: 10px;
    }
}

.c-text-teaser__topline {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .5rem;
    text-transform: none;
    color: theme('colors.gray.800');
}

p.c-text-teaser__headline {
    font-size: 1.875rem;
    font-family: 'BaseFontFamily', sans-serif;
    text-transform: none;
    color: theme('colors.primary.500');
    font-weight: bold;
    margin-top: 0;
}

.c-teaser-teaser__subline {
    margin-top: .75rem;
}

.c-text-teaser__price {
    text-align: right;
    margin-top: auto;
    padding-top: .75rem;
}
