.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 30px;
}

.admin-bar .sidebar-sticky {
  top: 60px;
}

.header-sticky .sidebar-sticky {
  top: 110px;
}

.admin-bar.header-sticky .sidebar-sticky {
  top: 140px;
}

.site-content {
  padding: 90px 0;
  position: relative;
}

#page.site {
  @media #{$max-lg} {
    overflow: hidden;
  }
}

.single-footer {
  .site-footer-custom {
    display: none;
  } 
  .site-content { 
    padding: 0;
  }
}

@media #{$min-xl} {
  body {
    .container {
      max-width: 1200px;
      width: 100%;
    }
    .content-has-sidebar {
      &.float-left {
        padding-right: 70px;
      }
      &.float-right {
        padding-left: 70px;
      }
    }
    &.single-post .content-has-sidebar {
      &.float-left {
        padding-right: 15px;
      }
      &.float-right {
        padding-left: 15px;
      }
    }
  }
}

@media #{$min-lg} {
  .content-has-sidebar.float-right {
    order: 2;
    -webkit-order: 2;
    -ms-order: 2;
    + #secondary {
      order: 1;
      -webkit-order: 1;
      -ms-order: 1;
    }
  }
}

@media #{$max-lg} {
  body .container {
    max-width: 100%;
  }
}

@media #{$max-md} {
  #primary + #secondary {
    margin-top: 60px;
  }
}