.subject-paintings {
  --subject-ink: #303537;
  --subject-muted: #646b6e;
  --subject-paper: #f6f1e8;
  --subject-line: #d8d0c2;
  --subject-accent: #287486;
  color: var(--subject-ink);
}

.subject-paintings article { max-width: 980px; margin: 0 auto; }
.subject-intro { margin-bottom: 2.75rem; font-size: 1.12rem; line-height: 1.76; }
.subject-intro p:last-child { margin-bottom: 0; }
.subject-section { margin-bottom: 3.5rem; scroll-margin-top: 96px; }
.subject-section > h2 { margin-bottom: 1.1rem; }
.subject-section p { line-height: 1.74; }

.subject-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.subject-path-card { padding: 22px; border: 1px solid var(--subject-line); border-top: 4px solid var(--subject-accent); border-radius: 4px; background: var(--subject-paper); }
.subject-path-card h3 { margin: 0 0 12px; font-size: 23px; }
.subject-path-card p:last-child { margin-bottom: 0; }

.subject-genre-guide { padding: 24px; border-left: 5px solid var(--subject-accent); background: var(--subject-paper); }
.subject-genre-guide p:last-child { margin-bottom: 0; }

.subject-work-grid { display: grid; gap: 22px; }
.subject-work { display: grid; grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr); gap: 24px; align-items: center; padding: 15px; border: 1px solid var(--subject-line); border-radius: 4px; background: #fff; }
.subject-work:nth-child(even) .subject-work-figure { order: 2; }
.subject-work-figure { display: flex; align-items: center; justify-content: center; min-height: 280px; margin: 0; padding: 10px; background: #eee9df; }
.subject-work-figure img { display: block; width: 100%; height: 330px; object-fit: contain; }
.subject-work-copy h3 { margin: 0 0 12px; font-size: 24px; }
.subject-work-copy p:last-child { margin-bottom: 0; }

.subject-references { font-size: 0.92rem; line-height: 1.62; }
.subject-references li { margin-bottom: 0.7rem; overflow-wrap: anywhere; }
.subject-references strong { color: var(--subject-ink); }
.subject-paintings a:focus-visible { outline: 3px solid var(--subject-accent) !important; outline-offset: 3px; border-radius: 2px; }

@media (max-width: 767px) {
  .subject-intro { font-size: 1.04rem; }
  .subject-path-grid { grid-template-columns: 1fr; }
  .subject-work { grid-template-columns: 1fr; }
  .subject-work:nth-child(even) .subject-work-figure { order: 0; }
  .subject-work-figure { min-height: 220px; }
  .subject-work-figure img { height: auto; max-height: 420px; }
}
