/*                           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);
}

@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 #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: 1px !important }


  /* .stuck #block-menu-menu-site-menu > .menu.nav > li { padding: 15px 0 0 } */
  .admin-menu .sticky.stuck { top: 30px }
  .sticky-compatible .node-type-overview-page .main-container .stuck + .row { margin-top: 100px !important }
}

/* node-type-document fixes */

.node-type-document .sticky.stuck {
    z-index: 9999 !important;
}

@media (min-width: 768px) {
  .node-type-document .sticky.stuck + .col-sm-12 {
      margin-top: 100px !important
  }
}

.node-type-document .sticky + .col-sm-12, /* sticky script is enable */
.node-type-document .main-container > header.container + .col-sm-12 /* or disabled */ { float: none }

/* customizations */


@media (min-width: 768px) {
  .sticky.stuck #block-block-1,
  .sticky.stuck #block-search-form {
    display: none !important;
  }

  .sticky.stuck .site-name-slogan {
    min-height: 0;
  }

  .sticky.stuck a.logo {
    width: 150px;
    max-height: none;
    margin-right: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .sticky.stuck #page-header > .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
       -ms-flex-align: end;
          align-items: end;
  }

  .sticky.stuck #page-header > .row > div:first-child {
    float: left; 
  }

  .sticky.stuck #block-menu-menu-site-menu > .menu.nav > li > a::before {
    bottom: 0
  }
}