#media-library-content svg {
  height: 3rem;
  width: auto;
  max-width: 100%;
}

/**
 * Newly uploaded (unsaved) media in the add form.
 * Structure/classes: item-list--media-library-add-form-media-list + preprocess.
 * Flex layout uses Bootstrap utilities on the Twig/preprocess side.
 */
.media-library-add-form__fields {
  flex-grow: 1;
  min-width: 0;
}

.media-library-add-form__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.75rem;
  background-color: var(--bs-light, #f8f9fa);
}

.media-library-add-form__preview img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  height: auto;
}

.media-library-add-form__media:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
