/* ---------- Tab Mô tả: khối ảnh nhóm + đoạn chữ, kéo thả ---------- */
.mt-wrap{display:flex;flex-direction:column;gap:28px;max-width:1000px;margin:0 auto}
.mt-blk{position:relative}
.mt-grid{display:grid;gap:14px;align-items:start}
.mt-grid.c1{grid-template-columns:1fr;justify-items:center}
.mt-grid.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mt-grid.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mt-grid.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.mobile .mt-grid.c3,.mobile .mt-grid.c4{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobile .mt-grid{gap:8px}.mobile .mt-wrap{gap:18px}
.mt-cell{position:relative;margin:0;border-radius:10px;overflow:hidden;background:var(--paper)}
.mt-grid.c1 .mt-cell{max-width:900px;width:100%;background:none}
.mt-cell img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:0 auto}
.mt-grid.c1 .mt-cell img{max-height:480px;width:auto;max-width:100%}
.mt-cell figcaption{font-size:13.5px;text-align:center;padding:6px 8px;color:var(--ink);outline:none}
.mt-cell figcaption.empty{padding:0;height:0;overflow:hidden}
.mt-cell:hover figcaption.empty,.mt-cell figcaption.empty:focus{height:auto;padding:6px 8px}
.mt-cell figcaption.empty:empty::before{content:attr(data-ph);color:var(--muted);font-size:12px}
body.shot .mt-cell figcaption.empty{display:none}
.mt-doan{font-size:15px;line-height:1.7;white-space:pre-wrap;outline:none;min-height:24px;border-radius:6px}
.mt-doan:empty::before{content:attr(data-ph);color:var(--muted)}
body.shot .mt-txt:has(.mt-doan:empty){display:none}
.mted:hover{background:#fff8d6}.mted:focus{background:#fff;box-shadow:0 0 0 2px var(--ui)}
body.shot .mted:hover{background:none}
/* thanh điều khiển (chỉ khi sửa) */
.mt-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11.5px;margin-bottom:6px;opacity:.35;transition:opacity .15s}
.mt-blk:hover>.mt-bar{opacity:1}
.mt-bar i,.mt-bar b,.mt-add i{font-style:normal;cursor:pointer;padding:2px 7px;border:1px solid var(--line);border-radius:5px;background:#fff;font-weight:600}
.mt-bar i.x{color:#c33}.mt-bar i:hover,.mt-add i:hover{background:var(--fill)}
.mt-grip{cursor:grab!important}
.mt-cols{display:inline-flex;gap:2px;align-items:center}.mt-cols i{padding:1px 6px}.mt-cols i.on{background:var(--ui);color:#fff;border-color:var(--ui)}
.mt-ig,.mt-ix{position:absolute;top:6px;font-size:12px;background:#fff;border-radius:6px;padding:1px 6px;box-shadow:0 1px 3px rgba(0,0,0,.3);display:none;z-index:2}
.mt-ig{left:6px;cursor:grab}.mt-ix{right:6px;cursor:pointer;color:#c33}
.mt-cell:hover .mt-ig,.mt-cell:hover .mt-ix{display:block}
.mt-empty{grid-column:1/-1;border:2px dashed var(--line);border-radius:10px;padding:26px;text-align:center;color:var(--muted);font-size:13px}
.mt-add{display:flex;gap:8px;justify-content:center;font-size:12.5px}
.mt-dragging{opacity:.35}
.mt-over{outline:3px dashed var(--ui);outline-offset:3px}
.mt-pic{cursor:grab}body.shot .mt-pic{cursor:default}
/* co ảnh vừa màn hình: giới hạn chiều cao theo số cột */
.mt-grid.c2 .mt-cell img{max-height:380px}
.mt-grid.c3 .mt-cell img{max-height:300px}
.mt-grid.c4 .mt-cell img{max-height:250px}
.mt-grid.c1 .mt-cell img{max-height:420px}
.mobile .mt-grid .mt-cell img{max-height:260px}
