.ri-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#riRoot input[type="text"][disabled] {
    background-color: var(--color1) !important;
}

@media (min-width: 992px) {
    .ri-split {
        flex-direction: row;
        align-items: flex-start;
    }

    .ri-left {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .ri-right {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

.ri-preview-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--color4);
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ri-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ri-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.ri-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 84px;
    height: 60px;
    border: 1px solid var(--color4);
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
}

    .ri-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .ri-thumb.is-active {
        outline: 2px solid var(--color2);
        outline-offset: 2px;
    }

.ri-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--color4);
    background: var(--color5);
    color: var(--color2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: .3s ease-out all;
}

    .ri-thumb-remove:hover {
        color: var(--color3);
        transform: scale(1.05);
    }