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

    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)

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

.bg-dark-gray .image-text__text .sub-heading{
    color: #fff;
}

.bg-dark-gray .image-text__text blockquote{
    color: #fff;
}

.bg-dark-gray .image-text__text ul li::before {
    background: #fff;
}

.bg-dark-gray .image-text__text .btn{
    background: none;
}

.bg-dark-gray .image-text__text .btn-secondary:hover{
    color: #fff;
}

.bg-dark-gray .image-text__text .btn-tertiary:hover{
    color: #ccc;
}

.bg-dark-gray .image-text__text .btn-tertiary:hover::after{
    color: #ccc;
}

.bg-dark-gray .image-text__text p a:not(.btn),
.bg-dark-gray .image-text__text ul li a {
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 4px 1px;
    color: #FFFFFF;
    font-weight: normal;
}

.bg-dark-gray .image-text__text h3,
.bg-dark-gray .image-text__text h4,
.bg-dark-gray .image-text__text h5,
.bg-dark-gray .image-text__text h6,
.bg-dark-gray .image-text__text .btn-primary,
.bg-dark-gray .image-text__text .btn-secondary {
    color: #fff;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

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

.image-text__image {
    position: relative;
    height: 190px;
}

.image-text__image img {
    border-radius: 10px;
}

.image-text__text {
    margin-top: 25px;
}

.image-text__text--homepage h2 {
    color: #000;
}

.image-text__text--homepage .btn{
    font-size: 20px;
}

p:last-child .btn,
.btn:last-child {
    margin-top: 20px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bttn svg {
    width: 52px;
    height: 52px;
    transition: all .3s;
}

.image-text__text .btn + .btn{
    margin-top: 20px;
}

@media (min-width: 768px) {
    .image-text__image {
        height: 300px;
    }

    .image-text__text {
        margin-top: 35px;
    }

    .video-bttn svg {
        width: 89px;
        height: 89px;
    }

    p:last-child .btn,
    .btn:last-child {
        margin-top: 25px;
    }

    .image-text__text .btn + .btn{
        margin-top: 20px;
    }
}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__image {
        height: auto;
    }

    .image-text__text {
        margin-top: 0;
        /* max-width: 507px; */
    }

    .image-text--right.has-best-place-icon .image-text__text {
        padding-right: 100px;
    }

    .image-text--left.has-best-place-icon .image-text__text {
        padding-left: 100px;
    }

    .image-text--left .image-text__text {
        margin-left: auto;
    }

    .video-bttn:hover {
        background: rgba(0,0,0,0.3);
    }

    .video-bttn:hover svg {
        transform: scale(1.1);
    }

    .image-text.bg-dark-gray .btn-primary:hover::before {
        height: calc(100% + 12px);
        border-radius: 100px;
    }

    .image-text__text .btn + .btn{
        margin-top: 20px;
        margin-left: 0;
    }

    .bg-dark-gray .image-text__text p a:not(.btn):hover,
    .bg-dark-gray .image-text__text ul li a:hover {
        background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 100%);
        background-position: 0 100%;
        background-repeat: repeat-x;
        background-size: 4px 50px;
        color: #000;
    }
}