/*------------------------------------*\
    
    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__img {
    position: relative;
}

.image-text__img--union {
    margin-bottom: 35px;
}

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

.content-union {
    position: absolute;
    width: 128px;
    bottom: -35px;
    left: 15px;
    z-index: 1;
}

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

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

.image-text__img--with-text {
    margin-bottom: 103px;
}

.image-text__img__info {
    position: absolute;
    left: -10px;
    bottom: -103px;
    filter: drop-shadow(0px 3px 13px rgba(0, 0, 0, 0.10));
    color: #080A0F;
}

.image-text__img__info-wrap {
    background: #fff;
    width: 331px;
    padding: 12px 35px 12px 12px;
    border-left: 5px solid #DAA308;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.image-text__img__info-wrap h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #080A0F;
}

.image-text__img__info-wrap p{
    color: #080A0F;
}

.image-text__img--double {
    padding-top: 37px;
}

.image-text--left .text-image__image__big {
    width: calc(100% - 38px);
    height: 225px;
    position: relative;
    margin-left: auto;
}

.image-text--right .text-image__image__big {
    margin-left: 0;
    width: calc(100% - 38px);
}

.text-image__image__sml {
    height: 120px;
    width: 146px;    
    position: absolute;
    top: 0;
}

.image-text--left .text-image__image__sml {
    right: auto;
}

.image-text--right .text-image__image__sml {
    right: 0;
}

@media (min-width: 768px) {
    .image-text__img--union {
        margin-bottom: 0;
    }

    .image-text__text {
        margin-bottom: 35px;
    }
    
    .content-union {
        width: 233px;
        bottom: -62px;
        left: 30px;
    }

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

    .image-text__img--with-text {
        margin-bottom: 0px;
    }

    .image-text__img__info {
        bottom: -10px;
    }

    .image-text__img__info-wrap {
        width: 475px;
        padding: 15px 45px 15px 25px;
        clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
    }

    .image-text__img__info-wrap h4 {
        font-size: 18px;
    }

    .image-text__img--double {
        padding-top: 75px;
    }
    
    .image-text--left .text-image__image__big,
    .image-text--right .text-image__image__big {
        width: calc(100% - 75px);
        height: auto;
    }
    
    .text-image__image__sml {
        height: 241px;
        width: 292px;
    }
}

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

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

    .content-union {
        bottom: -58px;
    }

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

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

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

    .image-text__img__info-wrap h4 {
        font-size: 20px;
    }

    .image-text__img--double {
        padding-top: 75px;
    }
    
    .image-text--left .text-image__image__big,
    .image-text--right .text-image__image__big {
        width: calc(100% - 75px);
        height: auto;       
    }

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

    .image-text--right .text-image__image__big{
        margin-left: 0;
    }
    
    .text-image__image__sml {
        height: 241px;
        width: 292px;
        right: 0;
    }

    .image-text--slider .image-text__text {
        padding: 0;
    }
}

.image-text-slider {
    margin: 0 -30px 30px;
}

.slider-orientation--horizontal .js-image-text-for .image-text__img,
.slider-orientation--vertical .js-image-text-for .image-text__img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-orientation--horizontal .js-image-text-for .image-text__img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slider-orientation--vertical .js-image-text-for .image-text__img {
    width: 75%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 3 / 4;
}

.slider-orientation--horizontal .js-image-text-for .image-text__img img,
.slider-orientation--vertical .js-image-text-for .image-text__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.image-text__item {
    padding: 0 30px 20px;
}

.custom_paging {
    position: absolute;
    top: -10px;
    right: 15px;
    filter: drop-shadow(0px 3px 13px rgba(0, 0, 0, 0.10));
}

.custom_paging li {
    display: none;
    background: #fff;
    width: 81px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-right: 3px solid #DAA308;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    color: #9A9A9A;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.20em;
    letter-spacing: 0.75px;
}

.count {
    color: #000;
    font-size: 15px;
    line-height: 1em;
    margin-top: -10px;
    padding-right: 2px;
    font-weight: 700;
}

.all-count {
    font-size: 15px;
    line-height: 1em;
    margin-top: 10px;
    font-weight: 400;
    padding-left: 1px;
}

.custom_paging li.slick-active {
    display: flex;
}

.custom_paging li::before {
    display: none;
}

.image-text-nav-slider {
    margin: 0 -8px;
    padding: 0 80px;
}

.image-text-nav-slider .image-text__item  {
    padding: 0 8px;
}

.image-text-nav-slider .image-text__img {
    position: relative;
    cursor: pointer;
}

.image-text-nav-slider .slick-arrow  {
    bottom: 0;
    margin: 0 0 0 0;
    top: 50%;
    transform: translate(0, -50%);
}

.image-text-nav-slider .slick-prev  {
    left: 8px;
}


.image-text-nav-slider .slick-slide > div{
    display: flex;
}


.image-text-nav-slider .slick-next  {
    left: auto;
    right: 8px;
}

.image-text__img_hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: rgba(8,10,15,0.25);
}

.image-text-nav-slider .image-text__img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 2px solid #DAA308;
    background: rgba(218,163,8,0.5);
    opacity: 0;
}

.slick-current .image-text__img::after {
    opacity: 1;
}

.slick-current .image-text__img_hover {
    background: none;
}

@media (min-width: 768px) {

    .custom_paging li {
        width: 102px;
        height: 56px;
        font-size: 30px;
    }

    .image-text-nav-slider {
        padding: 0 96px;
    }

}

@media (min-width: 1200px) {
    .image-text-nav-slider {
        padding: 0 106px;
    }

    .image-text-slider {
        margin: 0 -30px 10px;
    }

    .image-text--left.image-text--slider .image-text__image {
        padding-left: 43px;
    }

    .image-text--right.image-text--slider .image-text__image {
        padding-right: 43px;
    }

    .js-image-text-for .image-text__img {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .slider-orientation--horizontal .js-image-text-for .image-text__img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .slider-orientation--vertical .js-image-text-for .image-text__img {
        width: 60%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 3 / 4;
    }

    .slider-orientation--horizontal .js-image-text-for .image-text__img img,
    .slider-orientation--vertical .js-image-text-for .image-text__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}
