.editor_block {
    border: solid 2px transparent;
    display: flex;
    flex-direction: column;
    gap: var(--pad-2);
    border-radius: var(--radius);
    position: relative;
    min-height: 24px;

    & .actions {
        display: none;
        box-shadow: var(--shadow-x-offset) var(--shadow-y-offset)
            var(--shadow-size) var(--color-shadow);
        position: absolute;
        bottom: 0;
        width: 15rem;
        right: -16rem;
        padding: var(--pad-2);
        border: solid 1px var(--color-super-lowered);
        z-index: 1;
    }
}

.editor .editor_block:hover,
.editor .editor_block:focus,
.editor .editor_block:focus-within,
.editor .editor_block:focus-visible {
    border: dashed 2px var(--color-super-lowered);

    & .actions {
        display: flex;
    }
}

@media screen and (max-width: 900px) {
    .editor .editor_block {
        position: static;

        & .actions {
            width: 100dvw;
            max-height: 33.33%;
            border-radius: var(--radius) var(--radius) 0 0 !important;
            left: 0;
            right: unset;
        }
    }
}

@media screen and (min-width: 901px) {
    .editor .editor_block::after {
        content: "";
        position: absolute;
        top: 0;
        right: -4rem;
        width: 4rem;
        height: 100%;
    }
}
