/* Keep small source photographs at their native size inside the established gallery frame. */
.gallery-grid .gallery-item > a.gallery-native {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
}
.gallery-grid .gallery-native img {
  width: min(100%, var(--photo-width));
  height: 100%;
  max-height: var(--photo-height);
  object-fit: contain;
}
