/*
 * vr-ssr.css — the server-rendered summary block (#vrSsr.vr-ssr).
 *
 * veriroo-api (src/routes/ssrPages.js) renders /item/ and
 * /showcase/profile.html with a plain summary of the piece or gallery, for
 * fetchers that run no JavaScript. People see it only for the moment before the
 * page JS paints the real view and removes it, so it is kept quiet: the narrow
 * column, theme tokens only (a hardcoded colour disappears in one theme), no
 * inline styles in the markup.
 */

.vr-ssr {
  max-width: 760px;
  margin: 16px auto 24px;
  padding: 16px;
  border: 1px solid var(--vr-border);
  border-radius: 14px;
  background: var(--vr-card);
  color: var(--vr-text);
  box-sizing: border-box;
}

.vr-ssr img,
.vr-ssr-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.vr-ssr-img {
  max-height: 60vh;
  margin: 0 auto 16px;
}

.vr-ssr-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  margin: 0 0 12px;
}

.vr-ssr-facts dt {
  font-size: 0.8rem;
  color: var(--vr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vr-ssr-facts dd {
  margin: 0 0 8px;
}

.vr-ssr-facts a,
.vr-ssr-works a {
  color: var(--vr-link);
}

.vr-ssr-desc {
  margin: 0;
  line-height: 1.55;
}

.vr-ssr h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.vr-ssr-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vr-ssr-works a {
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.vr-ssr-works img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  .vr-ssr-facts {
    grid-template-columns: max-content 1fr;
  }
  .vr-ssr-facts dd {
    margin-bottom: 4px;
  }
  .vr-ssr-works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
