.page .content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--preview-width)), 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.page .content-grid > li {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.sound-previews { --preview-width: 250px; }
.page .content-grid.theme-gallery {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page .content-grid.theme-gallery > li {
  padding: 0;
  border: 0;
  background: transparent;
}

.sound-previews audio {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.theme-gallery p {
  margin: 4px 0 10px;
}

.theme-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.theme-swatches span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 5px;
  background: var(--swatch);
  color: #111;
  box-shadow: inset 2px 2px 0 rgb(255 255 255 / 40%), inset -2px -3px 0 rgb(0 0 0 / 28%);
  font-family: ui-monospace, monospace;
}

.theme-swatches span + span { color: #fff; }
