.image-list { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; } .image-list-item-wrapper { position: relative; transition: transform 0.2s ease, opacity 0.2s ease; } .image-list-item-wrapper[draggable="true"] .image-list-item__thumb { cursor: grab; } .image-list-item-wrapper[draggable="true"]:active .image-list-item__thumb { cursor: grabbing; } .image-list-item-wrapper--dragging { opacity: 0.5; transform: scale(0.95); } .image-list-item-wrapper--dragging .image-list-item__remove-wrapper { opacity: 0; } .image-list-item-wrapper--drag-over { transform: translateY(-4px); } .image-list-item-wrapper--drag-over::after { content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; border: 2px dashed color-mix(in srgb, var(--text, currentColor) 50%, transparent); border-radius: 12px; pointer-events: none; } .image-list-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; border-radius: 10px; } .image-list-item__thumb { width: 112px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--surface-elevated, rgba(0, 0, 0, 0.06)); flex-shrink: 0; } .image-list-item__image { width: 100%; height: 100%; } .image-list-item__photo { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; } .image-list-item__remove-wrapper { position: absolute; top: -10px; right: -10px; z-index: 2; border-radius: 50%; background: var(--bg); border: var(--border-ui-width) solid var(--border-ui-color); pointer-events: none; transition: opacity 0.2s ease; } .image-list-item__remove { background: none; border: none; padding: 2px; margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); pointer-events: auto; }