.aar-smooth-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 16px;
  margin: 0;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
  pointer-events: none;
}

/* Keep animated arrows centered inside the circular controls. */
.circleArrow,
.projectPhotoArrow,
.projectViewerControls button {
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}

.circleArrow > .aar-smooth-arrow,
.projectPhotoArrow > .aar-smooth-arrow,
.projectViewerControls button > .aar-smooth-arrow,
.portfolioFeatureTitle a > .aar-smooth-arrow {
  flex: 0 0 20px;
  margin: 0;
}

.projectViewerClose {
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}

/* Thin border chevrons keep the staggered button arrows light. */
.aar-smooth-arrow > span {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0 0 0 -0.5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0;
  transform: rotate(45deg);
  animation: aar-smooth-chevron 2s ease-in-out infinite;
}

.aar-smooth-arrow > span:first-child {
  margin-left: 0;
  animation-delay: -0.4s;
}

.aar-smooth-arrow > span:nth-child(2) {
  animation-delay: -0.2s;
}

.aar-smooth-arrow > span:nth-child(3) {
  animation-delay: 0s;
}

.aar-smooth-arrow[data-direction="left"] > span {
  animation-name: aar-smooth-chevron-left;
  border-right: 0;
  border-left: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.aar-smooth-arrow--external {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
}

.aar-smooth-arrow--external > span {
  flex-basis: 5px;
  width: 5px;
  height: 5px;
  margin-left: -1px;
}

.aar-smooth-arrow--external > span:first-child {
  margin-left: 0;
}

@keyframes aar-smooth-chevron {
  0% {
    opacity: 0;
    transform: translateX(-4px) rotate(45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(4px) rotate(45deg);
  }
}

@keyframes aar-smooth-chevron-left {
  0% {
    opacity: 0;
    transform: translateX(4px) rotate(-45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-4px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aar-smooth-arrow > span {
    animation: none;
    opacity: 1;
    transform: var(--aar-static-transform, none);
  }
  .aar-smooth-arrow > span {
    --aar-static-transform: rotate(45deg);
  }
  .aar-smooth-arrow[data-direction="left"] > span {
    --aar-static-transform: rotate(-45deg);
  }
}