/* Commission stories: a few commissions, each given a full row. The painting is shown whole and
   large, hung on the ivory page with a hung canvas's shadow; beside it, what it is and the story
   in the painter's words. Unframed: the studio sells paintings. */
.cm-stories { display: grid; gap: clamp(72px, 11vw, 160px); margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.cm-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(36px, 7vw, 112px); }
.cm-story:nth-child(even) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.cm-story:nth-child(even) .cm-story-art { order: 2; }
.cm-story-art { margin: 0; display: flex; justify-content: center; }
body .cm-story-art img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(78vh, 680px);
  filter: none;  /* paintings without a shadow */
}
.cm-story-copy { max-width: 30rem; }
.cm-story:nth-child(even) .cm-story-copy { justify-self: end; }
.cm-story-kind { margin: 0 0 14px; font: 400 14px/1.4 var(--hui-font-body, Jost, Arial, sans-serif); color: var(--hui-stone, #67565E); }
body .cm-story-copy h3 { margin: 0 0 18px; font: 400 clamp(30px, 3.4vw, 46px)/1.12 var(--hui-font-heading, "Playfair Display", Georgia, serif); letter-spacing: -.015em; color: var(--hui-ink, #26171F); }
.cm-story-copy p.cm-story-text { margin: 0; font-size: 17px; line-height: 1.75; color: var(--hui-ink, #26171F); }
.cm-story-facts { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(38, 23, 31, .22); font: 400 14px/1.5 var(--hui-font-body, Jost, Arial, sans-serif); color: var(--hui-stone, #67565E); }
.cm-stories-close { margin: clamp(64px, 9vw, 120px) auto 0; max-width: 44rem; text-align: center; }
.cm-stories-close p { margin: 0 0 22px; font: 400 italic clamp(21px, 2.2vw, 27px)/1.45 var(--hui-font-heading, "Playfair Display", Georgia, serif); color: var(--hui-ink, #26171F); }
.cm-stories-more { margin-top: clamp(40px, 6vw, 72px); }
.cm-stories-more .commission-grid:not(:has(.commission-work-card:not([hidden]))) { display: none; }
@media (max-width: 799px) {
  .cm-stories { gap: 72px; }
  .cm-story, .cm-story:nth-child(even) { grid-template-columns: 1fr; gap: 30px; }
  .cm-story:nth-child(even) .cm-story-art { order: 0; }
  body .cm-story-art img { max-height: none; width: 100%; }
  .cm-story:nth-child(even) .cm-story-copy { justify-self: start; }
  .cm-story-copy p.cm-story-text { font-size: 16px; }
}
/* The other works, kept behind one link where the page has no script-driven grid. */
.cm-stories-details { margin-top: clamp(28px, 4vw, 48px); text-align: center; }
.cm-stories-details > summary { list-style: none; margin-inline: auto; cursor: pointer; }
.cm-stories-details > summary::-webkit-details-marker { display: none; }
.cm-stories-details[open] > summary { margin-bottom: clamp(32px, 5vw, 56px); }
.cm-stories-details .pet-works { columns: 2; max-width: 56rem; margin-inline: auto; text-align: left; }
body .cm-stories-details .pet-works figure { width: 100%; }
@media (max-width: 599px) { .cm-stories-details .pet-works { columns: 1; } }
