/* The gallery page (src/ui/gallery.js). */
/* ---- the gallery (/gallery, src/ui/gallery.js): every control in every state, on the panel's surface ---------- */
.gallery {
  min-height: 100%;
  padding: 0 24px 60px;
  background: var(--pane);
}
.g-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 -24px 18px;
  padding: 12px 24px;
  background: var(--toolbar);
  border-bottom: 1px solid var(--edge);
}
.g-h1 {
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
}
.g-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.g-nav a {
  color: var(--link);
  font-weight: var(--fw-button);
  text-decoration: none;
}
.g-nav a:is(:hover, .is-hover) {
  text-decoration: underline;
}
.g-section {
  margin-bottom: 36px;
  scroll-margin-top: 60px;
}
.g-title {
  margin: 0 0 12px;
  color: var(--label);
  font-size: var(--fs-text);
  font-weight: var(--fw-title);
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 24px;
  align-items: start;
}
.g-cell.g-wide {
  grid-column: span 2;
}
.g-name {
  margin-bottom: 6px;
  color: var(--dim);
}
.g-item {
  min-width: 0;
}
.g-swatch {
  height: 36px;
  border: 1px solid var(--group-border);
  border-radius: var(--r);
}
.g-queue {
  border-top: 1px solid var(--edge);
}
.g-tree {
  position: relative;
  height: 100px;
}
.g-tree .node {
  top: 6px;
}
