/*------------------------------------*\
    
    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block. 
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.image-text .flex-row {
    align-items: center
}

.image-text__img__wrap {
    height: 220px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(46,0,8,0.15);
    position: relative;
    margin-bottom: 30px;
}

.image-text__img__wrap img {
    border-radius: 4px;
}

.image-video-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43,43,43,0.6);
    border-radius: 4px;
}

.image-video-btn svg {
    width: 58px;
    height: auto;
}

.ribbon {
    position: absolute;
    max-width: 168px;
    bottom: 10px;
    right: -52px;
    width: 100%;
}

@media (min-width: 768px) {
    .image-text__img__wrap {
        height: 291px;
        max-width: 431px;
        margin-left: auto;
        margin-right: auto;
        padding: 12px;
        width: 100%;
    }

    .image-video-btn {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
    }
}

@media (min-width: 1200px) {
    .image-text__img__wrap {
        height: auto;
        max-width: 550px;
        padding: 12px;
        margin: 0;
    }

    .ribbon {
        max-width: 215px;
        bottom: 13px;
        right: -15px;
    }

    .image-text h2 {
        padding-bottom: 12px;
    }

    .image-video-btn svg {
        width: 72px;
    }

    .half-and-half--fleet .half-and-half-text__wrapper p {
        padding-bottom: 15px;
    }

    .half-and-half--fleet .half-and-half-text {
        padding: 98px 16px;
    }

    .half-and-half--fleet .half-and-half-text__wrapper h2 {
        line-height: 1.07em;
    }
}

@media ( min-width: 1440px ) {
    .ribbon {
        right: -66px;
    }
}