.c-big-teaser-parallax {
    position: relative;
}

.c-big-teaser-parallax__content-wrapper {
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 35rem;
    width: 100%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, .7);

    .c-button--color-primary {
        border-color: theme('colors.primary.500');
        background-color: theme('colors.primary.500');
    }

    .c-button--color-secondary {
        border-color: theme('colors.secondary.500');
        background-color: theme('colors.secondary.500');
    }

    .c-button--color-cta {
        border-color: theme('colors.cta.500');
        background-color: theme('colors.cta.500');
    }

    .c-button--color-transparent {
        border: 2px solid theme('colors.primary.500');
        background-color: transparent;
    }

    &:hover,
    &:active,
    &:focus {
        .c-button--color-primary {
            border-color: theme('colors.primary.600');
            background-color: theme('colors.primary.600');
        }

        .c-button--color-secondary {
            border-color: theme('colors.secondary.600');
            background-color: theme('colors.secondary.600');
        }

        .c-button--color-cta {
            border-color: theme('colors.cta.600');
            background-color: theme('colors.cta.600');
        }

        .c-button--color-transparent {
            border-color: theme('colors.primary.500');
            background-color: theme('colors.primary.500');
        }
    }
}

.c-big-teaser-parallax__content-wrapper.paraxify {
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

// Fix for iOS since background-attachment: fixed is not working here. Safari takes the whole height of the document and not the viewport itself.
@media screen and (-webkit-touch-callout: none) {
    .c-big-teaser-parallax__content-wrapper.paraxify {
        background-attachment: unset;
    }
}

.c-big-teaser-parallax__caption {
    position: absolute;
    margin: 0 auto;
    color: theme('colors.white');
    bottom: 4em;
    left: 2em;
    right: 2em;
    z-index: 3;
    padding: 0 1rem 1rem;
    transition: top .2s;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    @screen md {
        left: 4em;
        right: auto;
    }
}

.c-big-teaser-parallax__caption--centered {
    text-align: center;
    left: auto;
    right: auto;
    width: 100%;
}

.c-big-teaser-parallax__caption--right {
    text-align: right;

    @screen md {
        left: 2em;
        right: 4em;
    }
}

.c-big-teaser-parallax__topline {
    font-family: 'BaseFontFamily', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
}

.c-big-teaser-parallax__title {
    color: #fff;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    margin-top: .25rem;
    hyphens: auto;
    word-break: break-word;

    @screen md {
        font-size: 3rem;
    }
}

.c-big-teaser-parallax__subline {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-top: .75rem;

    @screen md{
        overflow: visible;
        white-space: initial;
    }
}

.c-big-teaser-parallax__button {
    margin-top: 1.5rem;
}
