.root {
  position: relative;

  overflow: hidden;
  display: flex;
  flex: 1 calc(50% - 0.5rem);
  align-items: center;

  min-width: 0;
  border-radius: var(--border-radius-default);
}

.preview {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.duration {
  -webkit-user-select: none;
  user-select: none;

  position: absolute;
  z-index: 1;
  top: 0.1875rem;
  left: 0.1875rem;

  padding: 0 0.375rem;
  border-radius: 0.75rem;

  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #fff;

  background: rgba(0, 0, 0, 0.25);
}

.single .preview {
  height: auto;
  max-height: 24rem;
}

.no-grouping {
  flex-basis: 100%;
}

.file {
  flex-grow: 1;
  min-width: 0;
  margin: 0.5rem;
}

.overlay {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;

  overflow: hidden;
  display: flex;

  border-radius: var(--border-radius-default);

  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);

  :global(body.no-menu-blur) & {
    background-color: #707579;
    backdrop-filter: none;
  }
}

.action-item {
  cursor: var(--custom-cursor, pointer);

  display: block;

  padding: 0.3125rem;
  border-radius: var(--border-radius-messages-small);

  color: white;

  transition: 0.2s background-color ease-in-out;

  &:hover {
    background-color: rgba(0, 0, 0, 0.15);
  }

  @media (max-width: 600px) {
    font-size: 1.25rem;
  }
}

.delete-file {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}
