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

    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)

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

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

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

.image-text__text__wrap {
    text-align: center;
    padding-bottom: 35px;
}

.image-text__text__wrap__center .sub-heading::before {
    left: 50%;
    top: -30px;
    transform: translate(-50%, 0);
}

.image-text__text__wrap .btns-gap {
    margin-top: 20px;
}

.image-text__img__wrap {
    position: relative;
    height: auto;
    box-shadow: 0 5px 20px rgba(50,56,62,0.1);
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-text {
    position: relative;
}

.image-text .container {
    position: relative;
    z-index: 2;
}

.home .image-buttons + .image-text {
    padding-top: 0;
}

.image-text-pattern-brick {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('/wp-content/uploads/2024/08/Garage-Door-Tile-for-background-1.jpg');
    width: 100%;
    height: 100%;
    background-size: 150px;
    opacity: .55;
}

.bottom-video-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.bottom-video-block h3 {
    width: 100%;
    text-align: center;
    padding-top: 40px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.bottom-video-block__video {
    position: relative;
    width: calc(50% - 20px);
    overflow: hidden;
    height: 150px;
}

.bottom-video-block__video .video__btn svg {
    transition: all .3s;
}

.bottom-video-block__video .video__btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vintage-ribbon {
    position: absolute;
    left: -63px;
    top: 9px;
    width: 200px;
    height: 29px;
    -o-object-fit: cover;
    object-fit: cover;
    transform: rotate(327deg);
}


@media (max-width: 360px) {
    .video-bttn svg {
        width: 70px;
    }
}

@media (min-width: 1200px) {
    .image-text__text__wrap {
        text-align: left;
        padding-bottom: 0;
        max-width: 573px;
    }

    .video-bttn:hover {
        background: none;
    }

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

    .image-text__text__wrap__center .sub-heading::before {
        left: -31px;
        top: -30px;
        transform: none;
    }

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

    .image-text__text__wrap .btns-gap {
        margin-top: 25px;
    }

    .bottom-video-block__video .video__btn:hover svg {
        transform: scale(1.2);
    }
}

.image-text__img {
    position: relative;
    z-index: 1;
}

.image-text__img__wrap {
    z-index: 1;
}

.image-text__img__pattern {
    position: absolute;
    font-size: 456px;
    line-height: 1em;
    top: -48px;
    left: -214px;
    color: #EBEBE8;
    z-index: -1;
}

.image-text--right .image-text__img__pattern {
    right: -214px;
    left: unset;
}

.image-text--bg-white .image-text__img__pattern {
    color: #EBEBE8;
    top: -25px;
}

.image-text--bg-light-blue .image-text__img__pattern {
    color: #DFECF5;
    top: -25px;
}

.image-text__pattern {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    bottom: 0;
}

.js-image-text,
.js-before-after-gallery {
    margin: -16px;
    padding-bottom: 44px;
}

.image-text__item {
    padding: 16px;
}

.image-text__item  .image-text__img__wrap {
    box-shadow: 0 5px 16px rgba(50,56,62,0.1);
}

.js-image-text .slick-arrow,
.js-before-after-gallery .slick-arrow {
    top: auto;
    bottom: 0;
    transform: translate(0, 0);
}

.js-image-text .slick-prev,
.js-before-after-gallery .slick-prev {
    left: 50%;
    margin-left: -120px;
}

.js-image-text .slick-next,
.js-before-after-gallery .slick-next{
    right: 50%;
    margin-right: -120px;
}

@media (min-width: 768px) {
    .js-image-text,
    .js-before-after-gallery {
        padding-bottom:54px;
    }

    .js-image-text .slick-prev,
    .js-before-after-gallery .slick-prev {
        margin-left: -145px;
    }

    .js-image-text .slick-next,
    .js-before-after-gallery .slick-next {
        margin-right: -145px;
    }
}

@media (min-width: 1200px) {
    .js-image-text,
    .js-before-after-gallery {
        padding-bottom: 74px;
    }

    .js-image-text .slick-prev,
    .js-before-after-gallery .slick-prev {
        margin-left: -164px;
    }

    .js-image-text .slick-next,
    .js-before-after-gallery .slick-next {
        margin-right: -164px;
    }
}