.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.history-header h2 {
  margin: 0;
}

.history-header button {
  width: auto;
  margin: 0;
}

#historyList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.result-row button {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.result-row button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}

.result-row figcaption {
  flex: 1;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.history-alt {
  margin: 0;
}

#imageModal img {
  display: block;
  max-width: 100%;
  max-height: 50vh;
  margin-inline: auto;
}

#imageModal p,
#imageModal summary {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

#imageModal details p {
  font-size: 0.9rem;
  color: var(--pico-muted-color);
}
