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

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

    .bm-left {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .bm-right {
        flex: 0 0 35%;
        max-width: 35%;
    }
}

.bm-preview-stage {
    position: relative;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color4);
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.bm-current-preview,
.bm-original-overlay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bm-original-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

    .bm-original-overlay.is-holding {
        animation: bmRevealLeft 220ms ease-out forwards;
    }

    .bm-original-overlay.is-releasing {
        animation: bmHideRight 220ms ease-out forwards;
    }

@keyframes bmRevealLeft {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes bmHideRight {
    from {
        clip-path: inset(0 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 100%);
    }
}

.bm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.bm-gallery-btn {
    border: 1px solid var(--color4);
    border-radius: .5rem;
    overflow: hidden;
    background: var(--color5);
    padding: 0;
    transition: transform .2s ease, border-color .2s ease;
}

    .bm-gallery-btn img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        display: block;
    }

    .bm-gallery-btn.is-active {
        border-color: var(--color2);
        transform: translateY(-2px);
    }

.bm-color-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
}

.bm-color-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    border: 2px solid var(--color4);
    transition: transform .2s ease, border-color .2s ease;
}

    .bm-color-btn.is-active {
        border-color: var(--color2);
        transform: scale(1.05);
    }

.bm-range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}