/*  Adaptive RelaxTube  */

@media screen and (max-width: 1520px){
  .wrap{
    width:1274px;
  }
}
@media screen and (max-width: 1334px){
  .wrap{
    width: 1210px;
  }
}
@media screen and (max-width: 1270px){
  .wrap{
    width: 960px;
  }
  .right{
    width: 100%;
  }
  .left{
    display: none;
  }
  .searchblock{
    float: none;
    clear: both;
    width: 100%;
    background-color: rgba(30, 27, 24, 0.04);
    border: 1px solid rgba(30, 27, 24, 0.1);
  }
  .h1_title{
    font-size: 16px;
  }
  .speedbar, .speedbar a{
    font-size: 13px;
  }
  .shortstory{
    padding:0 5px;
  }
}
@media screen and (max-width: 1020px){
  .wrap{
    width: 720px;
  }
  .content, .sidebar{
    width: 100%;
    float: none;
  }
  .sidebar{
    margin-bottom: 20px;
  }
  .shortstory{
    width: 33.33333%;
  }
  .h1_title{
    float: none;
    line-height: 30px;
  }
  .speedbar{
    padding: 5px 20px;
  }
  .find_rel{
    margin: 15px 0 0 0;
  }
  .comment_controls a{
    display:none;
  }
  .comment_controls a:first-of-type{
    display:inline;
  }
  .input1{
    width: 200px ;
  }
  .social_login.social_menu{
    margin: 0 auto;
    float: none;
  }
  .footer{
    text-align: center;
  }
  .footer_links{
    margin: 20px 0 0 0;
  }
  .addnews select{
    width: 100% !important;
  }
  .copyrights, .footer_links{
    float: none;
  }
}
@media screen and (min-width: 781px){  
  .nav ul.main_nav{
    display: block !important;
  }
}
@media screen and (max-width: 780px){  
  .wrap{
    width: 100%;
    padding: 0 20px;
  }
  .shortstory{
    width: 50%;
  }
  .short_title{
    font-size: 14px;
  }
  .header-login{
    width: 120px;
  }
  .nav_btn{
    display: block;
  }
  .nav ul.main_nav{    
    border: 1px solid #333;
    border-bottom: 0;
    height: auto;
    z-index: 9999;
    width: 100%;
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #222;
  }
  .nav li a{
    border-right: 0;      
    border-bottom: 1px solid #333;
  }
  .nav li, .nav li a{
    float: none;
    height: auto;
  }
  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{
    display: none;
  }
  .age18{
    display: none;
  }
  .right_buttons{
    float: none;
    clear: both;
    padding: 10px 0;
    height: 60px;
  }
  .post_info_button, .span_edit a{
    float: left;
  }
  .post_info_button{
    margin:0 10px 0 0 !important;
  }
  .category_block{
    width: 50%;
  }
  textarea, select[name="recip"], input{
    width: 100% !important;
  }
}
@media screen and (max-width: 470px){  
  .logo, .header_right{
    float: none;
    clear: both;
    width: 100%;
  }
  .header-login{
    width: 100%;
  }
  .nav ul.main_nav{
    top: 120px;
  }
  .logo img{
    margin: 0 auto;
  }
  .tabs_header{
    height: auto;
  }
  .tabs_header span{
    float: none;    
  }
  .post_title, .post_title h1{
    font-size:20px;
  }
  .nav_ext{
    display: none;
  } 
  .shortstory, .category_block{
    width: 100%;
    padding: 0;
    float: 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;
    }
  }


@media screen and (max-width: 1360px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .shortstory.gallery-card {
    width: 50%;
  }

  .gallery-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media screen and (max-width: 1270px) {
  .left {
    display: none;
  }

  .right {
    width: 100%;
  }

  .wrap {
    width: min(100%, calc(100% - 40px));
  }
}

@media screen and (max-width: 1020px) {
  .page-heading {
    display: block;
  }

  .page-subtitle {
    max-width: none;
    margin-top: 10px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-bottom-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-bottom-info {
    padding: 18px;
  }

  .gallery-bottom-grid .sidebar-card {
    min-height: 0;
  }

  .gallery-seo-strip {
    grid-template-columns: 1fr;
  }

  .fullstory.gallery-post {
    padding: 24px;
  }

  .gallery-copy-simple .full-story {
    padding: 20px;
  }

  .hero-copy h2,
  .gallery-post-header .post_title h1,
  .h1_title {
    font-size: 30px;
  }
}

@media screen and (max-width: 780px) {
  .wrap {
    width: 100%;
    padding: 0 16px;
  }

  .section-topline {
    padding-top: 6px;
  }

  .header-row {
    gap: 8px;
  }

  .site-header {
    position: static;
  }

  .site-logo,
  .nav,
  .nav li,
  .nav li a,
  .header-login,
  .searchblock,
  .searchform,
  .searchbt {
    height: 64px;
  }

  .nav li a {
    line-height: 64px;
  }

  .nav ul.main_nav {
    top: 64px;
    background-color: #fff8f0;
    border-color: rgba(30, 27, 24, 0.08);
  }

  .searchblock-wide {
    height: 60px;
    margin-top: 6px;
    border-radius: 18px;
  }

  .hero-panel,
  .gallery-summary,
  .gallery-share,
  .gallery-comments,
  .category-intro {
    padding: 20px;
  }

  .shortstory.gallery-card {
    width: 100%;
    padding: 8px 0;
  }

  .related-card {
    width: 100%;
    padding: 8px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 8px;
  }

  .gallery-side {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 470px) {
  .wrap {
    padding: 0 12px;
  }

  .section-topline {
    padding-top: 4px;
  }

  .header_row,
  .header-row {
    align-items: center;
  }

  .site-logo {
    height: 56px;
  }

  .site-logo img {
    max-height: 32px;
  }

  .hero-copy h2,
  .gallery-post-header .post_title h1,
  .gallery-copy .full-story h1,
  .h1_title {
    font-size: 26px;
    line-height: 1.15;
  }

  .hero-actions {
    display: block;
  }

  .page-heading {
    padding-bottom: 12px;
  }

  .page-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .fullstory.gallery-post {
    padding: 48px 18px 18px;
  }

  .page-shell .content > .gallery-post-breadcrumbs {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .gallery-post-breadcrumbs .speedbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-post-breadcrumbs .speedbar a {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .gallery-copy-simple .full-story {
    padding: 18px;
  }

  .gallery-copy .full-story > * + * {
    margin-top: 2px;
  }

  .gallery-copy .full-story p:has(img),
  .gallery-copy .full-story p:has(a img) {
    margin: 0;
    line-height: 0;
  }

  .gallery-copy .full-story img {
    width: 100%;
    margin: 2px 0;
    padding: 0;
    border-radius: 12px;
  }

  .gallery-post-meta {
    gap: 8px;
  }

  .gallery-post-meta .post_info_item {
    width: 100%;
  }
}


  
