﻿.c-video-content {
    width: 100%;
}

.c-video-container {
    max-width: var(--normal);
    margin: 0 auto;
    display: flex;
    padding: 1em 5em;
}

.c-video-container .box-iframe {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    margin-bottom: 0;
}

.c-video-container .box-iframe iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 5px;
    overflow: hidden;
}

.c-video-container.has-text {
    grid-gap: 1em;
    padding: 1em var(--padding-big-sides-desktop) !important;
}

.c-video-container.text-right.has-text {
    grid-gap: 1em;
    padding: 1em var(--padding-big-sides-desktop) !important;
    flex-direction: row-reverse;
}

.c-text-and-video {
    max-width: calc(50% - 0.5em);
}

.c-title-in-video {
    display: flex;
}

.c-title-in-video h2 {
    font-size: 1.5rem;
    color: var(--main-blue);
    font-weight: 700;
    border-bottom: 1px solid var(--main-blue);
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
}

.c-v-cont {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5%;
}

.has-text .c-v-cont {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

@media only screen and (max-width: 70em) {
    .c-video-container {
        padding: 1em var(--padding-sides-tablet) 1em var(--padding-sides-tablet);
    }

    .c-title-in-image h2 {
        font-size: 1.5rem;
        color: var(--main-blue);
        font-weight: 700;
        border-bottom: 1px solid var(--main-blue);
        margin-bottom: 0.5em;
        padding-bottom: 0.5em;
    }

    .c-video-container.has-text {
        padding: 1em var(--padding-sides-tablet) !important;
    }

    .c-video-container.text-right.has-text {
        padding: 1em var(--padding-sides-tablet) !important;
        flex-direction: row-reverse;
    }
}

@media only screen and (max-width: 50em) {
    .c-video-container {
        padding: 1em var(--padding-sides-mobile) 1em var(--padding-sides-mobile);
    }

    .c-video-container.has-text {
        padding: 1em var(--padding-sides-mobile) !important;
        flex-wrap: wrap;
        grid-gap: 0.5em;
    }

    .c-video-container.text-right.has-text {
        padding: 1em var(--padding-sides-mobile) !important;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        grid-gap: 0.5em;
    }

    .c-text-and-video {
        width: 100%;
        max-width: 100%;
    }

    .c-video-container .i-cont {
        max-width: 100%;
        flex-grow: 1;
    }

    .c-video-container.text-right.has-text .c-text-and-video {
        margin-top: 0.25em;
    }

    .c-title-text h1 {
        font-size: var(--font-title-mobile);
        border-bottom: 1px solid var(--main-blue);
        margin: 0;
        padding: 0;
    }
}
