/* Width smaller than 1500px */
@media only screen and (min-width: 2500px) {
  .full-post .full-image-section .fullpostimage {
    width: 51%;
  }
}
@media only screen and (min-width: 2000px) {
  .full-post .full-image-section .fullpostimage {
    width: 53%;
  }
}
@media only screen and (max-width: 1500px) {
  #sitecontainer .pagetitleloading .homeslideshow .bx-wrapper .bx-viewport img {
    max-width: none !important;
    min-width: 1500px !important;
  }
}

@media only screen and (min-width: 1199px) {
  .pagetitleloading .single-slideshow {
    min-height: 500px;
  }
}

/* Widths smaller than 1199 */
@media only screen and (max-width: 1199px) {
  .pagertable li {
    width: 220px !important;

    .pagertitle {
      font-size: 16px;
    }
  }

  .section .slidecaption .slidetitle,
  .section .slidecaption h1 {
    font-size: 54px !important;
  }
  .single .has-full-image.has-thumbnail .pagetitle .credits {
    bottom: auto;
    top: 55px;
  }
  .top {
    display: none !important;
  }

  /* Rightside */
  .rightside .rightcontent {
    width: 630px;
    margin-right: 0;
    padding-right: 22px;
  }
  .single-post .rightside .rightcontent {
    width: 515px;
  }
  .single .no-sharing .rightside .rightcontent {
    width: 605px;
  }
  .rightside .righttitle {
    width: 590px;
    padding-right: 22px;
  }
  .sidebar {
    padding-left: 15px;
  }
  .rightside {
    margin-left: -200px;
    padding-left: 200px;
  }
  .breaking .breaking-title {
    background: #333;
    padding-right: 10px;
    font-size: 12px;
    line-height: 37px !important;
    font-weight: normal;
    margin-left: -200px;
    padding-left: 210px;
    display: block;
    position: relative;
    z-index: 99;
    float: left;
  }

  /* Regular Grid */
  .regulargrid {
    //a.brick-thumb-link {
    //	min-height: 182px;
    //}
    .isobrick .title {
      font-size: 23px;
      line-height: 1em;
    }
    .pageflip {
      right: 10px;
    }
  }

  /* Grid Section */
  .grid-item .thumbovertext .button {
    display: none;
  }
  .grid .grid-item.fullgrid,
  .grid .grid-item.fullgrid .isobrick-inner {
    height: 320px;
    width: 594px;
  }
  .grid .grid-item.halfgrid,
  .grid .grid-item.halfgrid .isobrick-inner {
    width: 295px;
    height: 317px;
  }
  .grid.section .grid-item.fullgrid .thumbovertext .title,
  .grid.section .grid-item.fullgrid .thumbovertext .title a,
  .carousel .carouselpost .fullgrid .thumbovertext .title,
  .carousel .carouselpost .fullgrid .thumbovertext .title a {
    margin-top: 5px;
  }
  .carousel .carouselpost .fullgrid .thumbovertext .title {
    font-size: 38px;

    a {
      font-size: 38px;
    }
  }
  .grid {
    .grid-item.halfgrid .thumbovertext .title,
    .grid-item.halfgrid .thumbovertext .title a {
      font-size: 26px;
      margin-top: 5px;
    }
    .pageflip {
      right: 14px;
    }
  }
  .section.grid.grid-full {
    .halfgrid {
      width: 302px;
    }
    .fullgrid {
      width: 607px;
    }
    .pageflip {
      right: 0;
      margin-right: 12px;
    }
  }

  /* Carousel Section */
  .section.fixed-carousel .single-carousel.half-carousel {
    li.carouselpost {
      width: 302px !important;

      .halfgrid .isobrick-inner,
      .halfgrid {
        width: 302px;
        height: 325px;
      }

      .halfgrid .isobrick-inner {
        .thumbovertext,
        .thumboverdate {
          padding: 35px;
        }
      }
    }
  }

  /* Related Posts */
  .has-sidebar {
    .related-posts {
      .grid-item {
        width: 100%;
        .isobrick-inner {
          width: 100%;
        }
      }
    }
  }

  /* Grid Badges */
  .grid {
    .badge a {
      padding: 8px;
    }
    .badge a:after {
      border-bottom-width: 26px;
    }
    .badge a:before {
      border-top-width: 26px;
    }
    .pageflip {
      right: 22px;
    }
  }

  /* Review Circles */
  .section .inner-content .c100,
  .regulargrid .inner-content .c100 {
    font-size: 100px;
  }
  .grid-item.halfgrid .inner-content .c100,
  .regulargrid .isobrick .inner-content .c100 {
    font-size: 70px;
  }

  /* Post */
  .single .no-full-image h1.title {
    font-size: 2.75em;
  }
  .single-post .pagetitleloading .pagetitle .title {
    font-size: 3.5em;
  }
  .single .no-full-image.no-sidebar {
    .rightside {
      .rightcontent {
        padding: 20px 15px;
        width: 843px;
      }
    }
  }

  /* No Sharing */
  .single .no-full-image.no-sidebar.no-sharing {
    .rightside {
      .rightcontent {
        width: 100%;
      }
    }
  }

  /* Disable for touch devices at this size */
  .full-bg-image {
    background-attachment: scroll !important;
    padding-left: 0;
    margin-left: 0;
    padding-right: 0;
    margin-right: 0;
    background-position: 50% 50% !important;
  }

  .post-break .wp-caption-text {
    display: inline-block;
    bottom: 3px;
    left: 3px;
  }
}

/* Widths between 992px and 1199px */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .post-break .wp-caption-text {
    padding-right: 0;
    margin-right: 0;
  }

  /* Review Breakdown */
  .has-sidebar {
    .breakdown {
      padding-top: 10px;

      .table {
        margin-top: 0;
        margin-bottom: 10px;
      }

      .table,
      .table-row,
      .table-cell {
        display: block;
      }
      .inner-content {
        float: none;
      }
    }
  }

  // Full Image
  .single .no-sidebar.has-full-image {
    .rightcontent {
      width: 840px;
    }
  }
}

/* Widths between less than 991px */
@media only screen and (max-width: 991px) {
  /* Related Posts */
  .has-sidebar {
    .related-posts {
      .grid-item {
        width: 49%;
        .thumbovertext {
          .title,
          .title a {
            font-size: 22px !important;
          }
        }
      }
    }
  }
  .sidebar input[type="search"].search-field {
    max-width: none;
  }
  .single .no-sidebar.has-full-image .sharingwrap {
    margin-left: 0;
  }
  .single .no-sidebar.no-sharing .rightside .rightcontent {
    padding-left: 15px;
    padding-right: 15px;
  }
  #sitecontainer .pagetitleloading .homeslideshow .bx-wrapper .bx-viewport img {
    max-width: none !important;
    min-width: 0px !important;
  }
  .pagetitleloading.background-imaged .pagetitle {
    margin-bottom: 0;
  }

  .single-slideshow.homeslideshow .bx-wrapper {
    .bx-next {
      right: auto;
      left: 41px;
    }
    .bx-controls {
      position: relative;
      margin: auto;
      max-width: 690px;
    }
    .bx-controls-direction {
      padding-left: 30px;
      position: relative;

      a {
        background-color: #000 !important;
        @include opacity(1);
        opacity: 1 !important;
        top: auto;
        bottom: 0;
        margin-top: 0;
        width: 40px;
        height: 40px;
      }
    }
  }
  .single-slideshow.homeslideshow.loading-dark {
    background-position: 20px 20px; // change mobile background position
  }

  .pagercontainer {
    display: none;
  }
  .home.page .slidecaption {
    padding-bottom: 0 !important;
  }
  .section .slidecaption .slidetitle,
  .section .slidecaption h1,
  .single-post .pagetitle .title,
  .single .no-full-image h1.title {
    font-size: 42px !important;
  }
  .pagetitle img.top-bg-image {
    min-width: 1100px;
  }
  .imagecover {
    height: 350px;
  }
  .single .has-thumbnail .slidecaptioncenter {
    margin-top: 0;
  }

  .single-slideshow .button {
    font-size: 12px;
  }
  .post .pagetitle .date {
    display: none;
  }
  .post .mobiledate {
    display: inline;
  }

  /* Layout */
  .rightside {
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
    width: 100%;
    padding-top: 35px;

    .rightcontent {
      width: 100% !important;
      padding-right: 15px;
    }
    .righttitle {
      width: 100%;
      padding: 0 10px 0 15px;
    }
  }
  .single .rightside {
    .rightcontent {
      width: 625px !important;
      padding-left: 15px;
      float: left;
    }
  }
  .single .no-sharing .rightside .rightcontent {
    width: 100% !important;
  }
  .single .no-sidebar.no-sharing .rightside .rightcontent {
    width: 100% !important;
  }
  .single .no-sidebar.has-full-image .rightside .rightcontent {
    width: 645px !important;
    padding-right: 15px;
  }
  /* No Sharing */
  .single .no-sidebar.has-full-image.no-sharing .rightside .rightcontent {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .single .has-full-image.has-thumbnail .pagetitle {
    .credits {
      bottom: 20px;
      top: auto;
    }
    .avatar {
      display: none;
    }
  }
  #footer {
    .one-third {
      width: 100%;
    }
  }

  /* Related Posts */
  .related-posts {
    .grid-item {
      width: 49%;
      height: 297px;

      .thumbovertext,
      .thumboverdate {
        padding: 25px;
      }

      .thumbovertext {
        .title,
        .title a {
          margin-top: 8px;
        }
      }
    }

    /* Badges */
    .badge a {
      padding: 8px;
    }
    .badge a:after {
      border-bottom-width: 26px;
    }
    .badge a:before {
      border-top-width: 26px;
    }
  }

  /* Grid */
  .section.grid.grid-full {
    .halfgrid {
      width: 344px;
    }
    .fullgrid {
      width: 692px;
    }
  }
  .grid {
    .grid-item.fullgrid,
    .grid-item.fullgrid .isobrick-inner {
      width: 692px;
    }
    .grid-item.halfgrid,
    .grid-item.halfgrid .isobrick-inner {
      width: 344px;
    }
    .pageflip {
      right: 12px;
    }
  }

  /* Sidebar */
  .sidebar {
    margin: 0;
    padding: 0;
    width: 100%;
    padding: 40px 15px 0 15px;

    .sidebarcontent {
      width: 100%;
      padding-top: 0 !important;
    }
  }

  .section .sidebar {
    padding-top: 40px !important;
  }

  /* Inputs */
  input#s,
  .search-form {
    max-width: none;
  }

  /* Pagination */
  .pagination {
    .divider {
      margin-right: 40px;
    }
  }

  .imagecover img {
    margin-top: 0 !important;
  }

  .slidecaption .slidetitle {
    font-size: 50%;
    line-height: 1em;
  }
  #menu,
  .searchnav {
    display: none;
  }
  .mobile-link {
    display: inline-block;
    vertical-align: middle;
  }
  div#logo {
    position: relative;
    width: 82%;
    padding-left: 0px !important;
    padding-right: 0px !important;

    img {
      width: 100%;
    }
  }
  .mobile-link {
    width: 16% !important;
  }
  .topbar-left,
  .topbar-right {
    float: none;
    margin: auto;
  }
  .altnav {
    .top-ad,
    .top-ad .alignright {
      width: 100%;
    }

    &.top-nav.altnav.is_stuck {
      top: 0 !important;

      .top-ad {
        display: none;
      }
    }
  }

  /* Add static positioning for poor mobile support */
  .altnav .top-nav.altnav,
  .regular-nav .top-nav {
    position: static !important;
    margin-top: 0 !important;
  }
  .top-nav-replacer {
    display: none !important;
  }

  /* Full Posts Section */
  .full-post .full-image-section {
    .fullpostimage {
      width: 100%;
      height: 350px;
    }
    .fullsection .fullcontent {
      margin: 0 !important;
      padding: 50px 15px !important;
      margin-top: 350px !important;
      max-width: 100%;
    }
  }

  /* Breadcrumbs */
  .breadcrumbs {
    position: static;
    text-align: left;
    margin-top: 10px;
  }
  #breadcrumbs {
    float: left;
    padding: 0;
  }

  .pagercontainer {
    display: none;
  }
  .section .single-slideshow .button {
    display: none;
  }
  .section .pagetitleloading {
    min-height: 200px;
  }
  .section.section-full .bxslider .navfade-bottom {
    display: none;
  }
  .home.page .slidecaption {
    padding-bottom: 0 !important;
  }
  .pagetitleloading.background-imaged .pagetitle {
    padding: 80px 0;
    margin-top: 0;
  }
  .pagetitleloading.background-imaged .backstretch img {
    margin-top: 0 !important;
  }
}
@media screen and (max-width: 782px) {
  .admin-bar #mobilemenu {
    margin-top: 46px;
  }
}

@media only screen and (max-width: 767px) {
  .single-slideshow.homeslideshow .bx-wrapper .bx-controls {
    max-width: none;
    margin-left: 30px;
  }

  /* Hide Reviews due to small size */
  .section .inner-content,
  .related .inner-content {
    display: none;
  }

  .backgroundsize {
    .imagecover {
      height: 100% !important;
      .post-break {
        height: 100%;
        .full-bg-image {
          height: 100%;
        }
      }
    }
  }

  .single .rightside {
    .rightcontent {
      width: 100% !important;
    }
  }
  .single .no-sidebar.has-full-image .rightside .rightcontent {
    width: 100% !important;
  }
  .postcontent .post-break .wp-caption-text {
    padding-right: 25px;
    margin-right: 0;
  }
  .pagetitle img.top-bg-image {
    min-width: 900px;
  }
  .imagecover {
    height: 275px;
  }

  /* Review Breakdown */
  .breakdown {
    padding: 10px 30px 15px 30px;

    .table {
      margin-top: 0;
      margin-bottom: 10px;
    }

    .table,
    .table-row,
    .table-cell {
      display: block;
    }
    .inner-content {
      float: none;
      margin-bottom: 20px;
      margin-top: 20px;
    }
    .description-cell {
      padding-left: 0;
    }
  }

  /* Post Content  */
  .single .rightside {
    .rightcontent {
      padding-left: 15px !important;
      padding-right: 15px !important;
      margin-right: 0;
    }
  }

  /* Sharing */
  .sharing,
  .sharingwrap {
    position: relative !important;
    width: 100%;
    left: 0 !important;
    top: 0 !important;
  }
  .sharing {
    padding-top: 30px;
  }
  .sharingwrap {
    .sharing {
      a,
      aside {
        width: 31%;
        background: #f3f3f3;
        background: rgba(0, 0, 0, 0.025);
        padding: 10px;

        i {
          color: rgba(0, 0, 0, 0.1);
        }
      }

      a.comment i {
        line-height: 28px;
      }
    }
  }

  /* Authorbox */
  .single {
    .authorboxfull .avatar-container {
      float: none;
      text-align: left;
      width: 100%;
      background: #e3e3e3;
      background: rgba(0, 0, 0, 0.05);
      margin-bottom: 0;
      padding: 25px 25px 0 25px;

      img {
        display: inline-block;
        width: 35px !important;
      }
      h4,
      a {
        display: inline-block;
      }
      h4 {
        margin-left: 5px;
      }
    }
    .authorboxfull .text-container {
      width: 100%;
      padding-top: 20px;
    }
    .authorboxfull .text-container:after {
      display: none;
    }
    .authorboxfull .avatar-container:after {
      content: "";
      clear: both;
    }
  }

  .rightside .replacer {
    display: none !important; // remove sticky
  }

  .single .has-full-image.has-thumbnail .rightside {
    padding-top: 0;
  }

  .single .has-full-image.has-thumbnail.no-sharing .rightside {
    padding-top: 40px;
  }

  /* Comments */
  .singlecomment {
    margin-left: 0;
  }
  .comment .avatar {
    display: none;
  }
  .listcomments .children {
    margin-left: 0px;
    padding-left: 10px;
  }

  /* Breaking News */
  .breaking div.breaking-title {
    background: transparent;
    float: none;
    text-align: center;
    border-bottom: 1px solid #333;
    padding: 0;
    margin: 0;
    display: none;
  }
  .breaking .breaking-ticker {
    width: 100%;
  }
  .breaking div.breaking-title:after {
    display: none;
  }
  .breaking .breaking-ticker {
    margin: auto;
  }

  /* Topbar Sections */
  .topbar-right,
  .topbar-left {
    text-align: center;
  }

  .section-title {
    .vertical-div {
      display: none;
    }
    span {
      display: block;
      line-height: 24px;
      margin-bottom: 5px;
    }
    p {
      line-height: 16px;
    }
  }

  .grid,
  .imagegrid.full {
    .grid-item.halfgrid,
    .grid-item.halfgrid .isobrick-inner {
      width: 100%;
    }

    .grid-item.fullgrid,
    .grid-item.fullgrid .isobrick-inner {
      width: 100%;
      height: 317px;
    }
    .grid-item.fullgrid .isobrick-inner {
      height: 317px;
      margin-left: 0;
    }
  }
  .grid .grid-item.fullgrid .thumbovertext .title,
  .grid .grid-item.fullgrid .thumbovertext .title a {
    font-size: 26px;
  }
  .section .inner-content .c100,
  .regulargrid .inner-content .c100 {
    font-size: 75px;
  }
  .regulargrid .regularwrapper {
    margin: 0;
  }
  .regulargrid .one-half {
    width: 48%;
  }

  /* Single Post */
  .pagetitleloading.background-imaged .pagetitle {
    padding: 60px 0;
  }
  .section .slidecaption .slidetitle,
  .section .slidecaption h1,
  .single-post .pagetitle .title,
  .single .no-full-image h1.title,
  .full-taxonomy .fullsection .title a,
  .full-taxonomy .fullsection .title a:hover {
    font-size: 26px !important;
  }

  /* Badges */
  .badge a {
    padding: 8px;
  }
  .badge a:after {
    border-bottom-width: 26px;
  }
  .badge a:before {
    border-top-width: 26px;
  }
}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
}

@media screen and (max-width: 767px) {
  /* Gallery Sizes */
  .single-gallery {
    .gallery-columns-1,
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
      .gallery-item {
        width: 48%;
        margin: 0.5% 1%;
      }
      .gallery-item .gallery-caption {
        display: block;
        span {
          padding: 30px;
        }
      }
    }
  }

  .grid,
  .imagegrid.full {
    .grid-item.halfgrid,
    .grid-item.fullgrid {
      width: 100%;
      height: 310px;
    }
    .isobrick {
      width: 49%;

      .fullgrid img {
        min-width: 800px;
        margin-left: -250px;
      }
      .halfgrid img {
        min-width: 300px;
      }
    }
    .grid-item .thumboverdate,
    .grid-item .thumbovertext {
      padding: 30px;
    }
  }

  .section {
    .slidecaptioncenter {
      float: left;
      width: 80%;
      margin: 0 !important;
    }
  }

  /* Related Posts */
  .related-posts {
    .grid-item {
      height: 263px;

      .thumboverdate,
      .thumbovertext {
        padding: 25px;

        .title,
        .title a {
          font-size: 22px !important;
        }
      }
    }
  }
}

/* Fixea ie11 jumping issue */
@media all and (min-width: 769px) {
  .sharingwrap {
    width: 75px !important;
  }
}

@media screen and (max-width: 600px) {
  .logged-in.admin-bar #mobilemenu {
    margin-top: 0;
  }
  .regulargrid .one-half {
    width: 100%;
  }
  html {
    margin-top: 0 !important;

    .admin-bar {
      .mm-page {
        margin-top: 46px;
      }
      #wpadminbar {
        top: -46px;
      }
    }
  }

  html.js {
    margin-top: 0 !important;
  }

  .section .slidecaptioncenter {
    width: 60%;
  }

  /* Related Posts */
  .has-sidebar .related-posts,
  .related-posts {
    .grid-item {
      width: 100%;
      .thumboverdate,
      .thumbovertext {
        padding: 25px;
      }
    }
  }

  .carousel .carouselpost .fullgrid {
    .thumbovertext .title {
      font-size: 22px;

      a {
        font-size: 22px;
      }
    }

    .thumboverdate,
    .thumbovertext {
      padding: 30px;
    }
  }
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
  div#logo {
    position: relative;
    width: 82%;
    padding-left: 0px !important;
    padding-right: 0px !important;

    img {
      width: 100%;
    }
  }
  .mobile-link {
    width: 16% !important;
  }

  .section .slidecaptioncenter {
    width: 48%;
  }
  .fixed-carousel .container.carousel-container,
  .fixed-carousel .container.carousel-container .col-md-12 {
    padding: 0;
  }

  /* Related Posts */
  .has-sidebar .related-posts,
  .related-posts {
    .grid-item {
      width: 100%;
      .thumboverdate,
      .thumbovertext {
        padding: 25px;
      }
    }
  }

  /* Gallery Sizes */
  .single-gallery {
    .gallery-columns-1,
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
      .gallery-item .gallery-caption {
        display: none;
      }
    }
  }

  .grid,
  .imagegrid.full {
    .grid-item.halfgrid {
      width: 100%;
    }
    .isobrick {
      width: 100%;

      .fullgrid img {
        min-width: 800px;
        margin-left: -250px;
      }
      .halfgrid img {
        min-width: 300px;
      }
    }
  }

  /* Sharing */
  #share-box {
    h4 {
      font-size: 32px !important;
    }
    i {
      font-size: 52px;
      margin: 0 2px;
    }
  }

  #sitecontainer .pagetitleloading .homeslideshow .bx-wrapper .bx-viewport img {
    margin-left: -200px;
  }
}
