#sidebar {
  position: fixed;
  top: 0;
  height: 90px;
  width: 100%;
  padding: 0 !important;
  background: #242424;
  color: #fff;
  z-index: 2;
}

#sidebar ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 0;
}

#sidebar ul li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 0 2vw;
  cursor: pointer;
}

#sidebar ul li:hover {
  color: #242424;
  background: #c8cccd;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar ul li a {
  font-size: 1.2vw;
}

#sidebarCollapse {
  display: none;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (min-width: 1400px) {
  #sidebar ul li a {
    font-size: 1vw;
  }
}

@media (max-width: 768px) {
  .imageWrapper picture {
    margin-top: 0px;
  }

  #sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-height: 100%;
    width: 70%;
    transition: all 0.6s cubic-bezier(0.945, 0.02, 0.27, 0.665);
    transform-origin: bottom left;
    margin-left: -250px;
    transform: rotateY(90deg);
    z-index: 1;
  }

  #sidebar ul {
    display: block;
    margin-top: 30px;
    margin-right: 0;
    height: auto;
  }

  #sidebar ul li {
    display: block;
    height: auto;
  }

  #sidebar ul li:hover {
    display: flex;
    justify-content: flex-start;
  }

  #sidebar ul li a {
    display: block;
    padding: 10px 15px;
    font-size: 1.1em;
  }

  #sidebar.active {
    height: 100%;
    margin-left: 0px;
    transform: none;
    z-index: 1;
  }

  #sidebarCollapse {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
  }

  #sidebarCollapse input {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
  }

  #sidebarCollapse span {
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: 10px;
    position: relative;
    background: #efefef;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.7s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.7s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }

  #sidebarCollapse span:first-child {
    transform-origin: 0% 0%;
  }

  #sidebarCollapse span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  #sidebarCollapse input:checked ~ span:first-of-type {
    transform: rotate(45deg) translate(3px, 1px);
  }
  #sidebarCollapse input:checked ~ span:nth-of-type(2) {
    opacity: 0;
  }
  #sidebarCollapse input:checked ~ span:last-of-type {
    transform: rotate(-45deg) translate(0px, -1px);
  }
}
