/* PDF to JPG, PDF to PNG and Word to JPG (inc/pdfpages-card.inc.php): the
   pages of a PDF in a grid. The grid, the tiles and the layout are Split
   GIF's (frames-tool.css); this sheet adds the white page each tile shows.
   pp-grid is a class: the grid moves into the phone editor. */

.pp-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
/* A row's tiles are as tall as its tallest page; a landscape page sits in
   the middle of its tile. */
.pp-grid .pp-box { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
/* A page: white, its own shape (set by the script), the picture drawn into
   it as it scrolls into view. */
.pp-grid .pp-sheet {
  display: block;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 24, 29, 0.12), 0 1px 3px rgba(22, 24, 29, 0.12);
}
.pp-grid .fr-tile:not(.is-drawn) .pp-sheet {
  background: linear-gradient(100deg, #f3f2f0 30%, #fbfaf9 50%, #f3f2f0 70%) 0 0 / 300% 100%;
  animation: pp-wait 1.4s ease-in-out infinite;
}
@keyframes pp-wait { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pp-grid .fr-tile:not(.is-drawn) .pp-sheet { animation: none; } }
.pp-grid .pp-sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pp-grid .pp-sheet img:not([src]) { visibility: hidden; }
/* "report · 12" stops short of the tick. */
.pp-grid .fr-tile-t { max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-grid .fr-tile-n { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Pages: a typed list that does not read. */
#pp-pages.is-invalid { border-color: #b54708; box-shadow: 0 0 0 3px rgba(181, 71, 8, 0.15); }
