/* PlexMod 17: project reports, chapter navigation and overview. */
.pm-report, .pm-project-overview { margin: 0 34px 0 65px; min-width: 0; }
.pm-report { display: grid; grid-template-columns: minmax(0, 1fr); }
.pm-report-title { margin: 0; line-height: 1.5; font-size: 13px; }
.pm-report-spaced .pm-report-content { margin-top: 18px; }
.pm-report-content { min-width: 0; text-align: center; }
.pm-report-content table { max-width: 100%; }
.pm-report-content hr { max-width: 100%; box-sizing: border-box; }
.pm-chapter-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px) minmax(0, 1fr); align-items: start; gap: 8px; width: min(100%, 550px); margin: 0 auto; text-align: center; }
.pm-chapter-prev { text-align: left; }
.pm-chapter-next { text-align: right; }
.pm-chapter-select { min-width: 0; }
.pm-chapter-select select { max-width: 100%; width: auto; }
.pm-chapter-index { list-style: none; padding: 0; width: min(100%, 550px); margin: 12px auto; text-align: left; }
.pm-chapter-index li { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 8px; margin: 2px 0; }
.pm-chapter-index li.pm-chapter-full { display: block; margin: 10px 0; }
.pm-chapter-index a, .pm-chapter-nav a { color: #666; }
.pm-chapter-index a:hover, .pm-chapter-nav a:hover { color: #990000; text-decoration: underline; }
.pm-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 171px)); justify-content: center; gap: 4px; margin: 32px 0; }
.pm-project-grid > a { display: block; min-width: 0; }
#pm-content .pm-project-grid img { display: block; width: 100%; max-width: 171px; height: auto; }
.pm-report a[data-pm-gallery] { cursor: zoom-in; }
.pm-report a[data-pm-gallery]:focus-visible { display: inline-block; outline-offset: 3px; }
.pm-gallery { box-sizing: border-box; max-width: min(96vw, 1100px); max-height: 96vh; max-height: 96dvh; width: max-content; padding: 10px; border: 1px solid #777; background: #222; color: #fff; font: 14px/1.5 Arial, sans-serif; overflow: auto; }
.pm-gallery::backdrop { background: rgb(0 0 0 / 85%); }
.pm-gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pm-gallery button { color: #fff; background: #444; border: 1px solid #aaa; padding: 8px 12px; min-height: 44px; cursor: pointer; font: inherit; }
.pm-gallery button:focus-visible, .pm-gallery a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pm-gallery button:disabled { opacity: .4; cursor: default; }
.pm-gallery figure { margin: 0; text-align: center; }
.pm-gallery img { display: block; width: auto; height: auto; max-width: 100%; max-height: 70vh; max-height: 70dvh; object-fit: contain; margin: 0 auto; touch-action: pan-y pinch-zoom; }
.pm-gallery figcaption { margin-top: 8px; overflow-wrap: anywhere; }
.pm-gallery a { color: #eee; text-decoration: underline; }
.pm-gallery-status { min-height: 1.5em; }
@media (max-width: 760px) {
  .pm-report, .pm-project-overview { margin-inline: 8px; }
  .pm-chapter-nav { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .pm-chapter-select { grid-row: 1; grid-column: 1 / -1; }
  .pm-chapter-select select { width: 100%; padding: 7px 3px; }
  .pm-chapter-nav a { display: inline-block; padding-block: 8px; }
  .pm-chapter-index li { grid-template-columns: 65px minmax(0,1fr); }
  .pm-project-grid { grid-template-columns: repeat(2, minmax(0,171px)); margin-block: 20px; }
}

.pm-report-impressions { margin-top: 16px; }
