/*------------------------------------*\
    
    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 .flex-top {
    align-items: flex-start;
}

.image-text__img {
    position: relative;
    height: 225px;
}

.image-text__img:has(img.img-aspect-ratio) {
    height: auto;
}

.image-text--profile .image-text__img {
    max-width: 323px;
    height: 390px;
    margin: 0 auto;
}

.image-text__img img {
    border-radius: 8px;
}

.image-text__text {
    margin-bottom: 30px;
}

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

.video-bttn svg {
    width: 82px;
    height: auto;
    transition: all .3s;
    border-radius: 50%;
}

.video-bttn:hover svg path {
    transition: all .3s;
}

.image-text__video {
    padding: 12px;
    border-radius: var(--border-radius);
    background: rgba(243,191,26,0.25);
}

.bg-yellow .image-text__video {
    background: rgba(255,255,255,0.5);
}

.bg-yellow .video-bttn svg path {
    fill: var(--white);
}

.image-text__img__caption {
    font-size: 18px;
    margin-top: 8px;
}

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

    .image-text__img img {
       border-radius: var(--border-radius);
    }

    .image-text__text {
        margin-bottom: 40px;
    }

    .image-text__text blockquote {
        padding: 35px 50px;
    }

    .video-bttn svg {
        width: 115px;
    }

    .image-text__video {
        padding: 24px;
    }
}

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

    .image-text__img {
        height: auto;
    }

    .image-text--profile .image-text__img {
        margin-bottom: 72px;
    }

    .image-text__text {
        margin-bottom: 0;
    }

    .video-bttn:hover svg path {
        fill: var(--primary-hover);
    }

    .video-bttn:hover svg {
        box-shadow: 0px 0px 0px 6px rgba(243,191,26,0.25);
        -webkit-box-shadow: 0px 0px 0px 6px rgba(243,191,26,0.25);
        -moz-box-shadow: 0px 0px 0px 6px rgba(243,191,26,0.25);
    }
}

.image-text--profile .image-text__wrap {
    justify-content: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 0 72px;
}

.image-text__left,
.image-text__right {
    width: 100%;
}

.image-text--profile .image-text__right {
    max-width: 390px;
}

.image-text__left {
    text-align: center;
    padding: 0 9px;
}

.image-text__shadow {
    padding: 12px;
    border-radius: var(--border-radius);
    background: var(--lightest-grey);
    height: 237px;
    position: relative;
    margin-bottom: 38px;
}

.image-text__shadow:last-child {
    margin-bottom: 0;
}

.bg-yellow .image-text__shadow {
    background: rgba(255, 255, 255, 0.50);
}

.image-text--profile .image-text__shadow {
    box-shadow: none;
    padding: 16px;
}

.image-text__info {
    width: max-content;
    min-width: 248px;
    height: auto;
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translate(-50%, 0);
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 12px;
    padding: 20px 30px;
}

.image-text--profile .image-text__info {
    width: 100%;
    bottom: -72px;
    padding: 20px 24px;
}

.image-text__info__image {
    position: relative;
    z-index: 1;
    min-width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text__info__image::before {
    content: '';
    position: absolute;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: var(--white);
    border-radius: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.image-text__info__image i {
    font-size: 30px;
}

.image-text__info span {
    font-family: var(--font-family-heading);;
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    text-transform: capitalize;
    position: relative;
    padding-right: 21px;
    display: block;
}

.image-text__info span::after {
    content: '\e909';
    font-family: 'icomoon';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    font-weight: normal;
    font-size: 16px;
    line-height: 1em;
}

@media (min-width:768px) {
    .image-text__left {
        padding: 0;
    }

    .image-text__shadow {
        padding: 0;
        height: 350px;
        margin-bottom: 58px;
        box-shadow: 0 0 0 12px var(--lightest-grey);
    }

    .bg-yellow .image-text__shadow {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.50);
    }

    .image-text__info {
        min-width: 266px;
        bottom: -58px;
    }

    .image-text--profile .image-text__info {
        width: 390px;
    }

    .image-text__info__image {
        min-width: 76px;
        height: 76px;
    }

    .image-text__info__image::before {
        width: calc(100% - 14px);
        height: calc(100% - 14px);
    }

    .image-text__info__image i {
        font-size: 41px;
    }
}

@media (min-width:1200px) {
    .image-text--profile .image-text__wrap {
        padding: 0;
    }

    .image-text--large {
        padding-bottom: 58px;
    }

    .image-text__left {
        width: calc(50% + 89px);
        text-align: left;
    }

    .bg-textured-gray .image-text__left {
        width: calc(50% - 17px);
    }

    .image-text--profile .image-text__left {
        width: calc(50% + 75px);
    }

    .image-text__right {
        width: calc(50% - 89px);
        padding-left: 35px;
    }

    .bg-textured-gray .image-text__right {
        width: calc(50% + 14px);
        padding-left: 35px;
    }

    .flex-opposite .image-text__right {
        padding-left: 0;
        padding-right: 67px;
    }

    .bg-textured-gray .flex-opposite .image-text__right {
        padding-right: 35px;
    }

    .image-text--profile .image-text__right {
        margin-left: 59px;
        padding-right: 0;
        padding-left: 0;
    }

    .image-text--profile .flex-opposite .image-text__right {
        margin-left: 0;
        margin-right: 59px;
        padding-right: 0;
        padding-left: 0;
    }

    .image-text__shadow {
        height: auto;
        margin-bottom: 0;
        box-shadow: 0 0 0 16px var(--lightest-grey);
    }

    .bg-yellow .image-text__shadow {
        box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.50);
    }

    .flex-row .image-text__shadow {
        margin-left: 16px;
    }

    .flex-row.flex-opposite .image-text__shadow {
        margin-left: 0;
        margin-right: 16px;
    }

    .image-text__info {
        min-width: 258px;
        padding: 20px 25px;
    }

    .image-text__info:hover {
        color: var(--black);
        background: var(--primary-hover);
    }
}