.nav-inner {
  position: relative;
}

@media (max-width: 1024px) {
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0.5rem 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links li {
    width: auto;
  }

  .nav-links li a {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 1025px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}