/* Licensed reference photography; independent of supplied-photo galleries. */
.reference-photo-section { min-width: 0; }
.reference-photo-header { margin-bottom: 22px; }
.reference-photo-header > p:last-child { margin-bottom: 0; }
.reference-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 560px;
}
.reference-photo-grid--multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1144px;
}
figure.reference-photo-card {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #d8dfd1;
  border-radius: 14px;
  background: #fff;
}
.reference-photo-grid > .reference-photo-card { margin: 0; }
.reference-photo-card > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: #eef1e8;
}
.reference-photo-card > figcaption {
  padding: 16px 18px;
  color: #43584a;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.reference-photo-credit {
  display: block;
  margin-top: 9px;
  color: #526556;
  font-size: 12px;
  line-height: 1.6;
}
.reference-photo-credit a,
.reference-photo-back a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.reference-photo-credits { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .reference-photo-grid--multi {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 20px;
  }
}
@media print {
  .article-section.reference-photo-section,
  .reference-photo-header,
  figure.reference-photo-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .reference-photo-header {
    margin-bottom: 9pt;
    break-after: avoid;
    page-break-after: avoid;
  }
  .reference-photo-grid {
    max-width: none;
    gap: 10pt;
    break-before: avoid;
    page-break-before: avoid;
  }
  .reference-photo-grid--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  figure.reference-photo-card {
    max-width: 340pt;
    margin: 10pt auto;
    border-radius: 5pt;
  }
  .reference-photo-grid > .reference-photo-card { margin: 0; }
  .reference-photo-card > img {
    width: 100%;
    height: auto;
    max-height: 180pt;
    object-fit: contain;
  }
  .reference-photo-card > figcaption {
    padding: 7pt 8pt;
    font-size: 9pt;
    line-height: 1.45;
  }
  .reference-photo-card .reference-photo-credit {
    margin-top: 5pt;
    font-size: 8pt;
    line-height: 1.4;
  }
}
