/* A+/B+ PDF only. PC exhibition rules from exhibitions.css.
   Keep these rules synchronized if that exhibition changes.
   180mm width caps the whole board at 120mm high; paper width may shrink it further.
   No page size, Hero, screen layout, or source image changes. */
@media print {
  #photographs .cork-study {
    display: block;
    inline-size: 100%;
    max-inline-size: 180mm;
    margin-inline: auto;
    break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1536 / 1024;
    background: url("../assets/display/photo_corkboard_transparent.png") center / 100% 100% no-repeat;
  }
  #photographs .work-list {
    position: absolute;
    inset-inline-start: calc(100% * 200 / 1536);
    inset-block-start: calc(100% * 160 / 1024);
    inline-size: calc(100% * 1140 / 1536);
    block-size: calc(100% * 710 / 1024);
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2cqw;
    place-items: center;
  }
  #photographs .work-list > li { inline-size: 20cqw; }
  #photographs .print-mount {
    display: block;
    position: relative;
    padding: 2cqw .8cqw 1cqw;
    background: #EDE0D1;
    transform: rotate(-2deg);
  }
  #photographs li:nth-child(even) .print-mount { transform: rotate(2deg); }
  #photographs .print-mount img { border-radius: 0; height: auto; }
  #photographs .mount-pin {
    display: block;
    position: absolute;
    inline-size: .9cqw;
    block-size: .9cqw;
    inset-block-start: .55cqw;
    inset-inline-start: calc(50% - .45cqw);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #eed6a0, #a77a36 65%, #715027);
  }

  /* Preserve the exhibition as a unit; never resize individual prints. */
  #photographs {
    break-inside: avoid;
    page-break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  #photographs-title { break-after: avoid; page-break-after: avoid; }
  #photographs .work-list,
  #photographs .work-list > li,
  #photographs figure,
  #photographs .print-mount {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
