.gallery-order-toolbar{max-width:1360px;margin:0 auto 22px;padding:14px 24px;background:#f1f4f1;color:#24382e;font:14px/1.5 Montserrat,sans-serif;display:flex;gap:12px;align-items:center;flex-wrap:wrap;position:sticky;top:0;z-index:20;box-shadow:0 2px 8px #0001}
.gallery-order-toolbar button,.reorder-controls button{font:600 14px/1.4 Montserrat,sans-serif;border:1px solid #587463;border-radius:4px;background:white;color:#24382e;min-height:44px;padding:9px 14px;cursor:pointer}
.gallery-order-toolbar button[aria-pressed=true]{background:#243e31;color:white}.order-status{font-weight:600}.order-error{color:#a21e14}.order-help{width:100%;margin:0}
.reorder-card{break-inside:avoid;page-break-inside:avoid;position:relative}
.gallery-mosaic{display:grid;columns:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;align-items:start;gap:22px}
.gallery-mosaic .reorder-card{border:1px solid transparent;padding:8px;border-radius:6px;min-width:0;background:white}
.reorder-controls{display:flex;gap:6px;align-items:center;margin:0;position:absolute;bottom:16px;left:16px;right:16px;z-index:5}
.reorder-controls[hidden],.order-drag-label[hidden],.gallery-order-toolbar [hidden]{display:none}
.reorder-controls .order-handle{flex:1;touch-action:none;cursor:grab;user-select:none}
.reorder-controls button:disabled,.gallery-order-toolbar button:disabled{opacity:.5;cursor:default}
.gallery-mosaic .gallery-open:nth-child(n){margin:0}.is-reordering .gallery-open{cursor:default}
.is-reordering .gallery-open img{transform:none!important;filter:none!important;box-shadow:none!important;opacity:1}
.is-reordering .reorder-card.is-dragging{opacity:.55}
.is-reordering .reorder-card.drop-before{box-shadow:0 -6px 0 #267f56}
.is-reordering .reorder-card.drop-after{box-shadow:0 6px 0 #267f56}
.order-drag-label{position:fixed;z-index:10000;pointer-events:none;background:#243e31;color:#fff;border-radius:4px;padding:8px 12px;font:600 14px/1.4 Montserrat,sans-serif}
.reorder-controls button:focus-visible,.gallery-order-toolbar button:focus-visible{outline:3px solid #b59c4e;outline-offset:2px}
@media(max-width:1000px){.gallery-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.gallery-mosaic{grid-template-columns:1fr}.gallery-order-toolbar{padding:10px 16px}.reorder-controls button{min-height:48px}}

/* V2.4 retains the same row layout and card geometry in both modes. */
.gallery-mosaic{grid-auto-flow:row}
.is-reordering .reorder-card{border-color:#c5d2c8}
.gallery-order-toolbar .order-toggle{min-width:205px}
.gallery-order-toolbar .order-help[hidden]{display:block;visibility:hidden}
