/* Gallery and preview navigation only; not part of tty.css. */
.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}

.example-grid > article {
  min-width: 0;
  min-height: 23rem;
  margin: 0;
}

.example-grid > article > header {
  margin-bottom: 1rem;
}

.example-grid > article > header small {
  color: var(--tty-fg-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.example-grid > article > header h2 {
  margin-block: 0.5rem 0;
  font-size: 1.25rem;
}

.example-grid .example-tags {
  margin-block: 0 1rem;
}

.example-tags mark {
  display: inline-block;
  background: var(--tty-surface-muted);
  color: var(--tty-fg);
}

.example-detail,
.example-download-note {
  color: var(--tty-fg-muted);
  font-size: 0.8rem;
}

.example-grid > article > footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
}

.example-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: 100%;
  padding: 0.75rem max(1rem, calc((100% - var(--tty-container)) / 2));
  border-bottom: 1px solid var(--tty-border);
  background: var(--tty-surface-muted);
  color: var(--tty-fg);
  font-size: 0.8rem;
}

.example-toolbar span {
  color: var(--tty-fg-muted);
}

.example-note {
  max-width: var(--tty-container);
  margin: 0.75rem auto;
  padding-inline: 1rem;
  color: var(--tty-fg-muted);
  font-size: 0.8rem;
}

@media (max-width: 64rem) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .example-grid { grid-template-columns: minmax(0, 1fr); }
  .example-grid > article { min-height: 0; }
  .example-toolbar span { flex-basis: 100%; order: 1; }
}
