/* components.removable-thumb: the picture fills the cell; the round
   translucent remove control sits at its top-right, hidden until the
   thumbnail is hovered or the control has focus. Touch screens have no
   hover, so the control stays visible there. */
.removable-thumb {
  position: relative;
  display: block;
  min-width: 0;
}

.removable-thumb__remove {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height-check);
  height: var(--control-height-check);
  padding: 0;
  color: var(--color-text-on-dark);
  background: var(--color-overlay-control);
  border: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 var(--border-width) var(--color-overlay-ring);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.removable-thumb:hover .removable-thumb__remove,
.removable-thumb__remove:focus-visible {
  opacity: 1;
}

.removable-thumb__remove:hover {
  background: var(--color-text);
}

@media (hover: none) {
  .removable-thumb__remove {
    opacity: 1;
  }
}
