img {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.gallery-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.gallery-item:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

a,
button {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, background-color, color;
}

::selection {
  background-color: rgba(30, 34, 71, 0.2);
  color: inherit;
}

::-moz-selection {
  background-color: rgba(30, 34, 71, 0.2);
  color: inherit;
}

* {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
