html {
  overflow-y: scroll;
}

.navbar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.navbar .logo {
  width: clamp(1rem, 100px, 20rem);
  cursor: pointer;
  flex: 0 0 auto;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1vw, 1rem);
}

.navbar ul li {
  list-style: none;
  display: block;
  margin: 0;
  position: relative;
  font-size: clamp(0.5rem, 1vw, 1.5rem);
}

.navbar ul li a {
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}

.navbar ul li::after {
  content: "";
  height: 2px;
  width: 0%;
  background: var(--white);
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: 0.5s;
}

.navbar ul li:hover::after {
  width: 100%;
}

/* Individual gallery pages use the light gallery background. */
.gallery-page .navbar ul li a {
  color: var(--background);
}

.gallery-page .navbar ul li::after {
  background: var(--background);
}

@media screen and (max-width: 900px) {
  .navbar ul {
    gap: 0.25rem;
  }

  .navbar ul li {
    font-size: clamp(0.4rem, 2vw, 1rem);
  }
}

@media screen and (max-width: 600px) {
  .navbar ul li {
    font-size: clamp(0.5rem, 2.5vw, 1.5rem);
  }
}
