/* Language switcher shared by index.html and work/project.html. */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-family: "Geist", sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-switcher-desktop {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 10002;
  transform: translateX(-50%);
  color: #fff;
  mix-blend-mode: difference;
}

.language-switcher button {
  appearance: none;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: .42;
  transition: opacity .2s ease, border-color .2s ease;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  opacity: 1;
}

.language-switcher button.is-active {
  border-bottom-color: currentColor;
}

.language-switcher-separator {
  opacity: .28;
}

.language-switcher-mobile {
  display: none;
}

@media (max-width: 767px) {
  .language-switcher-desktop {
    display: none;
  }

  #mobileNavPanel .language-switcher-mobile {
    display: flex;
    flex: 0 0 auto;
    margin-top: auto;
    margin-bottom: 18px;
    color: var(--nav-black);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s .28s ease, transform .65s .28s var(--nav-ease);
  }

  #mobileNavPanel.is-open .language-switcher-mobile {
    opacity: 1;
    transform: translateY(0);
  }

  #mobileNavPanel .language-switcher-mobile + .mobile-nav-links {
    margin-top: 0;
  }
}
