/* Mobile: bottom right of the screen. From 768px it sits in the header, last on
   the right. The project gallery has no zoomed-out state on mobile. */
@media (width < 768px) {
  .view-toggle {
    position: fixed;
    bottom: var(--spacing-3);
    right: var(--spacing-3);
  }

  .template-project .view-toggle {
    display: none;
  }
}

.view-toggle-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  border: 1px solid currentColor;
}

.view-toggle-icons {
  display: grid;
}

.icon {
  opacity: 0;
  grid-area: 1 / 1;
  transition: opacity 350ms ease-in-out;

  &.is-active {
    opacity: 1;
  }
}
