/*------------------------------------*\
    
    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)

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

/* ================================
   Base Styles
   ================================ */

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

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

.image-text__img {
    position: relative;
}

.image-text__img__full {
    height: 305px;
    position: relative;
}

.image-text__img__full img {
    border-radius: 12px;
    border: 1px solid #D2D2D2;
    backdrop-filter: blur(8.850000381469727px);
}

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

.image-text__img__title {
    margin-top: 12px;
}

.image-text__img__title h4 {
    margin-bottom: 0;
}

.play-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-primary-bold);
    font-size: 20px;
    font-weight: normal;
    line-height: 1.3em;
    text-decoration: none;
    z-index: 1;
    border-radius: 12px;
    background: rgba(1, 2, 32, 0.27);
}

.play-bttn svg {
    width: 111px;
    height: auto;
    transition: all ease-in-out 0.3s;
}

.play-bttn span {
    margin-left: -25px;
    position: relative;
}

.image-text__callout {
    background: var(--color-white);
    padding: 80px 25px;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    position: relative;
    overflow: visible;
}

.image-text__callout::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translate(-50%, 0);
    width: 95px;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 50, 46, 0.00) 0%, var(--color-secondary) 49.52%, rgba(191, 50, 46, 0.00) 98.56%);
    transition: width 0.6s ease-out;
}

.image-text__callout::after {
    content: "";
    position: absolute;
    top: -5px;
    opacity: 1;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 4px 0 var(--color-white);
}

.media-slider .gif-scroll-section.fx-slide.js-card-animated-item{
    margin-top: 10px;
}

.media-slider .gif-scroll-section.fx-slide.js-card-animated-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translate(-50%, 0);
    width: 95px;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 50, 46, 0.00) 0%, var(--color-secondary) 49.52%, rgba(191, 50, 46, 0.00) 98.56%);
    transition: width 0.6s ease-out;
}

.media-slider .gif-scroll-section.fx-slide.js-card-animated-item::after {
    content: "";
    position: absolute;
    top: -5px;
    opacity: 1;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 4px 0 var(--color-white);
}

.image-text__callout.is-animating::after {
    animation: dotRunAroundCallout 5.5s ease-in-out infinite;
}

.gif-scroll-section + .gif-scroll-section {
    margin-top: var(--section-margins);
}

@keyframes dotRunAroundCallout {
    0% {
        opacity: 1;
        offset-distance: var(--offset-start);
    }
    63.64% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
    100% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
}

.image-text__img__callout {
    margin: 54px 0;
    background: #021F4A;
    padding: 26px 0 26px 30px;
    border-radius: 12px;
    height: 243px;
    position: relative;
}

.image-text__img__callout img {
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--color-white);
    box-shadow: 0 0 15.7px 5px rgba(191, 50, 46, 0.08);
}

.image-text__info {
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: 10px 30px 10px 8px;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 10px;
    color: #303030;
    font-size: 18px;
    line-height: 1.3em;
    font-family: var(--font-primary-bold);
    font-weight: normal;
    position: absolute;
    box-shadow: 0 0 15.7px 5px rgba(191, 50, 46, 0.08);
    z-index: 1;
}

.image-text__info__check {
    width: 27px;
    height: 27px;
    position: relative;
    background: var(--color-light-grey);
    border-radius: 5px;
    font-size: 23px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1199px) {
    .image-text__info {
        padding: 10px 20px 10px 20px;

        > span {
            display: block;
            width: calc(100% - 37px);
            padding-left: 10px;
            position: relative;
            top: 2px;
        }
    }
}

.image-text__info--top {
    top: -54px;
    left: 0;
}

.image-text__info--bottom {
    bottom: -54px;
    left: 0;
}

.image-text__img__transparent {
    position: relative;
    height: 338px;
    border: 1px solid #D2D2D2;
    border-radius: 12px;
    overflow: visible;
    text-align: center;
}

.image-text__img__transparent img {
    border-radius: 12px;
}

.image-text__img__transparent::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translate(-50%, 0);
    width: 95px;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 50, 46, 0.00) 0%, var(--color-secondary) 49.52%, rgba(191, 50, 46, 0.00) 98.56%);
    transition: width 0.6s ease-out;
}

.image-text__img__transparent::after {
    content: "";
    position: absolute;
    top: -5px;
    opacity: 1;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 4px 0 var(--color-white);
}

.image-text__img__transparent.is-animating::after {
    animation: dotRunAroundTransparent 5.5s ease-in-out infinite;
}

@keyframes dotRunAroundTransparent {
    0% {
        opacity: 1;
        offset-distance: var(--offset-start);
    }
    63.64% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
    100% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
}

.image-text__img__overlay {
    position: relative;
    margin-bottom: 38px;
    margin-right: 38px;
    height: 282px;
    z-index: 1;
}

.image-text__img__overlay img {
    border-radius: 12px;
    backdrop-filter: blur(8.850000381469727px);
}

.image-text__img__overlay::before {
    content: '';
    position: absolute;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    left: 18px;
    top: 18px;
    border-radius: 12px;
    z-index: -1;
    background: #021F4A;
}

.image-text__img__overlay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 12px;
    background: #010220;
    opacity: 0.27;
}

.image-text__img__overlay.no-overlay::after {
    display: none;
}

.overlay-left {
    position: absolute;
    left: 26px;
    top: 22px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.2) 100%);
    height: calc(100% - 44px);
    width: 1px;
    z-index: 1;
    
    /* CSS Variables for animation */
    --height-percent: 100;
    --circle-scale: 1;
    --circle-opacity: 1;
    --before-width: 198px;
    
    /* Apply variables */
    height: calc((var(--height-percent) * 1%) - 44px);
}

.overlay-left::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.00);
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
    left: -5px;
    top: 50%;
    transform: translate(0, -50%) scale(var(--circle-scale));
    opacity: var(--circle-opacity);
}

.overlay-left::before {
    content: '';
    position: absolute;
    width: var(--before-width);
    height: 1px;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}

.image-text__img__box {
    border-radius: 12px;
    background: var(--color-white);
    padding: 46px 40px;
    box-shadow: 0 4px 26.4px 0 rgba(191, 50, 46, 0.25);
    text-align: center;
}

.image-text__img__box h4 {
    color: var(--color-black);
    font-size: 35px;
    line-height: normal;
    margin-bottom: 28px;
}

.image-text__img__box img {
    margin: 0 auto;
}

.image-text__img__box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.image-text__img__box.has-predefined-icons .image-text__img__box-icon {
    color: var(--color-secondary);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
}

.image-text__img__box.has-predefined-icons h4 {
    margin-bottom: 5px;
}

.image-text__img__box.has-custom .image-text__img__box-icon {
    width: 50px;
    height: 50px;

    margin-left: auto;
    margin-right: auto;

    svg {
        height: 100%;
        width: 100%;

        * {
            fill: var(--color-secondary);
        }
    }
}

.image-text__img__box p {
    font-size: 23px;
    line-height: 1.3em;
}

.image-text__img__listing {
    padding-bottom: 22px;
}

.image-text__img__listing .image-text__info {
    position: relative;
    box-shadow: 0 0 15.7px 5px rgba(191, 50, 46, 0.08);
    margin-bottom: 10px;
}

.image-text__img__listing .image-text__info span {
    width: calc(100% - 37px);
}

.image-text__img__listing .image-text__info__check {
    color: var(--color-primary);
}

.hthm-contained-overlap + .page-footer {
    margin-top: var(--section-margins);
}

.half-text-half-media .image-text__img__callout {
    max-width: 100%;
}

.half-text-half-media .image-text__img__callout.is-autoplay,
.half-text-half-media .image-text__img__full.is-autoplay {
    padding: 0;
    height: auto;
}

.half-text-half-media .image-text__img__callout video,
.half-text-half-media .image-text__img__full video {
    width: 100%;
    height: 100%;
    display: block;
}


.half-text-half-media .image-text__img__callout.is-autoplay .video-embed-wrapper,
.half-text-half-media .image-text__img__full.is-autoplay .video-embed-wrapper {
    aspect-ratio: 16 / 7.5;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.half-text-half-media .image-text__img__callout.is-autoplay .video-embed-wrapper iframe,
.half-text-half-media .image-text__img__callout.is-autoplay .video-embed-wrapper video,
.half-text-half-media .image-text__img__full.is-autoplay .video-embed-wrapper iframe,
.half-text-half-media .image-text__img__full.is-autoplay .video-embed-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.half-text-half-media .image-text__img__full.is-autoplay .video-embed-wrapper video {
    object-fit: contain;
}

.half-text-half-media .video-unmute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.half-text-half-media .video-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: scale(1.1);
}

.half-text-half-media .video-unmute-btn svg {
    width: 20px;
    height: 20px;
}

/* ================================
   Tablet Styles (768px and up)
   ================================ */

@media (min-width: 768px) {
    .image-text__img__full {
        /* height: 612px; */
    }

    .play-bttn {
        font-size: 29px;
    }

    .play-bttn span {
        margin-left: -30px;
    }

    .image-text__callout {
        padding: 80px 63px;
    }

    .image-text__img__callout {
        margin: 29px 0 23px;
        padding: 50px 0 52px 58px;
        height: 471px;
    }

    .hthm-contained-gif .image-text__img__callout.is-autoplay {
        height: auto;
    }

    .image-text__info {
        font-size: 25px;
    }

    .image-text__info--top {
        top: -29px;
        left: auto;
        right: 60px;
    }

    .image-text__info--bottom {
        bottom: -45px;
        left: 23px;
    }

    .image-text__callout .image-text__text {
        margin-top: 50px;
    }

    .image-text__img__transparent {
        width: 600px;
        margin: 0 auto;
        height: 610px;
        height: auto;
        padding: 25px;
    }

    .image-text__img__overlay {
        margin-bottom: 60px;
        max-width: 531px;
        width: 100%;
        height: 511px;
    }

    .image-text--left .image-text__img__overlay {
        margin-right: 0;
        margin-left: 30px;
    }

    .image-text--right .image-text__img__overlay {
        margin-left: unset;
    }

    .image-text__half.has-checklist:not(.has-callout-card) .image-text__img__overlay,
    .image-text__half:not(.has-checklist):not(.has-callout-card) .image-text__img__overlay {
        max-width: 531px;
        width: 100%;
        height: 511px;
    }

    .image-text__img__overlay::before {
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        left: 30px;
        top: 30px;
    }

    .overlay-left {
        left: 42px;
        top: 37px;
        height: calc(100% - 74px);
    }

    .overlay-left::before {
        width: 275px;
    }

    .image-text__img--box .image-text__img__overlay {
        width: 478px;
        height: 460px;
    }

    .image-text__img__box {
        margin-left: 30px;
        width: 321px;
        margin-top: -271px;
        position: relative;
        z-index: 1;
    }

    .image-text--left .image-text__img__box {
        margin-left: 310px;
        margin-right: 0;
    }

    .image-text--right .image-text__img__overlay {
        margin-right: auto;
        margin-left: auto;
    }

    .image-text__img__listing {
        padding-bottom: 0;
        position: absolute;
        z-index: 2;
        top: 32px;
        left: 59px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .image-text__img__listing .image-text__info {
        width: max-content;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .image-text__img__listing .image-text__info span {
        width: auto;
    }

    .image-text--right .image-text__img--box .image-text__img__listing {
        left: auto;
        right: 122px;
    }

    .js-video-checklist-video .play-bttn {
        padding-bottom: 15px;
        padding-right: 15px;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .js-video-checklist-video .play-bttn span {
        line-height: 150px;
    }
}

@media (max-width: 767px) {
    .image-text__callout .image-text__text {
        margin-bottom: 30px;
        margin-top: 0;
    }
}

@media (max-width: 1199px) {
    .gif-scroll-section .flex-row {
        flex-direction: column-reverse;
    }

    .image-text__callout .image-text__text {
        margin-bottom: 50px;
        margin-top: 0;
    }

    .image-text--left .image-text__img__overlay,
    .image-text__img__box {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ================================
   Desktop Styles (1200px and up)
   ================================ */

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

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

    .image-text--right .image-text__text {
        padding-right: 48px;
    }

    .image-text--left .image-text__text {
        padding-left: 48px;
    }

    .image-text--right .image-text__img__box {
        margin-left: -22px;
    }

    .image-text__callout {
        padding: 120px 63px;
    }

    .image-text__callout::before {
        width: 0;
    }

    .image-text__callout.is-animating::before {
        width: 95px;
    }

    .image-text__callout::after {
        top: 0px;
        left: auto;
        right: auto;
        margin: 0;
        offset-path: inset(0 round 12px);
        offset-distance: var(--offset-start, 50%);
        offset-rotate: 0deg;
        opacity: 0;
    }

    .image-text__callout.is-animating::after {
        opacity: 1;
    }

    .image-text__img__callout {
        margin: 26px 12px 26px auto;
        padding: 43px 0 46px 52px;
        height: 471px;
        max-width: 476px;
    }

    .hthm-contained-gif .image-text__img__callout.is-autoplay {
        height: auto;
    }

    .image-text__info--top {
        top: -26px;
        right: 21px;
    }

    .image-text__info--bottom {
        bottom: -26px;
        left: 23px;
    }

    .image-text__callout .image-text__text {
        margin-top: 0;
        padding-right: 0;
    }

    .image-text__img__transparent {
        width: 100%;
        margin: 0;
        height: auto;
        padding: 50px 25px;
    }

    .image-text__img__transparent::before {
        width: 0;
    }

    .image-text__img__transparent.is-animating::before {
        width: 95px;
    }

    .image-text__img__transparent::after {
        top: 0px;
        left: auto;
        right: auto;
        margin: 0;
        offset-path: inset(0 round 12px);
        offset-distance: var(--offset-start, 12.5%);
        offset-rotate: 0deg;
        opacity: 0;
    }

    .image-text__img__transparent.is-animating::after {
        opacity: 1;
    }

    .image-text__img__overlay {
        margin-bottom: 60px;
        width: 530px;
        height: 510px;
    }

    .image-text--left .image-text__img__overlay {
        margin-right: 0;
        margin-left: 0;
    }

    .image-text__img__overlay::before {
        width: calc(100% + 32px);
        height: calc(100% + 32px);
        left: 34px;
        top: 34px;
    }

    .image-text__half.has-checklist:not(.has-callout-card) .image-text__img__overlay,
    .image-text__half:not(.has-checklist):not(.has-callout-card) .image-text__img__overlay {
        max-width: 478px;
        width: 100%;
        max-height: 460px;
        min-height: 100%;
    }

    .overlay-left {
        left: 47px;
        top: 40px;
        height: calc(100% - 80px);
    }

    .overlay-left::before {
        width: 315px;
    }

    .image-text__img__box {
        margin-left: 0;
    }

    .image-text--left .image-text__img__box {
        margin-left: auto;
        margin-right: 0;
    }

    .image-text__img__listing {
        top: 32px;
        left: 27px;
    }

    .image-text--right .image-text__img--box .image-text__img__listing {
        left: 46px;
    }

    .hthm-contained-gif .gif-scroll-section:not(.fx-slide) .image-text__callout {
        padding: 40px;
    }

    .hthm-contained-gif .gif-scroll-section:not(.fx-slide) .image-text__callout .image-text__text.has-scrollable-content {
        max-height: 590px;
        padding-right: 30px;
    }

    .hthm-contained-gif .gif-scroll-section:not(.fx-slide) .image-text__callout .image-text__text {
        max-width: unset;
    }

    .image-text__img__box.has-custom .image-text__img__box-icon {
        width: 64px;
        height: 64px;
    }

    .hthm-contained-gif .gif-scroll-section:not(.fx-slide) .image-text__callout .flex-row:not(.flex-opposite) .image-text__info--top {
        right: 20px;
    }

    .image-text__img__box {
        margin-top: 0;
        position: absolute !important;
        bottom: -120px;
    }

    .image-text--left .image-text__img__box {
        right: 0;
    }
}

@media ( min-width: 1440px ) {
    .half-text-half-media:not(.hthm-contained-gif) > .container {
        max-width: 1440px;
    }

    .image-text--right .image-text__img--box .image-text__img__listing {
        left: 126px;
        right: unset;
    }
}

/* ================================
   Large Desktop Styles (1600px and up)
   ================================ */

@media (min-width: 1600px) {
    .play-bttn svg {
        width: 150px;
    }
    
    .image-text__img__full {
        height: auto;
        max-height: 738px;
    }

    .image-text--right .image-text__text {
        padding: 0 48px;
    }

    .image-text--left .image-text__text {
        padding: 0 48px;
    }

    .image-text__img__callout {
        margin: 26px 0;
        padding: 58px 0 62px 70px;
        height: 556px;
        max-width: 640px;
    }

    .hthm-contained-gif .image-text__img__callout.is-autoplay {
        height: auto;
    }

    .image-text__info--top {
        right: -46px;
    }

    .image-text__info--bottom {
        left: 30px;
    }

    .image-text__callout .image-text__text {
        margin-top: 0;
        padding-right: 0;
        max-width: 616px;
    }

    .image-text__half.has-checklist:not(.has-callout-card) .image-text__img__overlay,
    .image-text__half:not(.has-checklist):not(.has-callout-card) .image-text__img__overlay {
        max-width: 575px;
        max-height: 553px;
        min-height: 100%;
    }

    .image-text__img__overlay {
        margin-bottom: 72px;
        width: 575px;
        height: 553px;
    }

    .image-text--left .image-text__img__overlay {
        margin-right: 0;
        margin-left: 0;
    }

    .image-text--right .image-text__img--box {
        margin-left: 0;
    }

    .image-text--right .image-text__img__box {
        margin-left: 0;
    }

    .image-text--right .image-text__img__overlay {
        margin-right: 92px;
    }

    .image-text__img__overlay::before {
        width: calc(100% + 39px);
        height: calc(100% + 35px);
        left: 36px;
        top: 37px;
    }

    .overlay-left {
        left: 52px;
        top: 44px;
        height: calc(100% - 88px);
    }

    .image-text__img--box .image-text__img__overlay {
        width: 575px;
        height: 553px;
    }

    .image-text__img__box {
        margin-left: 0;
        width: 386px;
        margin-top: 0;
        padding-bottom: 52px;
    }

    .image-text--left .image-text__img__box {
        margin-left: auto;
        margin-right: 0;
    }

    .image-text__img__box h4 {
        font-size: 40px;
    }

    .image-text__img__listing {
        top: 34px;
        left: 30px;
    }

    .image-text--right .image-text__img--box .image-text__img__listing {
        /* left: 90px; */
        left: 135px;
    }

    .tax-resource_category .image-text--right .image-text__img--box .image-text__img__listing {
        left: 90px;
    }

    .image-text__img__listing .image-text__info {
        font-size: 25px;
    }

    .half-text-half-media.hthm-contained-overlap.bg-white + .bg-blue {
        margin-top: var(--push-medium);
    }

    .half-text-half-media.hthm-contained-overlap.bg-white + .bg-white {
        padding-top: var(--push-medium);
    }

    .hthm-contained-gif .gif-scroll-section:not(.fx-slide) .image-text__callout {
        padding: 80px 63px;
    }
}

/* Blinking border animation (record button indicator) */
.border-animation-blinking .image-text__img__transparent.is-animating::after,
.border-animation-blinking .image-text__callout.is-animating::after {
    animation: dotBlinkCallout 2s ease-in-out infinite;
}

@keyframes dotBlinkCallout {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(191, 50, 46, 0.6), 0 0 4px 0 var(--color-white);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(191, 50, 46, 0), 0 0 4px 0 var(--color-white);
    }
}

/* ================================
   Training Video Accordion Styles
   ================================ */

.training-video-accordion__video-thumbnail {
    height: auto;
}


/* ================================
   Slick Slider Styles
   ================================ */


.media-slider .slick-dots{
    display: none !important;
}
