.phonemos_wikipage {
    max-width: 1000px;

    /* don't show the copy anchors */
    & h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        & button {
            display: none;
        }
    }

    /** tables */
    & .pm-table-container {
        & table {
            width: 100%;
            table-layout: fixed;
            border: 1px solid #c1c7d0;
            border-collapse: collapse;
            & th,
            td {
                padding: 8px;
                border: 1px solid #c1c7d0;

                & p {
                    margin: 0;
                }
                & > p {
                    text-align: left;
                }
            }
            & th {
                background-color: #f4f5f7;
            }
            & td.ak-renderer-table-number-column {
                background-color: #f4f5f7;
                width: 42px;
            }
        }

        &[data-layout="wide"] {
            width: 1440px !important;
        }
        &[data-layout="full-width"] {
            /* adjust in your layouts */
            width: calc(100vw);
        }
    }

    /** layouts */
    & div[data-layout-section="true"] {
        display: flex;
        clear: both;
        margin-top: 20px;

        & div[data-layout-column="true"] {
            flex: 1;
        }

        & div + div {
            margin-left: 32px;
        }
    }

    /** breakout */
    .fabric-editor-block-mark {
        &[data-mode="wide"] {
            width: 1440px !important;
        }
        &[data-mode="full-width"] {
            /* adjust in your layouts */
            width: calc(100vw);
        }

        &[data-align="end"] {
            text-align: right;
            p {
                margin: 0px !important;
            }
        }
        &[data-align="center"] {
            text-align: center;
            p {
                margin: 0px !important;
            }
        }
    }

    /** embedded media */
    .mediaSingleView-content-wrap {
        & img,
        video {
            width: fit-content;
            height: auto;
        }
        &[data-width^="13.2"] {
            & img {
                width: calc(576px * 0.13257575757575758);
            }
        }
        &[data-width^="16.6"] {
            & img {
                width: calc(576px / 6);
            }
        }
        &[data-width="20"] {
            & img {
                width: calc(576px / 5);
            }
        }
        &[data-width="25"] {
            & img {
                width: calc(576px / 4);
            }
        }
        &[data-width^="33.3"] {
            & img {
                width: calc(576px / 3);
            }
        }
        &[data-width^="41.6"] {
            & img {
                width: calc(576px * 0.41666666666666664);
            }
        }
        &[data-width="50"] {
            & img {
                width: calc(576px / 2);
            }
        }
        &[data-width^="58.3"] {
            & img {
                width: calc(576px * 0.5833333333333333);
            }
        }
        &[data-width^="66.6"] {
            & img {
                width: calc(576px * 2 / 3);
            }
        }
        &[data-width^="75"] {
            & img {
                width: calc(576px * 3 / 4);
            }
        }
        &[data-width^="83.3"] {
            & img {
                width: calc(576px * 0.8333333333333333);
            }
        }
        &[data-width^="91.6"] {
            & img {
                width: calc(576px * 0.9166666666666666);
            }
        }
        &[data-width="100"] {
            & img {
                width: 576px;
            }
        }

        &.image-align-start {
            text-align: left;
        }
        &.image-align-end {
            text-align: right;
        }

        &.image-center {
            text-align: center;
        }
    }

    /** links */
    .phonemos_media_file {
        & svg {
            color: #430060;
        }
    }

    /** panels */
    .ak-editor-panel {
        display: flex;
        clear: both;
        align-items: baseline;
        word-break: break-word;

        margin: 8px 0 0 0;
        padding: 8px;
        min-width: 48px;
        border-radius: 3px;
        background-color: #deebff;

        .ak-editor-panel__icon {
            color: #0052cc;
            width: 24px;
            height: 24px;
            margin-right: 6px;
            & span {
                vertical-align: middle;
                padding-bottom: 3px;
                line-height: 1;
            }
        }
        .ak-editor-panel__content {
            flex-grow: 1;
            & p {
                margin: 0;
            }
        }

        &[data-panel-type="warning"] {
            background-color: #fffae6;
            .ak-editor-panel__icon {
                color: #ff991f;
            }
        }
        &[data-panel-type="note"] {
            background-color: #eae6ff;
            .ak-editor-panel__icon {
                color: #5243aa;
            }
        }
        &[data-panel-type="success"] {
            background-color: #e3fcef;
            .ak-editor-panel__icon {
                color: #00875a;
            }
        }
        &[data-panel-type="error"] {
            background-color: #ffebe6;
            .ak-editor-panel__icon {
                color: #de350b;
            }
        }
    }
}
