.hf-upload {
  box-sizing: border-box;
  padding: 12px;
}

.hf-upload > span {
  font-size: 22px;
}

.hf-file-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: 8px;
}

.hf-file-preview {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #111;
}

.hf-file-preview img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
  background: #080808;
}

.hf-file-preview video {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
  background: #080808;
}

.hf-file-preview audio {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 8px;
  background: #080808;
}

.hf-file-preview i {
  display: grid;
  height: 78px;
  place-items: center;
  color: #9c91ff;
  font: 700 10px "DM Sans";
}

.hf-file-preview em {
  overflow: hidden;
  padding: 5px 6px;
  color: #bbb;
  font: 500 8px "DM Sans";
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-video-inputs .hf-upload.has-file {
  min-height: clamp(360px, 48vh, 590px);
  justify-content: flex-start;
}

.hf-video-inputs .hf-file-previews {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hf-video-inputs .hf-file-preview img {
  height: clamp(280px, 38vh, 500px);
  object-fit: contain;
}

.hf-video-inputs .hf-file-preview video {
  height: clamp(280px, 38vh, 500px);
  object-fit: contain;
}

@media (max-width: 720px) {
  .hf-video-inputs .hf-upload.has-file {
    min-height: 340px;
  }

  .hf-video-inputs .hf-file-preview img {
    height: min(56vh, 440px);
  }

  .hf-video-inputs .hf-file-preview video {
    height: min(56vh, 440px);
  }
}
