/* Spec 019: a kid's photos, and spec 106: My art, where they sit beside the drawings (studio.css draws the grid and the
   drawing cards; a photo is a card of the same family). Colours are tokens only (tokens.css). */

.library-add {
  align-self: flex-start;
  min-height: var(--touch-kid);
}

.art-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.art-chips {
  margin-block: var(--space-1);
}

/* Spec 126: a photo just added is outlined in the accent for a moment as My art scrolls to it (inside the card, so the
   page's edge never cuts it); it blinks twice unless the reader asks for less motion. */
.art-item.art-added {
  outline: 5px solid var(--accent);
  outline-offset: -5px;
  animation: art-added 900ms ease-in-out 2;
}

@keyframes art-added {
  50% {
    outline-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-item.art-added {
    animation: none;
  }
}
