/* mobile: remove fixed widths (<=640px); desktop untouched */
img, table { max-width: 100%; }
@media (max-width: 640px) {
  .page, .page_shadow, .header, .header .menu, .header div.menu, .main, .main.two, .bg_content, .footer, .footer .page_shadow,
  .main.two .content, .main.two .sidebar, .main .content, .sidebar .wrap, .h_toolbar, .h_elements {
    width: auto !important; max-width: 100% !important; box-sizing: border-box; float: none !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  .page_shadow { background: none; padding: 0; }
  .main.two .content, .main.two .sidebar { display: block; padding-left: 8px; padding-right: 8px; }
  .main .news li .info, .main .newslist > ul > li .info, .main .topreaded li .info,
  .main .newslist .nsmall .info, .main .news > ul > li.news_first .info { width: auto !important; float: none; display: block; }
  .main .newslist > ul > li .img, .main .news > ul > li.news_first .img, .main .newslist > ul > li.news_first.horz .img, .main .newslist > ul > li.news_first.vert .img { width: auto; max-width: 100%; height: auto; float: none; margin: 0; }
  .main .content .box_webtv .playerbox, .main .content .box_webtv .mini_player_lateral { width: auto; max-width: 100%; }
  .main .share { float: none; width: auto; text-align: left; }
  .lof-slidecontent, .main-slider-content, .lof-slidecontent .sliders-wrapper { width: auto !important; max-width: 100% !important; }
  ul.sliders-wrap-inner li, ul.sliders-wrap-inner li img { width: auto !important; max-width: 100%; height: auto; }
  #jslidernews2 { grid-template-columns: minmax(0, 1fr); }
  .detailbox .post img, .detailbox .photo img { max-width: 100%; height: auto; }
  .detailbox p.img_title { width: auto !important; }
  iframe, video, embed, object { max-width: 100%; }
  .header .menu ul, .header .menu li { max-width: 100%; }
  .main .detailbox > .info .date { width: auto; float: none; display: block; }
  .main .photobox, .main.home .photobox { margin: 0; }
  .main .photobox .photo .img { height: auto; line-height: normal; white-space: normal; }
  .main .photobox .photo .img img { max-width: 100%; height: auto; }
  .main .album, .main .album .slider { width: auto !important; max-width: 100%; overflow-x: auto; }
  .main .album .slider ul { max-width: none; }
  img { height: auto; }
  #gallery, #gallery_wrapper, #gallery_area, #gallery_area .gallery_box { width: auto !important; max-width: 100% !important; box-sizing: border-box; }
  #gallery_area .gallery_box { position: static; margin: 0; }
  #gallery_wrapper { height: auto; }
  .page div[style*="width"] { width: auto !important; max-width: 100% !important; }
  .page img { max-width: 100% !important; height: auto !important; }
  #gallery_thumbs { position: static; }
}
