/* Local responsive videos for Home, Landing Test and Thank You pages. */
.zenko-local-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #07142f;
}

.zenko-local-video__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #07142f;
    object-fit: cover;
}

.zenko-local-video--front {
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .10);
}

.zenko-local-video--front .zenko-local-video__video {
    border-radius: inherit;
}

/* Override the old padding-ratio implementation on the Thank You VSL. */
.zty-video-card__ratio.zenko-local-video {
    padding-top: 0;
    aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
    .zenko-local-video--landing,
    .zenko-local-video--front {
        width: min(100%, 430px);
        margin-right: auto;
        margin-left: auto;
        aspect-ratio: 4 / 5;
    }

    .zenko-local-video--front {
        border-radius: 24px;
    }

    .zty-video-card {
        max-width: 430px;
    }

    .zty-video-card__ratio.zenko-local-video--thank-you {
        aspect-ratio: 4 / 5;
    }
}

/* Home page: keep the local video at its real aspect ratio.
   This overrides old theme rules that force a fixed height/max-height
   and prevents the empty navy area below the player. */
.zenko-local-video--front {
    aspect-ratio: auto;
    height: auto;
}

.hero__media .zenko-local-video--front .zenko-local-video__video {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: inherit;
}

@media (max-width: 700px) {
    .zenko-local-video--front {
        width: 100%;
        max-width: 430px;
        aspect-ratio: auto;
    }

    .hero .hero__media .zenko-local-video--front .zenko-local-video__video {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        border-radius: 24px;
    }
}
