/* Keep every raster image proportional, including existing third-party badges. */
img { max-width:100%; height:auto !important; }
/* Preserve the established desktop theme; make its fixed columns fit narrow screens. */
@media (max-width:979px) {
 html,body { min-width:0 !important; width:100% !important; margin:0 !important; }
 *,*::before,*::after { box-sizing:border-box; }
 #base,#base_top,#base_btm,#container,#container_top,#container_btm { width:100% !important; max-width:980px !important; min-width:0 !important; }
 #header { width:100% !important; max-width:980px !important; background-size:cover !important; background-position:center top !important; }
 #header .home { width:100% !important; max-width:100% !important; }
 #menubar { left:0 !important; top:auto !important; bottom:0 !important; width:100% !important; height:auto !important; padding:8px !important; }
 #menubar ul { margin:0 !important; display:flex; flex-wrap:wrap; justify-content:center; }
 #menubar li { float:none !important; max-width:100%; }
 #content,#sidebar { float:none !important; display:block !important; width:auto !important; max-width:100% !important; min-width:0 !important; margin:0 12px 24px !important; }
 #content_top,#content_btm,.postbox,.postbox2,.postbox3,.entry,.post_title,.post_title h2 { width:auto !important; max-width:100% !important; min-width:0 !important; overflow-wrap:anywhere; }
 .entry { padding-left:12px !important; padding-right:12px !important; }
 .entry img.small,.entry img.alignleft,.entry img.alignright { float:none !important; display:block; margin:0 auto 12px !important; }
 img { max-width:100% !important; height:auto !important; }
 iframe,video,object,embed { max-width:100% !important; }
 #sidebar1,#sidebar1>ul>li,#sidebar1 div.sb1_block_top,#sidebar1 div.sb1_block_btm { width:auto !important; max-width:100% !important; }
 #sidebar1 select,input,select,textarea { max-width:100%; }
 .entry table { display:block; max-width:100%; overflow:auto; }
 #header .twitter { left:auto !important; right:12px !important; }
 #footer_credit,#footer_credit>div { width:auto !important; max-width:100% !important; margin-left:12px !important; margin-right:12px !important; left:auto !important; }
 .mainsearch { left:auto !important; right:12px !important; max-width:calc(100% - 24px) !important; }
 #footer { background-size:cover; }
}
