.c-slider-teaser {
    display: block;
    height: 100%;
    min-height: 15.375rem; // 246px
}

.c-slider-teaser--linked {
    text-decoration: none;
    overflow: hidden;

    &:hover,
    &:focus {
        .c-slider-teaser__image {
            transform: scale(1.05);
        }

        .c-slider-teaser__text {
            padding-bottom: 1.25rem;
        }
    }
}

// Eye-Able contrast bugfix (see: NCT-1082)
.c-slider-teaser--has-image {
    background-color: #333333!important;
}

.c-slider-teaser__content {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;

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

.c-slider-teaser__content-rounded {
    border-radius: 10px;

    &::after {
        border-radius: 0 0 10px 10px; // Or full radius if needed
    }

    img {
        border-radius: 10px;
    }
}


.c-slider-teaser--gradient-50 {
    &::after {
        opacity: .5;
    }
}

.c-slider-teaser--gradient-20 {
    &::after {
        opacity: .2;
    }
}

.c-slider-teaser--gradient-0 {
    &::after {
        opacity: 0;
    }
}

.c-slider-teaser__content--primary-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-primary-500) 100%);
    }
}

.c-slider-teaser__content--secondary-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-secondary-500) 100%);
    }
}

.c-slider-teaser__content--accent-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-accent-500) 100%);
    }
}

.c-slider-teaser__content--cta-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-cta-500) 100%);
    }
}

.c-slider-teaser__content--ambient-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-ambient-500) 100%);
    }
}

.c-slider-teaser__image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform $transition-time;
}

.c-slider-teaser__text {
    z-index: 3;
    margin-top: auto;
    padding: 1rem;
    color: #fff;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    transition: padding $transition-time;
}

.c-slider-teaser__text--white-background {
    background: #fff;
    padding: .75rem;
    max-width: 20rem;
    width: calc(100% - 4rem);
    margin-bottom: 1.5rem;

    .c-slider-teaser__topline {
        font-weight: 900;
    }

    .c-slider-teaser__title {
        color: theme('colors.primary.500');
        text-transform: none;
    }

    .c-slider-teaser__subline {
        margin-top: .25rem;
    }

    .c-slider-teaser__topline,
    .c-slider-teaser__subline {
        color: theme('colors.gray.900');
    }

}

.c-slider-teaser__topline {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: .25rem;
}

.c-slider-teaser__title {
    font-size: 1.625rem;
    font-weight: bold;
    color: #fff;
    font-family: 'BaseFontFamily', sans-serif;
    line-height: 1.2;
    margin-top: 0;
}

p.c-slider-teaser__title {
    text-transform: none;
}

.c-slider-teaser__subline {
    font-size: 1rem;
    margin-top: .5rem;
}
