/* Reuse the existing autumn card, heading and button families. */
.real-cases { position: relative; background: #f5efe4 var(--motif-cases-album-stamp, url("cases-album-stamp.svg")) right top / 280px auto no-repeat; }
.real-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.real-case-card { min-width: 0; background: #fffcf4; border: 1px solid #d9c8a9; }
.real-case-image { display: block; background: #eae4d9; }
.real-case-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.real-case-card .sample-copy { position: relative; padding: 24px 26px 42px; }
.real-case-card h3 { margin-top: 12px; font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); line-height: 1.2; }
.real-case-card h3 a { color: inherit; font-size: inherit; line-height: inherit; text-decoration: none; }
.real-case-card .sample-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.6; }
.real-case-card .sample-copy::after { content: ""; position: absolute; right: 20px; bottom: 16px; width: 15px; height: 25px; border: 1px solid #a67639; border-radius: 100% 0 100% 0; background: #d8ac54; transform: rotate(30deg); }
.template-case .page-hero, .template-cases .page-hero { background: #f5efe4 var(--motif-catalog-herbarium, url("catalog-herbarium.svg")) right bottom / min(440px, 92%) auto no-repeat; padding-bottom: 64px; }
.template-case h1, .template-cases h1 { max-width: 22ch; font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; }
.case-hero-photo { margin: 0; min-width: 0; }
.case-hero-photo img { display: block; width: 100%; height: auto; max-height: 510px; object-fit: contain; }
.case-block { padding-top: 40px; background: var(--motif-order-fallen-leaf-route, url("order-fallen-leaf-route.svg")) left top / 240px 32px no-repeat; }
.case-block + .case-block { margin-top: 42px; }
.case-block h2, .case-gallery h2, .case-next h2 { font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem); line-height: 1.16; }
.case-gallery { background: #f5efe4 var(--motif-examples-pressed-tabs, url("examples-pressed-tabs.svg")) right top / 260px auto no-repeat; }
.case-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.case-photo-grid figure { min-width: 0; margin: 0; }
.case-photo-grid img { display: block; width: 100%; height: auto; background: #eae4d9; }
.case-photo-grid figcaption { margin-top: 12px; color: #655a4c; font-size: 1rem; line-height: 1.5; }
.case-next { background: var(--motif-corporate-acorns, url("corporate-acorns.svg")) right top / 240px auto no-repeat; }
.case-related-links { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 0; list-style: none; }
.case-reference { padding: 12px 16px; border-left: 3px solid #b98443; font-size: 1rem; }
.case-reference a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .real-case-grid, .case-photo-grid { grid-template-columns: 1fr; gap: 24px; }
  .real-case-card .sample-copy { padding: 20px 20px 40px; }
  .template-case .page-hero, .template-cases .page-hero { background-size: 300px auto; }
  .case-next { background-size: 150px auto; padding-top: 64px; }
}

/* Recovered project photographs and artwork sheets retain each file's native ratio. */
.email-media-hero{margin:0;min-width:0}
.email-media-hero img,.email-project-gallery img{display:block;width:100%;height:auto;object-fit:contain}
.email-project-gallery figure{margin:0;min-width:0}
.email-project-gallery h2{font-size:32px;line-height:1.2}
@media(max-width:700px){.email-project-gallery h2{font-size:28px}}

#artworks .real-case-grid{align-items:start}

/* This full-frame portrait sample needs a bounded view; other case images retain their approved frames. */
.template-case figure.confirmed-star-photo { max-width: 460px; margin-inline: auto; }
.template-case figure.confirmed-star-photo img { width: auto; max-width: 100%; height: auto; max-height: 510px; object-fit: contain; margin-inline: auto; }
.template-case figure.confirmed-star-photo figcaption { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 700px) { .template-case figure.confirmed-star-photo img { max-height: 420px; } }
@media (min-width: 701px) { .real-cases .real-case-grid.real-case-grid-four-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
