/*  Adaptive SchoolBoard  */

@media screen and (max-width: 1220px){  
  .header_title{
  	font-size: 16px;
  }
  .speedbar, .navigation-holder{
    margin-left: 20px;
  }
  .comment_avatar{
    left: 20px;
  }
  .content{
    width: 720px;
  }
  .sidebar{
    width: 340px;
  }
}
@media only screen and (min-width: 1021px) and (max-width: 1220px){
  .wrap{
    width: 1000px;
  }
  .right{
    width: 700px;
  }
}
@media screen and (min-width: 1021px){  
  .nav ul.main_nav{
    display: block !important;
  }
}
@media screen and (max-width: 1020px){
  .wrap{
    width: 100%;
  }  
/*  
    .shortstory2{
    margin: 30px 30px 0 0;
    width: calc((100% - 30px)/2);
    float: left;
  }
  .shortstory2:nth-of-type(2n){
    margin-right: 0;
  }
*/    
  .find_rel{
    margin: 15px 0 0 0;
  }
  .comment_controls a{
    display:none;
  }
  .comment_controls a:first-of-type{
    display:inline;
  }
  .input1, #category_chzn{
    width: 200px !important;
  }
  .footer .logo{
    display: none;
  }
  .social_login.social_menu{
    margin: 0 auto;
    float: none;
  }
  .footer{
    text-align: center;
  }
  .nav_ext{
    display: none;
  } 
  .nav_btn{
    display: block;
  }
}

@media screen and (max-width: 900px) and (min-width: 769px){
    
    .shortstory2{
    margin: 30px 30px 0 0;
    width: calc((100% - 30px)/2);
    float: left;
  }
  .shortstory2:nth-of-type(2n){
    margin-right: 0;
  }
}

@media screen and (max-width: 768px){  
  .left, .right{
      width:100%;
      float:none;
  }
   
    .left img {
        width: auto;
    }  
    
  .searchblock, .subheader{
    float: none;
    width: 100%;
    margin: 0;
  }
  .logo{
    margin: 0 auto;
    float: none;
  }
  .header_title{
    padding: 0;
    margin: 20px 0;
    text-align: center;
  }
  .menu{
    margin: 0;
  }
  .left{
    padding: 30px 30px 1px 30px;
  }
  .post_title, .post_title h1{
    font-size: 30px;
    line-height: 34px;
  }
  h1 {font-size:20px;line-height:22px;}
  h2 {font-size:18px;line-height:20px;}
  h3, h4 {font-size:16px;}
  .post_content, .post_content a{
    font-size: 14px;
  }
  .pm_head{
    font-size: 16px;
    line-height: 24px;
  }   
  .navigation a, .nav_ext{
    display: none;
  }
  .navigation .next a, .navigation .prev a{
    display: block;
  }
  .about, .widget_block, .side_block, .topline, .banner, .mapkk{
    display: none;
  }
}
@media screen and (max-width: 540px){  
  .short_img{
    float: none;
    margin: 0 0 20px 0;
    width: 100%;
  }
    
    .shortstory2{
    margin: 30px 30px 0 0;
    width: calc((100% - 30px)/2);
    float: left;
  }
  .shortstory2:nth-of-type(2n){
    margin-right: 0;
  }
    
  .video_post, .phot_post{
    float:none;
    width:100%;
    margin-bottom:1px;
  }
  .video_title{
    font-size:14px;
  }
  .social-likes, .addnews, .current_date, .weather, .carousel{
    display: none;
  }    
  .right {
    padding: 0 30px 30px 30px;
  }  
  .speedbar { 
    padding-top: 20px;  
  }
  .comment_date{
    margin:10px 0 0 0;
    float:none;
    display:block;
  }
  .comment_meta{
    height:auto;
  }
  .sline{
    width: auto;
  }
  .uf-item{
        float: none;
        width: 100%;
        margin: 0 0 10px 0;
    }
    .email-pm a{
      font-size: 14px;
    }
    .counters, .comment_avatar{
      display: none;
    }
    .pmlinks a{
      width: 100%;
      float: none;
      border-left: 0;
    }
    .addcomment_editor, .comment_content{
      width: 100%;
    }
    .comment_content{
      padding-left: 0;
    }
    .pm_head{
      font-size: 14px;
    }
    .pm, .pm a{
      font-size: 12px;
    }
    .profile_popup_counter b{
      font-size: 14px;
    }
    #totop{
      display: none !important;
    }

    .navigation-holder{
      margin-right: 0;
    }
    .nav_btn{
      top:-40px;
      width:40px;
      height:40px;
    }
    .nav_btn:before{
      top:10px;
      left:10px;
    }
  }

/*	Скролл для таблицы	*/

@media screen and (max-width: 1021px) {
    table {
		overflow-x: auto;
		display: block;
	}
  }
