.bb-teaser-box {
    color: #fff;

    @media (width < 768px) {
        margin-inline: -26px;
    }

    @media (width >= 768px) {
        aspect-ratio: 103 / 158;
        position: relative;
        overflow: hidden;
        box-shadow: 5px 3px 6px rgba(0,0,0,.15);
    }

    &:hover {

        .bb-teaser-box__content {
            @media (width >= 768px) {
                transform: translateY(0);
            }
        }
    }

    figure {
        display: flex;
        height: 100%;
        width: 100%;
        position: relative;

        @media (width < 768px) {
            display: none;
        }

        img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            display: block;
        }

        figcaption {
            position: absolute;
            left: 1rem;
            right: 1rem;
            bottom: 50px;
            text-align: center;
            color: inherit;
            font-family: 'Liebling';
            font-size: 26px;
            line-height: 34px;
            font-weight: 700;
            text-transform: uppercase;
        }
    } 

    .bb-teaser-box__content {
        background-color: #424967;
        text-align: center;
        padding: 40px 12px 40px;

        @media (width >= 768px) {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            right: 0;
            display: flex;
            flex-direction: column;
            transform: translateY(-100%);
            overflow-y: auto;
            transition: transform 0.6s ease-in-out;
        }


        h2 {
            color: inherit;
            font-family: 'Liebling';
            font-size: 26px;
            line-height: 34px;
            font-weight: 700;
            margin-bottom: 40px;
        }

        p {
            font-family: 'Liebling';
            font-size: 18px;
            line-height: 26px;
            text-align: left;
            margin-bottom: 40px;
        }

        p:not(.bb-teaser-box__subtitle) {
            @media (1240px > width >= 768px) {
                display: none;
            }
        }

        .bb-teaser-box__subtitle {
            font-size: 26px;
            line-height: 34px;
            font-weight: 500;
            text-align: center;
            margin-bottom: 20px;
            
            @media (1024px > width >= 768px) {
                display: none;
            }
        }

        div {
            text-align: center;

            @media (width >= 768px) {
                margin-top: auto;
            }
        }

        a {
            font-family: 'Liebling';
            border-radius: 10px;
            background-color: #424967;
            color: #fff;
            border: 1px solid #fff;
            display: inline-block;
            font-size: 18px;
            line-height: 18px;
            padding: 12px 36px;
            text-transform: uppercase;
            text-decoration: none;
            font-weight: 700;

            &:hover {
                color: #424967;
                background-color: #fff;
                border-color: #424967; 
            }
        }
    }
}