/**SIDEBAR*/

#page-wrapper {
  display: flex;
}

#page-wrapper-inner {
  width: 100%;
}

.header-wrapper {
  display: flex;
}

/**Desktop*/
@media (min-width: 1300px) {
  #header {
    background-color: var(--ast-global-color-0);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    position: fixed;
    height: 100%;
    top: 0;
    z-index: 99;
  }

  .header-wrapper {
    flex-direction: column;
    gap: var(--gap-xl);
  }

  #page-wrapper-inner {
    max-width: calc(100vw - var(--sidebar-width));
    margin-left: auto;
  }
}

/**Mobile*/
@media (max-width: 1299px) {
  #header {
    width: 100%;
  }

  #page-wrapper {
    flex-direction: column;
  }

  #page-wrapper-inner {
    max-width: 100vw;
  }

  .header-wrapper {
    position: relative;
    padding: var(--gap-m) 3vw;
    z-index: 999;
  }
}

/**end sidebar*/
/**Theme Logo*/
#theme-logo {
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  position: relative;
  height: clamp(100px, 25vw, 283px);
}

#theme-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/logo-bg-before.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

#theme-logo-mobile {
  position: relative;
  z-index: 9;
}

/**Desktop*/
@media (min-width: 1300px) {
  #theme-logo-mobile {
    display: none;
  }
}

/**Mobile*/
/**Responsive general*/

@media (max-width: 1299px) {
  #theme-logo {
    display: none;
  }
  .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--ast-global-color-0);
  }

  /* .header-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
    z-index: -1;
  } */

  #theme-logo-mobile .theme-logo img {
    width: clamp(214px, 35vw, 380px) !important;
  }

  .header-wrapper.not-home {
    background: var(--ast-global-color-0);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 1300px) {
  body:not(.home) .header-wrapper::after {
    display: none;
  }
}
