/*  ADAPIVE BLOGGY  
-------------------------------------- */

  @media screen and (max-width: 1080px){
    .wrap{
      width: 940px;
    }
    .left{
      width: 680px;
    }
    .pop_post{
      width: 200px;
    }
    .pop_post a{
      width: 100%;
    }
    .related_news_post{
      width: 100%;
    }
    .shortstory2{
      width: 310px;
      height: 297px;
    }
    .short_post2{
      height: 206px;
    }
    .short_post{
      width: 120px;
    }
    .short_post_content{
      width: 460px;
    }
  }
  

/*  @media screen and (min-width: 961px)  
-------------------------------------- */
@media screen and (min-width: 961px){  
    .nav ul.main_nav{
    display: inline-block !important;
	opacity: 0.8; 
    }
}


@media screen and (max-width: 960px){
    .wrap{
      width:680px;
    }
    .content .right{
      display: none;
    }
    .footer .right{
      float: none;
      padding:20px 20px 0 20px;
    }
    .left{
      float: none;
    }
    .logo{
      display: block;
      float: left;
    }
    .nav{
      width: auto;
    }
    .nav_btn{
      display: block;
    }
    .nav ul{      
      width: auto !important;
    }
    .nav ul.main_nav{
      position: absolute;
      background-color: rgba(64,64,64,0.8);
      border-bottom: 0;
      height: auto;
      z-index: 9999;
      width: auto;
      display: none;
      padding: 0;
	  opacity: 0.8; 
    }  
    .nav li, .nav li a{
      float: none;
      height: auto;
    }
    .nav li a{
      border-right: 0;      
      border-bottom: 1px solid rgba(0,0,0,0.15);
    }
    .nav li ul{
      display: block;
      position: relative; 
      left: auto;
    }


    .header{
      position: static;
    }
    body{
      padding-top: 0;
    }
    .right{
      width: 100%;
    }
    .social_menu li{
      display: inline-block;
      width: auto;
      margin: 0 20px 0 0;
    }
  }
  
/*  @media screen and (max-width: 700px)  
------------------------------------------- */
  @media screen and (max-width: 700px){
    .wrap{
      width: 100%;
    }
    .header .wrap{
      padding: 0 20px;
    }
    .header-controls{
      right: 20px;
    }
    .left{
      width: auto;
    }
    .header{
      height: 40px;
    }
    .searchblock{
      width: 100%;
      left: 0;
      position: relative;
    }
    .header-controls{
/*  top: 6px; ----- */
      right: 0;
      width: 240px;
      padding: 0 7px 0 2px;
    }
    .searchform{
      width:100%;
      padding: 5px 0 5px 3px;
      cursor:text;
      background: none;
      font-size: 16px;
    }
    .searchform:focus{
      width: 100%;
      cursor:text;
      background: none;
    }
    .login-btn{
      right: 20px;
    }
    .login_block:before{
      right: 27px;
    }
    .nav-btn{
      display: block;
      position: absolute;
      right: 8px;
    }
    .nav{
      right: 5px;
      left: 124px;
    }
    .nav:before{
      right: 16px;
      left: auto;
    }
    .pop_post, .pop_post:last-of-type{
      width: 80%;
      margin:0 auto 20px auto;
      float: none;
      height: 250px;
    }
    .pop_title{
      font-size: 20px;
    }
    .hblock h4{
      text-align: center;
    }
    .shortstory{
      width: 420px;
      margin: 0 auto 40px auto;
    }
    .short_post{
      width: 100px;
      height: 67px;
    }
    .short_post_content{
      width: 300px;
    }
    .shortstory2, .shortstory2:nth-of-type(2n){
      float: none;
      width: 420px;
      height: 378px;
      margin: 0 auto 40px auto;
    }
    .short_post2{
      height: 280px;
    }
    .short_title, .short_title2 a{
      font-size: 24px;
    }
    .short_title2{
      line-height: 22px;
      max-height: 72px;
    }
    .find_rel{
      margin-top: 20px;
    }
    .txsh, .input1, .input2, .input3, .xfields input[type="text"], input.default{ 
      height: 40px;  
      width: 100%;
      font-size: 16px;  
    }
    .sline{
      padding: 5px 0 20px 0;
    }
    .site_button{
      display: block;
      height: 60px;
      width: 100%;
      font-size: 20px;
    }
    .light_button{
      margin-bottom: 20px;
    }
    .post_content, .post_content a{
      font-size: 18px;
    }
    .related_news_post{
      width: 100%;
      height: auto;
      margin: 0 0 20px 0;
    }
    a.related-news{
      display: none;
    }
    .related_news_post h3, .related_news_post h3 a{
      font-size: 20px;
    }
    .related_news_post h3{
      position: relative;
      padding: 0 0 0 20px;
    }
    .related_news_post h3:before{
      content: "";
      position: absolute;
      display: block;
      height: 10px;
      width: 10px;
      background-color: #ccc;
      top: 5px;
      left: 0;
    }
    .comment_avatar{
      display: none;
    }
    .addcomment_editor{
      width: 100%;
    }
    .comment_content{
      width: 100%;  
    }
    .comment_post, .comment_post a{
      font-size: 18px;
    }
    .pm_status, .pmlinks{
      width: 100%;
      float: none;
      margin: 0 0 20px 0;
    }
    .pmlinks a{
      height: 60px;
      line-height: 60px;
      font-size: 20px;
      font-family: "PT Sans Bold";
    }
    form#registration .bbcodes{
      height: 60px;
      display: block;
      width:100%;
      padding: 3px 0 0 0;
      line-height: 30px;
      font-size: 20px;
      border-width: 2px;
    }
    .copyrights{
      display: block;
    }
    .counters{
      float: none;
    }
    .social_menu li{
      margin: 0 20px 20px 0;
    }
  }
 
 
/*  @media screen and (max-width: 480px)  
------------------------------------------- */
  @media screen and (max-width: 480px){
	  
	  
 /* Адаптация видео с YouTube ------------------------ */
/* (для старых видео перестраиваем публикации) ------ */

.youtube-video {
  position: relative;
  padding-bottom: 56.25%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}
.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

    .nav{
      right: 4px;
      left: auto;
    }

	/*  положение вертикального меню относительно края смартфона */
	/* прозрачность вертикального меню */
    .nav ul.main_nav{
      left: -180px;
	  opacity: 0.8; 
    }
    .main_nav li a{
	  font-size: 20px !important;
	  margin: 6px 0;
    }	
	
	
    .txsh, .input1, .input2, .input3, .xfields input[type="text"], input.default, .feedbackta{
      width: 150px; 
    }
    .full-story{
      padding: 0 10px 20px 10px;
    }
    .pop_post, .pop_post:last-of-type{
      width: 100%;
      height: 200px;
    }
    .shortstory{
      max-width: 100%;
    }
    .short_post{
      width: 80px;
      height: 54px;
    }
    .short_post_content{
      width: 240px;
    }
    .short-story_post, .shortstory .read_bt, .srating, .short_author, .short_cat, .about .logo, .footer .counters{
      display: none;
    }
    .short_post_meta{
      margin: 0;
    }
    .shortstory2, .shortstory2:nth-of-type(2n){
      width: 300px;
      height: 300px;
    }
    .short_post2{
      height: 200px;
    }
    .shortstory3{
      min-width: 300px;
    }
    .shortstory3 .read_bt{
      float: none;
    }
    .shortstory3 .read_bt a{
	  padding: 0 16px;
      border-width: 1px;
      text-align: center;
      line-height: 40px;
      font-size: 16px;
    }

    .footer_menu{
      margin:0;
      text-align: left !important;
    }	  

    .footer_menu li {
    list-style-type: none; 
    }	

    .header, .container{
      min-width: 300px;
    }
    .pm_head{
      font-size: 14px;
    }
    .profile_popup_counter b{
      font-size: 14px;
    }
    #totop{
      display: none;
    }
  }

