#image-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.image-annotation {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  cursor: move;
  border: 1px solid transparent;
  touch-action: none;
  user-select: none;
  line-height: 0;
}
.image-annotation:hover,
.image-annotation:focus-within {
  border-color: #84aaff;
}
.image-annotation img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
  pointer-events: none;
}
.image-remove {
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 20px;
  background: #111b2a;
  color: #e4ecff;
  opacity: 0;
  border-radius: 0 0 0 4px;
}
.image-resize {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  background: #84aaff;
  border: 2px solid #17243a;
  border-radius: 2px;
  opacity: 0;
}
.image-annotation:hover .image-remove,
.image-annotation:hover .image-resize {
  opacity: 1;
}
@media (pointer: coarse) {
  .image-remove,
  .image-resize {
    opacity: 1;
  }
}
