/* ─── Image resize / drag handles ─── */
.img-resizable {
  position: relative;
  display: inline-block;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}
.img-resizable img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
/* Selection border shown on click */
.img-resizable.selected {
  outline: 2px solid rgba(0, 180, 255, 0.7);
  outline-offset: 2px;
}
/* Corner handles */
.img-resizable .resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 180, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.img-resizable.selected .resize-handle {
  opacity: 1;
  pointer-events: auto;
}
.img-resizable .resize-handle.nw { top: -5px; left: -5px; cursor: nw-resize; }
.img-resizable .resize-handle.ne { top: -5px; right: -5px; cursor: ne-resize; }
.img-resizable .resize-handle.sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.img-resizable .resize-handle.se { bottom: -5px; right: -5px; cursor: se-resize; }
/* Edge handles */
.img-resizable .resize-handle.n  { top: -5px; left: 50%; transform: translateX(-50%); cursor: n-resize; width: 20px; height: 8px; }
.img-resizable .resize-handle.s  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: s-resize; width: 20px; height: 8px; }
.img-resizable .resize-handle.w  { left: -5px; top: 50%; transform: translateY(-50%); cursor: w-resize; width: 8px; height: 20px; }
.img-resizable .resize-handle.e  { right: -5px; top: 50%; transform: translateY(-50%); cursor: e-resize; width: 8px; height: 20px; }
