/* Keep the existing photo blur, fade and parallax beneath a separate brush mask. */
/* JS opts in mobile photos plus the selected desktop About photos. */
@media (prefers-reduced-motion: no-preference) {
  img.mobile-photo-brush {
    /* Clear the trailing haze sooner, with a smooth alpha curve at both ends. */
    -webkit-mask-image: linear-gradient(110deg, #000 40%, rgba(0, 0, 0, .972) 42.5%, rgba(0, 0, 0, .896) 45%, rgba(0, 0, 0, .784) 47.5%, rgba(0, 0, 0, .648) 50%, rgba(0, 0, 0, .5) 52.5%, rgba(0, 0, 0, .352) 55%, rgba(0, 0, 0, .216) 57.5%, rgba(0, 0, 0, .104) 60%, rgba(0, 0, 0, .028) 62.5%, transparent 65%);
    mask-image: linear-gradient(110deg, #000 40%, rgba(0, 0, 0, .972) 42.5%, rgba(0, 0, 0, .896) 45%, rgba(0, 0, 0, .784) 47.5%, rgba(0, 0, 0, .648) 50%, rgba(0, 0, 0, .5) 52.5%, rgba(0, 0, 0, .352) 55%, rgba(0, 0, 0, .216) 57.5%, rgba(0, 0, 0, .104) 60%, rgba(0, 0, 0, .028) 62.5%, transparent 65%);
    -webkit-mask-size: 300% 300%;
    mask-size: 300% 300%;
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  img.mobile-photo-brush.is-photo-brushed {
    animation: mobile-photo-brush-in 3.5s cubic-bezier(.22, .61, .36, 1) both;
  }

  @keyframes mobile-photo-brush-in {
    from {
      -webkit-mask-position: 100% 100%;
      mask-position: 100% 100%;
    }
    to {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }
}

@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
  #about .about-window.mobile-photo-brush.is-photo-brushed,
  #about .about-row img.mobile-photo-brush.is-photo-brushed,
  #about .about-profile-portrait.mobile-photo-brush.is-photo-brushed {
    animation-duration: 4s;
  }
}
