.header,
.header.shrink {
  height: 90px;
}

.header + .sub-nav,
.header.shrink + .sub-nav {
  top: 90px;
}

.portfolio-shared-header .nav-container {
  height: 100%;
}

.portfolio-search-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.portfolio-shared-header .portfolio-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-shared-header .portfolio-hamburger {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.portfolio-shared-subnav .sub-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 14px/1.2 'Sora', sans-serif;
  cursor: pointer;
  transition: color .25s ease;
}

.portfolio-shared-subnav .sub-item-label::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  opacity: .72;
  transition: transform .25s ease, color .25s ease;
}

.portfolio-shared-subnav .sub-item:hover .sub-item-label {
  color: var(--text-main);
}

.portfolio-shared-subnav .sub-item:hover .sub-item-label::after {
  transform: rotate(225deg);
  color: var(--accent1);
}

.sites-dropdown .dropdown {
  width: min(390px, calc(100vw - 30px));
  max-height: min(60vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #7b2ff7 rgba(255,255,255,.07);
}

.sub-nav .sites-dropdown:hover .dropdown,
.portfolio-shared-subnav .sub-item:hover .dropdown {
  transform: translateX(-50%) translateY(0);
}

.sites-dropdown .dropdown::-webkit-scrollbar {
  width: 7px;
}

.sites-dropdown .dropdown::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.sites-dropdown .dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(#7b2ff7, #ff7a18);
  border-radius: 999px;
}

.sites-dropdown .site-menu-group + .site-menu-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.11);
}

.sites-dropdown .site-menu-heading {
  display: block !important;
  padding: 7px 11px 8px;
  color: #ff9a3d;
  font: 800 10px/1.2 'Sora', sans-serif;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  cursor: default;
}

.sites-dropdown .site-menu-heading::after {
  display: none !important;
}

.sites-dropdown .dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 9px 11px;
}

.sites-dropdown .dropdown a i {
  flex: 0 0 auto;
  font-size: 10px;
  opacity: .58;
}

.portfolio-mobile-menu {
  display: none;
}

.portfolio-mobile-home {
  display: none;
}

@media (max-width: 1180px) and (min-width: 769px) {
  .portfolio-shared-main-nav {
    gap: 7px;
  }

  .portfolio-shared-main-nav .nav-main-link {
    padding-right: 8px;
    font-size: 11.5px;
  }

  .portfolio-shared-main-nav .portfolio-home-link {
    padding-inline: 11px;
  }
}

@media (max-width: 768px) {
  .portfolio-shared-header .portfolio-shared-main-nav {
    display: none !important;
  }

  .portfolio-mobile-home {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--text-main);
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
  }

  .portfolio-mobile-home:hover,
  .portfolio-mobile-home:focus-visible {
    transform: translateY(-2px) scale(1.04);
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(123,47,247,.22), 0 10px 24px rgba(255,122,24,.16);
  }

  body.light-mode .portfolio-mobile-home {
    border-color: rgba(20,20,30,.14);
    background: rgba(255,255,255,.78);
    color: #181822;
    box-shadow: 0 8px 24px rgba(20,20,30,.08);
  }

  body.light-mode .portfolio-mobile-home:hover,
  body.light-mode .portfolio-mobile-home:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #fff;
  }

  .sub-nav .sites-dropdown .dropdown {
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .sub-nav .sub-item.sites-dropdown.open .dropdown,
  .sub-nav .sub-item.sites-dropdown.open:hover .dropdown {
    max-height: min(58vh, 520px);
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .portfolio-shared-subnav,
  .portfolio-mobile-menu,
  .portfolio-shared-header .portfolio-hamburger {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-mobile-home {
    transition: none;
  }
}
