/* Content lift: a boxed pointer to another page, placed between article paragraphs
   to break long text into sections.
   Markup (generated with gbgen, Applari.fi/prototyypit/blokit/wp/blokit.py):
   .article-block.content-lift            spacing wrapper (article rhythm from base.css)
     > .content-lift-box.wrapper-alternate-color   the card; palette from colors.css
        > [.content-lift-media > figure > img]     only in the image variant
        > .content-lift-text                        eyebrow, title, text, link
   Layout (flex, widths, padding, radius) lives in the GB attributes; this file only
   covers what the attributes cannot: image fill, article overrides, mobile stacking. */

@media only screen and (min-width: 320px) {
    .content-lift .content-lift-media {
        overflow: hidden;
    }
    /* article-main.css gives every .gb-block-image a 40px bottom margin */
    .content-lift .content-lift-media .gb-block-image,
    .post-template-default .content-lift .content-lift-media .gb-block-image {
        margin: 0;
    }
    /* mobile: GB's heightMobile on the image block sets the height */
    .content-lift .content-lift-media img {
        display: block;
        width: 100%;
        object-fit: cover;
    }
    .content-lift .content-lift-text > .gb-headline:last-of-type {
        margin-bottom: 0;
    }
    .content-lift .content-lift-text .gb-button.btn-no-bg {
        margin-top: 12px;
    }
}

@media only screen and (min-width: 768px) {
    /* image column stretches to the text column height and the photo fills it */
    .content-lift-image .content-lift-box {
        align-items: stretch;
    }
    .content-lift .content-lift-media .gb-block-image,
    .content-lift .content-lift-media img {
        height: 100%;
    }
}
