.editor-photo{padding:10px;border:1px solid var(--line);border-radius:5px;min-width:0;background:var(--white)}
.photo-drag{width:100%;min-height:44px;background:var(--paper);color:var(--ink);border:1px dashed var(--line);border-radius:4px;margin-bottom:8px;cursor:grab;touch-action:none;font-size:12px}
.editor-photo:has(input[name=cover_id]:checked){border-color:var(--accent)}
.photo-cover-choice{display:flex;align-items:center;gap:8px;font-weight:400;font-size:12px;line-height:1.5;margin-block:12px}
.photo-cover-choice input[type=radio]{flex:0 0 20px;width:20px;height:20px;padding:0;accent-color:var(--accent)}
/* Drop indicators never change card geometry; the original card keeps pointer capture. */
.editor-photo{position:relative}
.photo-drag{min-height:52px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.photo-dragging{outline:3px solid var(--accent);opacity:.45}
.photo-reordering{scroll-behavior:auto!important}.photo-reordering *{cursor:grabbing!important}
.photo-drag-preview{position:fixed;left:0;top:0;z-index:10000;width:120px;padding:5px;background:var(--white);color:var(--ink);border:2px solid var(--accent);border-radius:7px;box-shadow:0 6px 20px #0006;pointer-events:none;user-select:none;will-change:transform}
.photo-drag-preview img{width:100%;height:80px;object-fit:cover;display:block}.photo-drag-preview span{display:block;font-size:11px;text-align:center;line-height:1.5;padding-top:3px}
.editor-photo.photo-drop-before::before,.editor-photo.photo-drop-after::before{content:'';position:absolute;top:-5px;bottom:-5px;width:4px;border-radius:4px;background:var(--accent);pointer-events:none;z-index:2}
.editor-photo.photo-drop-before::before{left:-8px}.editor-photo.photo-drop-after::before{right:-8px}
.editor-photo.photo-drop-before::after,.editor-photo.photo-drop-after::after{position:absolute;top:8px;left:8px;right:8px;padding:5px;background:var(--ink);color:var(--paper);border-radius:3px;font-size:12px;text-align:center;pointer-events:none;z-index:2}
.editor-photo.photo-drop-before::after{content:'Vložit před tuto fotografii'}.editor-photo.photo-drop-after::after{content:'Vložit za tuto fotografii'}
.photo-picked{outline:3px solid var(--accent)}.photo-picked .photo-drag{border-style:solid;color:var(--accent)}
.photo-place-end{width:100%;min-height:48px;margin-top:14px;border:2px dashed var(--accent);border-radius:5px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px}
.photo-place-end[hidden]{display:none}.photo-place-end:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

.photo-drag[hidden]{display:none}.photo-drag:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.editor-photo>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
/* Tablet portrait needs the full editor width, rather than thumbnails beside a wide sidebar. */
@media(min-width:651px) and (max-width:1000px){.edit-grid{grid-template-columns:minmax(0,1fr)}.edit-grid aside{order:-1}.edit-grid .sticky{position:static}}
