/* 
Flex Tekst & Media

Algemene CSS instellingen voor de module.
Verwijder deze instellingen niet.
*/

.image-video-switch.oembed * {
  height: 100%;
}

.flex_module.tekst_media .tekst-media-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
	gap: 90px;
}

.flex_module.tekst_media .tekst-media-wrapper.rechts{
    flex-direction: row-reverse;
}

.flex_module.tekst_media .media-container img{
    object-fit: cover;
    object-position: center;
    width: 100%; height: 100%;
	min-height: 486px;
}

.flex_module.tekst_media .esl-button.fl-button{
    margin-top: 20px;
}

.flex_module.tekst_media .media-container{
    width: 45%;
}

.flex_module.tekst_media .content-container{
    max-width: 55%;
    width: 100%;
}

.flex_module.tekst_media .media-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.flex_module.tekst_media .tekst-media-wrapper h1,
.flex_module.tekst_media .tekst-media-wrapper h2,
.flex_module.tekst_media .tekst-media-wrapper h3{
    margin: 0; line-height: 1.2em;
    margin-bottom: 40px;
}

/* .flex_module.tekst_media .image-video-switch.video.video {
    position: absolute; 
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 10px;
} */

.flex_module.tekst_media .image-video-switch.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.flex_module.tekst_media .image-video-switch.video .play-button {
    border-radius: 4px;
    background: #BB1932;
    padding: 1rem;
    position: absolute;
    z-index: 2;
    border: unset;
    transition: all 250ms ease-in-out;
}
.flex_module.tekst_media .media-container.playing .image-video-switch.video .play-button {
	translate: 0 calc(-100% - 20px); left: 20px; bottom: auto; top: 100%; right: auto;
}

.flex_module.tekst_media .image-video-switch.video .play-button svg {
    transition: fill 250ms ease-in-out;
}

.flex_module.tekst_media .image-video-switch.video .play-button:is(:hover, :active, :focus),
.flex_module.tekst_media .image-video-switch.video:is(:hover, :active, :focus) .play-button {
    background-color: #fff;
}

.flex_module.tekst_media .image-video-switch.video .play-button:is(:hover, :active, :focus) svg,
.flex_module.tekst_media .image-video-switch.video:is(:hover, :active, :focus) .play-button svg {
    fill: #BB1932;
}

.flex_module.tekst_media .image-video-switch.video .play-button > div {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.flex_module.tekst_media .image-video-switch.video .play-button .icons {
    background-color: transparent;
    border-radius: 4px;
    color: white;
    padding: .125rem;
}

.flex_module.tekst_media .image-video-switch.video .play-button .icons #pause {
    visibility: hidden;
}

.flex_module.tekst_media .usps-wrapper{
    padding-top: 60px;
}

.flex_module.tekst_media .usp-container{
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.flex_module.tekst_media .usp-item{
    display: flex; flex-direction: row;
    gap: 20px; align-items: center;
}

.flex_module.tekst_media .usp-item p{
    margin: 0;
}

.flex_module.tekst_media .usp-item img {
    max-width: 54px;
    min-width: 54px;
    aspect-ratio: 1;
    border-radius: 5px;
    background: rgba(118, 3, 34, 0.08);
    padding: 15px;
}

@media screen and (max-width: 1060px) {
    .flex_module.tekst_media .tekst-media-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
    }



    .flex_module.tekst_media .tekst-media-wrapper.rechts{
        flex-direction: column;
    }
    
    .flex_module.tekst_media .tekst-media-wrapper h1,
    .flex_module.tekst_media .tekst-media-wrapper h2,
    .flex_module.tekst_media .tekst-media-wrapper h3{
        margin: 0; line-height: 1.2em;
        margin-bottom: 20px;
    }

    .flex_module.tekst_media .usps-wrapper{
        padding-top: 40px;
    }

    .flex_module.tekst_media .media-container{
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        min-height: 0;
    }

    .flex_module.tekst_media .media-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center;
    }    
    
    .flex_module.tekst_media .content-container{
        max-width: 100%;
        width: 100%;
    }

    .flex_module.tekst_media .media-container img,
    .flex_module.tekst_media .image-video-switch.img{
        max-width: 100%; max-height: 400px;
        width: 100%;
    }

}

@media screen and (min-width: 1060px) {
    .flex_module.tekst_media .tekst-media-wrapper {
        align-items: center;
    }
    .flex_module.tekst_media .media-container{

    }

    .flex_module.tekst_media .media-container {
        display: flex;
        align-items: stretch;
        height: auto; /* Belangrijk: niet 100%, laat het meegroeien met content-container */
    }

    .flex_module.tekst_media .image-video-switch.video {
        position: relative;
        flex: 1;
        height: auto;
        width: 100%;
    }

    .flex_module.tekst_media .image-video-switch.video video {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}


@media screen and (max-width: 767px) {   
    .flex_module.tekst_media .usps-wrapper{
        padding-top: 20px;
    }

    .flex_module.tekst_media .tekst-media-wrapper {
        flex-direction: column-reverse; gap: 20px;
    }


    .flex_module.tekst_media .media-container img{
        max-height: 350px;
    }

    .flex_module.tekst_media .usp-container{
        display: grid; grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
}
