/* Captions are positioned inside the face artwork, above its lower chest area. */
.face-caption {
  position: absolute;
  z-index: 12;
  box-sizing: border-box;
  margin: 0;
  padding: 17px 20px 18px;
  border: 1px solid #b5c6c8;
  border-left: 3px solid #2d697a;
  border-radius: 10px;
  background: rgba(250, 248, 242, .97);
  box-shadow: 0 8px 24px #172d3e0d;
  color: #172d3e;
  text-align: left;
  pointer-events: none;
  overflow: visible;
}
.face-caption[hidden] { display: none !important; }
.face-caption__title {
  margin: 0 0 6px;
  color: #225c6b;
  font: 600 23px/1.3 var(--serif, serif);
  letter-spacing: -.025em;
}
.face-caption__text {
  margin: 0;
  color: #233b48;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
@media (max-width: 999px) {
  .face-caption { padding: 12px 15px 14px; border-radius: 8px; }
  .face-caption__title { font-size: 21px; margin-bottom: 5px; }
  .face-caption__text { font-size: 16px; line-height: 1.6; }
}
@media print { .face-caption { display: none !important; } }

/* Five labelled shapes remain together; their meaning is never omitted. */
.face-caption { overflow-y:auto; overscroll-behavior:contain; pointer-events:auto; scrollbar-width:thin; }
.face-caption__shapes { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:4px 0 10px; }
.face-caption__shapes[hidden] { display:none; }
.face-caption__shapes figure { min-width:0;margin:0;text-align:center; }
.face-caption__shapes svg { width:30px;height:40px;fill:#d7e1e466;stroke:#2d697a;stroke-width:2; }
.face-caption__shapes figcaption { display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.35;overflow-wrap:anywhere; }
.face-caption__shapes strong { color:#225c6b;font-weight:600; }
.face-caption[data-shapes='true'] .face-caption__text { font-size:14px;line-height:1.45; }
@media(max-width:360px) {
 .face-caption[data-shapes='true'] { padding:9px 10px; }
 .face-caption[data-shapes='true'] .face-caption__title { font-size:18px; }
 .face-caption__shapes figcaption { font-size:11px; }
}
