/* Module 02 video layout, including injected lessons. */
#mainTargetDiv .step-vid {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #1f1f1f;
}

/* Keep the existing enlarged-media overlay sizing. */
#mainTargetDiv .step-vid:not(.enlarge):not(.first-vid-enlarge) {
    width: min(500px, 100%);
    max-width: calc(100% - 1rem);
}

#mainTargetDiv .step-vid > video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

#mainTargetDiv .step-vid > .vid-cntrl-btns {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 40px;
    flex: 0 0 40px;
    background: #252525;
}

#mainTargetDiv .step-vid > .vid-cntrl-btns > button {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

#mainTargetDiv .step-vid > .vid-cntrl-btns > button + button {
    box-shadow: inset 1px 0 #555;
}

#mainTargetDiv .step-vid > .vid-cntrl-btns > button:hover,
#mainTargetDiv .step-vid > .vid-cntrl-btns > button:active,
#mainTargetDiv .step-vid > .vid-cntrl-btns > button.active {
    background: #444;
}

@media (max-width: 720px) {
    #mainTargetDiv .step-vid:not(.enlarge):not(.first-vid-enlarge) {
        max-width: 100%;
        margin: 0 0 0.75rem;
        float: none;
    }
}
