.portfolio-project-pager {
  --portfolio-project-pager-foreground: #000;
  --portfolio-project-pager-hover: var(--header-control-hover, rgba(0, 0, 0, 0.04));
  --portfolio-project-pager-focus: rgba(0, 0, 0, 0.35);
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  box-sizing: border-box;
  height: 72px;
  padding-inline: calc(var(--portfolio-site-frame-side-gutter, 24px) + 24px);
  justify-content: space-between;
  background: transparent;
  font-family: "Barlow", Arial, sans-serif;
  font-synthesis: none;
  pointer-events: none;
}

.portfolio-project-pager__magnet {
  display: flex;
  box-sizing: border-box;
  height: 72px;
  padding-top: 14px;
  align-items: flex-start;
  pointer-events: none;
}

.portfolio-project-pager__magnet--back {
  justify-content: flex-start;
}

.portfolio-project-pager__magnet--next {
  justify-content: flex-end;
}

.portfolio-project-pager__link {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  height: var(--portfolio-site-nav-button-height, 30px);
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--portfolio-project-pager-foreground);
  font-family: "Barlow Nav 450", "Barlow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 22px;
  font-synthesis: none;
  -webkit-text-stroke: 0.24px currentColor;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  pointer-events: auto;
  transition: background-color 160ms ease;
}

.portfolio-project-pager__link:hover {
  background: var(--portfolio-project-pager-hover);
}

html.portfolio-cursor-active .portfolio-project-pager__link:hover {
  background: transparent;
}

.portfolio-project-pager__icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transform: translateY(1px);
}

.portfolio-project-pager__icon--next {
  transform: translateY(1px) scaleX(-1);
}

.portfolio-project-pager__label {
  display: block;
}

.portfolio-project-pager__link:focus-visible {
  outline: 1px solid var(--portfolio-project-pager-focus);
  outline-offset: 2px;
  background: var(--portfolio-project-pager-hover);
}

.portfolio-project-pager.is-on-dark {
  --portfolio-project-pager-foreground: #fff;
  --portfolio-project-pager-hover: rgba(255, 255, 255, 0.10);
  --portfolio-project-pager-focus: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
  .portfolio-project-pager {
    padding-inline: 20px;
  }

  .portfolio-project-pager__link {
    padding-inline: 14px;
  }
}

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