.ImageHighlight {
  position: absolute;
}

.ImageHighlight__container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: visible;
  transition: box-shadow 0.2s ease;
}

.ImageHighlight__container:hover {
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
}

.ImageHighlight__toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ImageHighlight__container:hover .ImageHighlight__toolbar,
.ImageHighlight--scrolledTo .ImageHighlight__toolbar {
  opacity: 1;
}

.ImageHighlight__drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: grab;
  color: white;
  border-radius: 3px;
  transition: background 0.2s;
}

.ImageHighlight__drag-handle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ImageHighlight__drag-handle:active {
  cursor: grabbing;
}

.ImageHighlight__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  overflow: hidden;
  border-radius: 4px;
}

.ImageHighlight__image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.ImageHighlight--scrolledTo .ImageHighlight__container {
  box-shadow: 0 0 0 3px #ff4141, 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.ImageHighlight__delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: white;
  border-radius: 3px;
  padding: 0;
  transition: background 0.2s;
}

.ImageHighlight__delete-button:hover {
  background: rgba(255, 100, 100, 0.6);
}
