.video-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;

    @media screen and (max-width: 1100px) {
        margin-bottom: 0;
        flex-direction: column;
    }
}

.video-main {
    flex: 1 1 auto;
}

.video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video-thumbnails {
    max-height: 763px;
    padding: 0 10px;
    padding-top: 4px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 200px;
    flex: 0 0 auto;

    @media screen and (max-width: 1300px) {
        width: 150px;
    }

    @media screen and (max-width: 1600px) {
        max-height: 700px;
    }

    @media screen and (max-width: 1100px) {
        flex-direction: row;
        max-height: unset;
        max-width: 100%;
        width: 100%;
        margin-bottom: 24px;
        padding: 10px 0;
        padding-left: 4px;
    }
}

.video-thumb {
    cursor: pointer;
}

.video-thumb.active {
    border: 2px solid #006eff;
    border-radius: 4px;
    transform: scale(1.05);
    transition: transform 0.2s, border-color 0.2s;
}

.video-thumb img {
    width: 100%;
    display: block;
    object-fit: contain;

    @media screen and (max-width: 1100px) {
        max-width: 150px;
        width: unset;
    }
}