/* TicketingDesignPicturesComponent (packs/ticketing/app/components/ticketing_design_pictures_component.rb): the pictures a brief gives the ticket designer.
   The legend and its help, what the last post did, a row of small square pictures that wraps (each with its name under it and its Remove button), then the
   file input and the button that adds what was chosen.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.ticketing-design-pictures {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ticketing-design-pictures__legend {
  padding: 0;
}

.ticketing-design-pictures__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticketing-design-pictures__item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-1);
  min-inline-size: 0;
}

.ticketing-design-pictures__tile {
  display: grid;
  gap: var(--space-1);
  inline-size: 100%;
  min-inline-size: 0;
  margin: 0;
}

.ticketing-design-pictures__thumb {
  display: block;
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.ticketing-design-pictures__placeholder {
  display: grid;
  place-items: center;
  color: var(--fg2);
}

.ticketing-design-pictures__caption {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
  font-size: var(--text-sm);
}

.ticketing-design-pictures__name {
  color: var(--fg1);
  overflow-wrap: anywhere;
}

.ticketing-design-pictures__state {
  color: var(--fg2);
  overflow-wrap: anywhere;
}

.ticketing-design-pictures__add {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  min-inline-size: 0;
}

.ticketing-design-pictures__full {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
