/* Les captures des feuilles contiennent de nombreuses lignes vides :
   afficher leur début à une taille lisible, avec défilement dans la galerie. */
.gallery-help { margin: 0; padding: 9px 24px; color: #526573; font-size: .82rem; background: #edf1f3; }
.gallery-main {
  max-height: 50vh;
  overflow: auto;
}
.gallery-main img {
  min-width: 850px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: initial;
}
.gallery-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-thumbs img {
  object-fit: cover;
  object-position: left top;
}
.sheet-grid img {
  object-fit: cover;
  object-position: left top;
}
.resources-links { margin: 24px 0; color: #526573; font-size: .91rem; }
.resources-links a { color: #135a82; font-weight: 750; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; gap: 6px; }
  .gallery-thumbs button { padding: 5px; }
  .gallery-thumbs img { height: 60px; }
  .gallery-thumbs span { font-size: .67rem; }
  .gallery-main { padding: 12px; }
}
