/* DHTML editor / rendered post containment ---------------------------------
   SmartEditor and pasted HTML may carry fixed pixel widths. Keep those widths
   inside the board column without changing the editor's document contents. */

#bo_w,
#bo_w form,
#bo_w .write_div,
#bo_w .wr_content {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}

#bo_w .wr_content > div,
#bo_w .wr_content textarea,
#bo_w .wr_content iframe,
#bo_w .wr_content .smarteditor2,
#bo_w .smarteditor2-wrap,
#bo_w .smarteditor2-frame,
#bo_w textarea.smarteditor2 + iframe,
#bo_w .wr_content [id^="smart_editor"] {
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

/* SmartEditor shortcut panel also used fixed floated columns. */
#bo_w .cke_sc,
#bo_w .cke_sc_def {
    max-width:100%;
    box-sizing:border-box;
}

/* Common rendered-body containers across the board skins. */
#bo_v_atc,
#bo_v_con,
.carat_view__con,
.carat_view__desc,
.nd_v_content,
.rl_view #bo_v_con {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    overflow-wrap:anywhere;
}

#bo_v_con img,
#bo_v_con svg,
#bo_v_con canvas,
.carat_view__con img,
.carat_view__desc img {
    max-width:100% !important;
    height:auto !important;
}

#bo_v_con table,
.carat_view__con table,
.carat_view__desc table {
    width:100% !important;
    max-width:100% !important;
    table-layout:fixed;
    border-collapse:collapse;
}

#bo_v_con th,
#bo_v_con td,
.carat_view__con th,
.carat_view__con td,
.carat_view__desc th,
.carat_view__desc td {
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
}

#bo_v_con iframe,
#bo_v_con video,
#bo_v_con object,
#bo_v_con embed,
.carat_view__con iframe,
.carat_view__desc iframe {
    max-width:100% !important;
}

#bo_v_con pre,
#bo_v_con code,
.carat_view__con pre,
.carat_view__desc pre {
    max-width:100%;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    overflow-x:auto;
    box-sizing:border-box;
}

@media (max-width:680px) {
    #bo_w .wr_content { width:100%; }
    #bo_v_con table,
    .carat_view__con table,
    .carat_view__desc table { font-size:.92em; }
}
