/* Keep source photographs inside card-sized slots without cropping. */
.leak-gallery { min-width: 0; max-width: 100%; }
.leak-gallery > p { line-height: 1.6; overflow-wrap: anywhere; }
.leak-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 230px)); gap: 16px; align-items: start; margin: 14px 0; }
.leak-gallery-grid > a { display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid #d5e1e9; border-radius: 10px; background: #fff; color: #17374c; text-decoration: none; }
.leak-gallery-grid > a > img { display: block; width: 100%; height: auto; aspect-ratio: 63 / 88; max-height: 294px; object-fit: contain; margin: 0 auto; border-radius: 6px; background: #f8fafc; }
.leak-gallery-grid > a > span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .leak-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .leak-gallery-grid > a { padding: 7px; }
  .leak-gallery-grid > a > span { font-size: 12px; }
}
@media (max-width: 340px) { .leak-gallery-grid { grid-template-columns: minmax(0, 220px); justify-content: center; } }
