.stored-image * {
  box-sizing: border-box;
}

.stored-image {
  display: flex;
  flex-direction: column;
}

.stored-image.withBorder img {
  border: 1px solid #e8e8eb;
  padding: 0.5em;
  border-radius: 0.5em;
}

.stored-image.withBackground {
  background: #eff2f5;
  padding: 10px;
}

.stored-image.withBackground img {
  display: block;
  max-width: 60%;
  margin: 0 auto 15px;
}

.stored-image .search-wrapper {
  display: flex;
  flex-direction: row;
  margin-bottom: 0.25em;
  gap: 0.5em;
}
.stored-image label {
  padding: 0.5em;
  font-weight: bold;
}

.stored-image .input {
  flex: 1;
  padding: 0.5em;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  margin-bottom: 5px;
}
.stored-image .thumbnail {
  object-fit: contain;
}

.stored-image .images-wrapper {
  height: 400px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: scroll;
  gap: 5px;
  padding: 5px;
}
.stored-image .image-wrapper {
  flex-basis: 32%;
  text-align: center;
  background-color: rgb(239, 239, 239);
  padding: 5px;
  min-width: 0;
  border-radius: 5px;
}
.stored-image .image-caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stored-image .image {
  max-width: 100%;
  margin-bottom: 5px;
}
