/*  Adaptive DLEmarket  */

@media screen and (max-width: 1260px){
  .wrap{
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }  
  .cats{
    -webkit-columns:4;
    -moz-columns:4;
    columns:4;
  }
  .left, .right{
    float: none;
    width: 100%;
  }
  .left{    
    padding: 0 0 20px 0;
  }
}

a.wtspp { 
    color: #fff;
    display: none;
    bottom: 10px;
    margin: 0px auto;
    z-index: 999;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    padding: 3px;
    position: fixed;
    border-radius: 3px;
}
a.wtspp img {
    width: 65px;
}

@media screen and (max-width: 1020px){ 
  .cats{
    -webkit-columns:3;
    -moz-columns:3;
    columns:3;
  }
  .shortstory{
    width: 25%;
  }  
  .wblock .shortstory:nth-of-type(5){
    display: none;
  }
  .searchblock{
    width: 100%;
    clear: both;
    margin: 0;
  }
  .header{
    height: auto;
  }
  .logo, .contacts{    
    margin-bottom:20px;
  }


  .social_menu{
    width:290px;
    margin: 0 auto;
    float: none;
  }
  .find_rel{
    margin: 15px 0 0 0;
  }
  .comment_controls a{
    display:inline;
  }
  .input1{
    width: 200px ;
  }
  .social_login.social_menu{
    margin: 0 auto;
    float: none;
  }
  .footer{
    text-align: center;
  }
  .footer_links{
    margin:0 0 20px 0;
  }
  .addnews select{
    width: 100% !important;
  }
  .copyrights, .footer_links{
    float: none;
  }
}
@media screen and (min-width: 800px){  
  .nav ul.main_nav{
    display: none;
  }
}
@media screen and (max-width: 799px){  
  .cats{
    -webkit-columns:2;
    -moz-columns:2;
    columns:2;
  }
  .shortstory{
    width: 50%;
  }
  .toptext{
    float: none;
    width: 100%;
    height: auto;
  }
  .nav_btn{
    display: block;
  }
  .header_right{
    width: 180px;
  }
  .nav{
    height: auto;
    position: static;
  }
  .nav ul.main_nav{    
    border: 1px solid rgba(0,0,0,0.15);
    border-bottom: 0;
    height: auto;
    z-index: 9999;
    width: 100%;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #333;
  }
  .nav li a{
    padding: 0 20px;
    border-bottom: 1px solid #222;
  }
  .nav li li a{
    padding: 2px 25px 0 25px;
    border-bottom: 0;
    border-right: 0;
  }
  .nav li ul.sub_nav{
    width: 100%;
    border:0;
    height: auto;
  }
  .nav li, .nav li a{
    float: none;
    height: auto;
  }
  .nav li ul{
    display: block;
    position: relative; 
    left: auto;
  }
  .main_news:nth-of-type(n) .tile_title{
    font-size: 18px;
  }

  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;
  }   
  .about{
    display: none;
  }
  textarea, select[name="recip"], input[type="text"]{
    width: 100% !important;
  }
}
@media screen and (max-width: 660px){  
  .logo, .contacts{
    width: 100%;
    float: none;
    margin: 0 0 20px 0;
    text-align: center;
  }
  .logo img{
    margin: 0 auto;
  }
  .full-left, .full-right{
    float: none;
    width: 100%;
  }
}
@media screen and (max-width: 520px){  

a.wtspp { 
    display: block; 
}

  .cats{
    -webkit-columns:1;
    -moz-columns:1;
    columns:1;
  }

  .left, .right{
    float: none;
    width: 100% !important;
    padding: 0 !important;
  }
  .shortstory{
    width: 100%;
    height: auto;
    padding: 0 !important;
  }
  .shortstory.showtile .tile{
    padding-top: 100%;
  }
  .short_data{
    height: auto;
  }
  .social_menu .social-button{
    margin-right: 5px;
  }

  .related_title{
    font-size:18px;
  }

  .post_title, .post_title h1{
    font-size:20px;
  }
  .nav_ext{
    display: none;
  } 
  .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;
    }
    .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;
    }
    .footer_links a{
      line-height: 30px;
      display: block;
    }

    .full_images img{
      width: 50%;
    }
  }
  @media screen and (max-width: 440px){
    div#owl-example {
    width: 100%; float:none;
}
.menu.mblock{display:none;} 
.rklm{display:none;} 
    .header{
      height: auto;
      position: static;
    }
    body, body.grey{
      padding-top: 0;
    }
    .logo{
      float: none;
      margin-right: 0;
    }
    .logo img, .header_right{
      margin: 0 auto;
      width: 100%;
    }
    .nav ul.main_nav{
      top: 120px;
    }
    .social_menu{
      width: auto;
    } 
    .social_menu .social-button{
     margin-bottom: 10px;
    }
    .social-likes__widget{
      margin-bottom: 20px;
    }
  }