/* The image tiles of an opened product (components/gallery.js; A5.8): three squares to a row, a gap between them, the label and
   its check mark on a strip over the photo. Every value is a token (the strip and the marks are mixed from the app's own colours). */
.gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

.gal .gt {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-thumb);
  background-color: var(--app-raise);
  color: var(--app-ink);
  font-family: inherit;
  overflow: hidden;
  cursor: pointer;
}

.gal .gt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal .gt .gl {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: color-mix(in srgb, var(--app-ink) 72%, transparent);
  color: var(--app-surface);
  font-size: var(--font-size-badge);
  font-weight: 700;
}

.gal .gt .gs {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 var(--spacing-xs);
  border-radius: var(--radius-pill);
  background-color: var(--app-surface);
  color: var(--app-ink);
  font-size: var(--font-size-caption);
  font-weight: 800;
}

.gal .gt .gs.bad {
  background-color: var(--app-note-bg);
  color: var(--app-note-ink);
}

.gal .gt .gm {
  position: absolute;
  inset-block-start: var(--spacing-xs);
  inset-inline-end: var(--spacing-xs);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background-color: var(--app-surface);
}

.gal .gt .gm svg {
  width: 14px;
  height: 14px;
  fill: var(--app-note-dot);
  stroke: none;
}

/* a slot not made yet, and an image being redone */
.gal .gt.wait,
.gal .gt.redo {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  color: var(--app-muted);
  font-size: var(--font-size-meta);
  line-height: 1.5;
  text-align: center;
}

.gal .gt.wait {
  border-style: dashed;
}

.gal .gt.redo {
  border-color: var(--app-btn);
  border-style: dashed;
  background-color: var(--app-raise);
  color: var(--app-btn);
}

.gal .gt.redo small {
  font-size: var(--font-size-badge);
  font-weight: 800;
}

.gal .gt.card {
  background-color: var(--app-surface);
}

.gal .gt .gcard {
  display: grid;
  place-items: center;
  height: 100%;
  padding: var(--spacing-sm);
  color: var(--app-ink-soft);
  font-size: var(--font-size-meta);
  font-weight: 800;
  text-align: center;
}

/* «النص» of the opened product (screens/review_images.js; the approved .tprev .tt .td .tl): the title, the lines, «المزيد» and «تعديل» */
.tprev {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tprev .tt {
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.tprev .td {
  color: var(--app-ink-soft);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  white-space: pre-line;
}

.tprev .tl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-gap);
}

.tprev .tl .lnk {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.tprev .tl .lnk svg {
  width: 16px;
  height: 16px;
}
