.video-banner {
    position: relative;
    width: 100%;
    height: 720px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* na banneru je naskladano vice vrstev podle z-index */

.video-banner__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-banner__overlay {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 0 2rem;
    max-width: 740px;
    width: 100%;
    box-sizing: border-box;
}

.video-banner__overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.video-banner__h1 {
    position: absolute;
    z-index: 8;
    padding: 5.5rem 2rem 0 2rem;
    width: 100%;
}

.video-banner__h1 h1 {
    margin: 0;
}

.video-banner__h1 .line1 {
    display: block;
    font-size: 115px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.video-banner__h1 .line2 {
    display: block;
    font-size: 27px;
    font-weight: 700;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .video-banner {
        height: 340px;
    }

    .video-banner__h1 {
        padding: 1rem 0.5rem 0 0.5rem;
    }

    .video-banner__h1 .line1 {
        font-size: 100px;
    }

    .video-banner__h1 .line2 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .video-banner__h1 .line1 {
        font-size: 80px;
    }
}

@media (max-width: 520px) {
    .video-banner__h1 {
        padding-top: 2rem;
    }
    .video-banner__h1 .line1 {
        font-size: 64px;
    }
}

@media (max-width: 410px) {
    .video-banner__h1 .line1 {
        font-size: 56px;
    }
}

/* video je prekryto cernym gradientem shora dolu 10% - 30% */
.video-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}


/* efekt ztmaveni videa, kdyz je videt mene nez 50% videa 
  (pak je video zastaveno a ma nastaveno .is-paused) 
  */
.video-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.6s ease;
    /* pod overlay, nad ::before */
    z-index: 2;
    pointer-events: none;
}

.video-banner.is-paused::after {
    opacity: 1;
}