#gallery-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

#gallery-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(64dvh, 680px);
  margin-inline: auto;
}
