/*                           Sticky Header
  ******************************************/

.sticky {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 100%;
}

.sticky.stuck {
  position: fixed;
  top: 0; bottom: auto;
  left: 0; right: 0;
  z-index: 999 !important;
  margin: 0 auto;
  background: rgba(255, 255, 255, 1);
  -webkit-box-shadow: rgba(0,0,0,0.5) 0 0 25px;
     -moz-box-shadow: rgba(0,0,0,0.5) 0 0 25px;
          box-shadow: rgba(0,0,0,0.5) 0 0 25px;
}

.sticky-compatible .sticky.stuck {
  position: -webkit-sticky;
  position: sticky;
  width: 100% !important;
  padding: 0  !important;
}

.sticky, .sticky > *{
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}

.stuck #page-header { margin-bottom: 0; margin-top: 0; border: none }
.stuck a.logo.hidden-site-name { padding: 5px 0 }
.node-type-overview-page .main-container .stuck + .row { margin-top: 35px !important /* 35 px bottom */ }
.sticky-compatible .node-type-overview-page .main-container .stuck + .row { margin-top: 11px !important }

@media (max-width: 767px) {
    /* do not react on .stuck changes on mobile view ports */
    .sticky.stuck,
    .sticky-compatible .sticky.stuck {
        position: static;
        background: transparent;
        -webkit-box-shadow: none;
                box-shadow: none;
    }

    .sticky-container { height: auto !important }
}

@media (min-width: 768px) {
  /* .stuck #block-menu-menu-site-menu > .menu.nav > li { padding: 15px 0 0 } */
  .admin-menu .sticky.stuck { top: 30px }
}