.c-grid-teaser {
    background-color: theme('colors.primary.500');
    position: relative;
    display: block;
    height: 100%;
    min-height: 26rem;
    color: #fff;
    transition: all $transition-time linear;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: block;
        height: 100%;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .7) 100%);
        transition: background $transition-time linear;
    }

    &.c-grid-teaser--no-image {
        @apply bg-secondary-500;

        &::after {
            display: none;
        }
    }
}

a.c-grid-teaser {
    &:hover,
    &:focus {
        color: #fff;
    }

    &.c-grid-teaser--no-image {
        &:hover {
            @apply bg-secondary-600;
        }
    }
}

.c-grid-teaser__image {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    transform: scale(1);
    transition: transform $transition-time--short ease-in;

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

.c-grid-teaser__silhouette {
    @apply py-24 px-12;
    margin: 0 auto;
}

.c-grid-teaser__caption {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    z-index: 5;
    width: calc(100% - 3rem);
}

.c-grid-teaser__headline {
    @apply text-white text-3xl leading-tight;
    font-family: 'BaseFontFamily', sans-serif;
    font-weight: bold;
    margin-top: theme('margin.1');
    hyphens: auto;
}

.c-grid-teaser__topline {
    @apply text-base;
    font-family: 'HeadingFontFamily', 'BaseFontFamily', serif;
    font-weight: bold;
    text-transform: uppercase;
}

.c-grid-teaser__price {
    text-align: right;

    strong {
        font-size: theme('textSizes.xl');
    }
}
