/* * Raiju Image Manager — Unified Component * * Used by both the frontend inline editor and the backend dashboard. * Depends on --rj-* design tokens from css/raiju-admin-tokens.css. * * Prefix: .rj-imgmgr-* to avoid collision with any existing naming. */ /* ============================================================ MODAL SHELL ============================================================ */ .rj-imgmgr-modal, .rj-imgmgr-lightbox, .rj-imgmgr-replace, .rj-imgmgr-move { --rj-imgmgr-accent: var(--editor-primary, var(--rj-primary, #2563eb)); --rj-imgmgr-accent-hover: var(--editor-primary-hover, var(--rj-primary-hover, #1d4ed8)); --rj-imgmgr-accent-active: var(--rj-primary-active, var(--rj-imgmgr-accent-hover)); --rj-imgmgr-accent-subtle: color-mix(in srgb, var(--rj-imgmgr-accent) 10%, transparent); --rj-imgmgr-accent-muted: color-mix(in srgb, var(--rj-imgmgr-accent) 20%, transparent); --rj-imgmgr-transparent-bg: #f8fafc; --rj-imgmgr-transparent-check: #d7e0ec; --rj-imgmgr-transparent-grid: linear-gradient(45deg, var(--rj-imgmgr-transparent-check) 25%, transparent 25%), linear-gradient(-45deg, var(--rj-imgmgr-transparent-check) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--rj-imgmgr-transparent-check) 75%), linear-gradient(-45deg, transparent 75%, var(--rj-imgmgr-transparent-check) 75%); /* Admin typography (as in the dashboard), also when the manager opens over a website with its own fonts, sizes and resets */ font-family: var(--rj-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif); font-size: 16px; line-height: 1.6; color: var(--rj-text, #1a1a1a); } :is(.rj-imgmgr-modal, .rj-imgmgr-lightbox, .rj-imgmgr-replace, .rj-imgmgr-move) :is(h1, h2, h3, h4) { font-family: inherit; letter-spacing: normal; } /* Form controls do not inherit fonts by default */ :is(.rj-imgmgr-modal, .rj-imgmgr-lightbox, .rj-imgmgr-replace, .rj-imgmgr-move) :is(input, select, textarea, button) { font-family: inherit; } .rj-imgmgr-modal { display: none; position: fixed; inset: 0; z-index: 20000; align-items: center; justify-content: center; animation: rj-imgmgr-fade 0.2s ease; } .rj-imgmgr-modal.active { display: flex; } .rj-imgmgr-modal--embedded, .rj-imgmgr-modal--embedded.active { position: relative; inset: auto; z-index: auto; display: flex; width: 100%; min-height: 100%; animation: none; } .rj-imgmgr-modal--embedded .rj-imgmgr-backdrop, .rj-imgmgr-modal--embedded .rj-imgmgr-header, .rj-imgmgr-modal--embedded .rj-imgmgr-close, .rj-imgmgr-modal--embedded .rj-imgmgr-footer { display: none; } .rj-imgmgr-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); cursor: pointer; } .rj-imgmgr-dialog { position: relative; background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); border-radius: var(--rj-radius-xl, 12px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); width: min(1100px, 92vw); height: 85vh; display: flex; flex-direction: column; overflow: hidden; animation: rj-imgmgr-slide 0.2s ease; } .rj-imgmgr-modal--embedded .rj-imgmgr-dialog { width: 100%; height: auto; min-height: 100%; border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-lg, 8px); box-shadow: none; animation: none; } @keyframes rj-imgmgr-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes rj-imgmgr-slide { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Header */ .rj-imgmgr-header { display: flex; align-items: center; justify-content: space-between; padding: var(--rj-space-3-5, 14px) var(--rj-space-5, 20px); border-bottom: 1px solid var(--rj-border, #d2d2d2); flex-shrink: 0; } .rj-imgmgr-header h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--rj-text, #1a1a1a); } .rj-imgmgr-close { background: transparent; border: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; color: var(--rj-text-muted, #6e6e6e); cursor: pointer; border-radius: var(--rj-radius-md, 6px); transition: background 0.15s, color 0.15s; } .rj-imgmgr-close:hover { background: var(--rj-bg-hover, #f5f5f5); color: var(--rj-text, #1a1a1a); } /* Toolbar */ .rj-imgmgr-toolbar { display: flex; align-items: center; gap: var(--rj-space-3, 12px); /* The same distance on every side, so the toggles sit as close to the edge as the row is to the top */ padding: var(--rj-space-3, 12px); border-bottom: 1px solid var(--rj-border, #d2d2d2); flex-wrap: wrap; flex-shrink: 0; } /* Upload: a primary button like .btn-primary, so the design settings (button radius, glow, hover colours) reach it; same height as the type select */ .rj-imgmgr-upload-btn { display: inline-flex; align-items: center; gap: var(--rj-space-2, 8px); height: var(--rj-control-h, 36px); padding: 0 var(--rj-space-4, 16px); background-color: var(--rj-imgmgr-accent); background-image: var(--rj-primary-sheen, none); color: var(--rj-text-on-primary, #fff); border: none; border-radius: var(--editor-btn-radius, var(--rj-radius-md, 6px)); font-size: var(--rj-text-md, 0.875rem); font-weight: 500; cursor: pointer; transition: background-color var(--rj-duration-hover-out, 320ms) ease-out; } .rj-imgmgr-upload-btn:hover { background-color: var(--rj-hover-settle, var(--rj-imgmgr-accent-hover)); } .rj-flat-buttons .rj-imgmgr-upload-btn { background-image: none; box-shadow: none; text-shadow: none; } .rj-imgmgr-upload-btn svg { width: 16px; height: 16px; } .rj-imgmgr-upload-input { display: none; } .rj-imgmgr-formats { order: 2; flex: 0 0 100%; margin-top: -4px; font-size: 12px; color: var(--rj-text-muted, #6e6e6e); } /* Type, library/trash and view toggles follow the dashboard's segmented control (the density selector): a sunken tray with a hairline, the chosen option as a raised light box, on the control height of the search field beside them */ .rj-imgmgr-mode-toggle, .rj-imgmgr-type-toggle, .rj-imgmgr-folder-tools { order: 1; display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-sunken, #f5f5f5); } .rj-imgmgr-folder-tools[hidden] { display: none; } /* Folder action buttons match the 32px folder filter beside them. */ .rj-imgmgr-folder-tools .rj-imgmgr-action-btn { width: 32px; height: 32px; } .rj-imgmgr-folder-filter { min-height: 28px; max-width: 180px; padding: 0 28px 0 var(--rj-space-2, 8px); border: 0; border-radius: var(--rj-radius-sm, 4px); background: transparent; color: var(--rj-text, #1a1a1a); font: inherit; font-size: 12px; } .rj-imgmgr-folder-filter:focus { outline: 2px solid var(--rj-imgmgr-accent); outline-offset: 1px; } .rj-imgmgr-mode-btn, .rj-imgmgr-type-btn { position: relative; display: inline-flex; align-items: center; height: calc(var(--rj-control-h, 36px) - 6px); padding: 0 var(--rj-space-2-5, 10px); border: none; border-radius: calc(var(--rj-radius-md, 6px) - 2px); background: transparent; color: var(--rj-text-secondary, #454545); cursor: pointer; font-family: inherit; font-size: var(--rj-text-sm, 0.8125rem); font-weight: 500; white-space: nowrap; transition: background-color var(--rj-duration-hover-out, 320ms) ease-out, color var(--rj-duration-fast, 150ms) ease; } /* Unchosen options brighten monochrome on hover, like the segmented control */ .rj-imgmgr-mode-btn:not(.rj-imgmgr-mode-btn--active):hover, .rj-imgmgr-type-btn:not(.rj-imgmgr-type-btn--active):hover, .rj-imgmgr-view-btn:not(.rj-imgmgr-view-btn--active):hover { background-color: color-mix(in srgb, var(--rj-bg-elevated, #fff) 55%, var(--rj-bg-sunken, #f5f5f5)); color: var(--rj-text, #1a1a1a); } .rj-imgmgr-mode-btn--active, .rj-imgmgr-type-btn--active { background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); box-shadow: var(--rj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08)); } .rj-imgmgr-upload-type { min-height: 34px; padding: 0 28px 0 var(--rj-space-2-5, 10px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); font: inherit; font-size: 13px; } .rj-imgmgr-upload-type[hidden] { display: none; } .rj-imgmgr-empty-trash-btn[hidden], .rj-imgmgr-dropzone[hidden] { display: none; } .rj-imgmgr-empty-trash-btn { order: 1; } .rj-imgmgr-spacer { order: 1; flex: 1; } .rj-imgmgr-search { order: 1; flex: 0 1 260px; min-width: 160px; padding: 7px var(--rj-space-3, 12px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); font-size: 13px; background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); transition: border-color 0.15s, box-shadow 0.15s; } .rj-imgmgr-search:focus { outline: none; border-color: var(--rj-imgmgr-accent); box-shadow: 0 0 0 3px var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-search::placeholder { color: var(--rj-text-muted, #6e6e6e); } /* View toggle (grid/list) */ .rj-imgmgr-view-toggle { order: 1; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-sunken, #f5f5f5); } .rj-imgmgr-view-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: calc(var(--rj-control-h, 36px) - 6px); border: none; background: transparent; color: var(--rj-text-secondary, #454545); cursor: pointer; border-radius: calc(var(--rj-radius-md, 6px) - 2px); transition: background-color var(--rj-duration-hover-out, 320ms) ease-out, color var(--rj-duration-fast, 150ms) ease; } .rj-imgmgr-view-btn svg { width: 16px; height: 16px; fill: currentColor; } .rj-imgmgr-view-btn--active { background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); box-shadow: var(--rj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08)); } /* Body — scrollable content area */ .rj-imgmgr-body { flex: 1; display: flex; min-height: 0; background: var(--rj-bg, #fafafa); } /* Finder-style folder sidebar */ .rj-imgmgr-sidebar { flex: 0 0 200px; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rj-border, #e5e5e5); background: var(--rj-bg-elevated, #fff); } .rj-imgmgr-sidebar[hidden] { display: none; } .rj-imgmgr-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: var(--rj-space-3, 12px) var(--rj-space-2-5, 10px) var(--rj-space-2, 8px) var(--rj-space-3-5, 14px); } .rj-imgmgr-sidebar-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rj-text-muted, #888); } .rj-imgmgr-folder-list { flex: 1; overflow-y: auto; padding: 0 var(--rj-space-2, 8px) var(--rj-space-3, 12px); } .rj-imgmgr-folder-item { display: flex; align-items: center; gap: var(--rj-space-2, 8px); padding: 7px var(--rj-space-2, 8px); border-radius: var(--rj-radius-md, 6px); cursor: pointer; color: var(--rj-text, #1a1a1a); user-select: none; } .rj-imgmgr-folder-item:hover { background: var(--rj-bg-hover, rgba(127, 127, 127, 0.1)); } .rj-imgmgr-folder-item.is-active { background: var(--rj-primary-muted, rgba(46, 149, 210, 0.18)); color: var(--rj-primary, #2e95d2); } .rj-imgmgr-folder-item:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--rj-primary, #2e95d2); } .rj-imgmgr-folder-item-icon { flex: 0 0 auto; display: inline-flex; color: var(--rj-text-muted, #888); } .rj-imgmgr-folder-item.is-active .rj-imgmgr-folder-item-icon { color: inherit; } .rj-imgmgr-folder-item-icon svg { width: 16px; height: 16px; } .rj-imgmgr-folder-item-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; } .rj-imgmgr-folder-item-count { flex: 0 0 auto; font-size: 0.72rem; color: var(--rj-text-muted, #999); font-variant-numeric: tabular-nums; } .rj-imgmgr-folder-item-delete { flex: 0 0 auto; display: none; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--rj-radius-sm, 4px); background: transparent; color: var(--rj-text-muted, #888); cursor: pointer; } .rj-imgmgr-folder-item:hover .rj-imgmgr-folder-item-delete, .rj-imgmgr-folder-item:focus-within .rj-imgmgr-folder-item-delete { display: inline-flex; } .rj-imgmgr-folder-item-delete:hover { background: var(--rj-danger-bg, rgba(192, 57, 43, 0.12)); color: var(--rj-danger, #c0392b); } .rj-imgmgr-folder-item-delete svg { width: 14px; height: 14px; } .rj-imgmgr-folder-item-delete + .rj-imgmgr-folder-item-count, .rj-imgmgr-folder-item:hover .rj-imgmgr-folder-item-count { /* count hides behind the delete button on hover to avoid crowding */ } .rj-imgmgr-folder-item:hover .rj-imgmgr-folder-item-count { display: none; } .rj-imgmgr-content { flex: 1; min-width: 0; overflow-y: auto; padding: var(--rj-space-4, 16px) var(--rj-space-5, 20px); } .rj-imgmgr-pagination { margin-top: var(--rj-space-3, 12px); } .rj-imgmgr-pagination--top { margin-top: 0; margin-bottom: var(--rj-space-3, 12px); } .rj-imgmgr-pagination[hidden] { display: none; } .rj-imgmgr-pagination-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--rj-space-2-5, 10px); min-height: 28px; padding: 0; color: var(--rj-text-muted, #6e6e6e); font-size: 0.75rem; } .rj-imgmgr-pagination-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rj-imgmgr-pagination-nav { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; } .rj-imgmgr-pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 var(--rj-space-2, 8px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-elevated, #fff); color: var(--rj-text-muted, #6e6e6e); font: inherit; font-size: 0.75rem; line-height: 1; cursor: pointer; } .rj-imgmgr-pagination-btn:hover:not(:disabled) { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent-subtle); color: var(--rj-imgmgr-accent); } .rj-imgmgr-pagination-btn.is-active { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent); color: var(--rj-text-on-primary, #fff); } .rj-imgmgr-pagination-btn:disabled { opacity: 0.45; cursor: not-allowed; } .rj-imgmgr-pagination-btn--arrow { width: 28px; padding: 0; } .rj-imgmgr-pagination-btn svg { width: 14px; height: 14px; } .rj-imgmgr-pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; color: var(--rj-text-muted, #6e6e6e); } /* Dropzone */ .rj-imgmgr-dropzone { display: flex; align-items: center; justify-content: center; gap: var(--rj-space-3, 12px); height: 90px; margin: var(--rj-space-3, 12px); padding: 0 var(--rj-space-5, 20px); border: 2px dashed var(--rj-border-strong, #cccccc); border-radius: var(--rj-radius-lg, 8px); background: var(--rj-bg, #fafafa); transition: border-color 0.15s, background 0.15s; flex-shrink: 0; } .rj-imgmgr-dropzone-upload { display: flex; align-items: center; justify-content: center; gap: var(--rj-space-4, 16px); flex: 1 1 auto; min-width: 0; } .rj-imgmgr-dropzone--with-ai { justify-content: space-between; } .rj-imgmgr-dropzone--with-ai .rj-imgmgr-dropzone-upload { justify-content: center; } /* Image generator: a secondary button on the same height and radius */ .rj-imgmgr-ai-generator-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--rj-space-2, 8px); height: var(--rj-control-h, 36px); padding: 0 var(--rj-space-4, 16px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--editor-btn-radius, var(--rj-radius-md, 6px)); background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); font: inherit; font-size: var(--rj-text-md, 0.875rem); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--rj-duration-hover-out, 320ms) ease-out, border-color var(--rj-duration-fast, 150ms) ease, color var(--rj-duration-fast, 150ms) ease; } .rj-imgmgr-ai-generator-btn:hover { border-color: var(--rj-border-strong, var(--rj-imgmgr-accent)); background-color: var(--rj-hover-tint-settle, var(--rj-imgmgr-accent-subtle)); } .rj-imgmgr-ai-generator-btn svg { width: 15px; height: 15px; } .rj-imgmgr-dropzone--active { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-dropzone-text { font-size: 15px; color: var(--rj-text, #1a1a1a); } .rj-imgmgr-dropzone-or { font-size: 13px; color: var(--rj-text-muted, #6e6e6e); } /* Footer */ .rj-imgmgr-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--rj-space-4, 16px); padding: var(--rj-space-3, 12px) var(--rj-space-5, 20px); border-top: 1px solid var(--rj-border, #d2d2d2); flex-shrink: 0; background: var(--rj-bg-elevated, #fff); } .rj-imgmgr-selection-info { flex: 1; min-width: 0; font-size: 12px; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-selection-info.has-selection { color: var(--rj-text, #1a1a1a); font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rj-imgmgr-footer-actions { display: flex; gap: var(--rj-space-2, 8px); flex-shrink: 0; } .rj-imgmgr-btn { padding: var(--rj-space-2, 8px) var(--rj-space-4, 16px); border-radius: var(--editor-btn-radius, var(--rj-radius-md, 6px)); font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; } .rj-imgmgr-btn--secondary { background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); border-color: var(--rj-border, #d2d2d2); } .rj-imgmgr-btn--secondary:hover { background: var(--rj-bg-hover, #f5f5f5); } .rj-imgmgr-btn--primary { background: var(--rj-imgmgr-accent); color: var(--rj-text-on-primary, #fff); } .rj-imgmgr-btn--primary:hover:not(:disabled) { background: var(--rj-imgmgr-accent-hover); } .rj-imgmgr-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; } /* ============================================================ GRID VIEW ============================================================ */ /* Same rhythm as the icon manager's grid: 220px columns that fill the row */ .rj-imgmgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--rj-space-3-5, 14px); } .rj-imgmgr-grid.hidden { display: none; } .rj-imgmgr-item { position: relative; background: var(--rj-surface-item, var(--rj-bg-elevated, #fff)); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 8px); overflow: hidden; cursor: pointer; transition: border-color var(--rj-duration-hover-out, 320ms) ease-out, box-shadow 0.15s; } .rj-imgmgr-item:hover { border-color: var(--rj-border-strong, #6e6e6e); } .rj-imgmgr-item.selected { border-color: var(--rj-imgmgr-accent); box-shadow: 0 0 0 3px var(--rj-imgmgr-accent-muted); } .rj-imgmgr-thumb { height: 140px; background-color: var(--rj-bg-sunken, #f0f0f0); background-image: none; background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; } .rj-imgmgr-thumb.rj-imgmgr-has-transparency, .rj-imgmgr-list-thumb.rj-imgmgr-has-transparency, .rj-imgmgr-lightbox-stage--image.rj-imgmgr-has-transparency { background-color: var(--rj-imgmgr-transparent-bg); background-image: var(--rj-imgmgr-transparent-grid); } .rj-imgmgr-thumb-btn { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; } .rj-imgmgr-thumb-btn--image { position: relative; overflow: hidden; } .rj-imgmgr-thumb-surface { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--rj-space-2, 8px); } .rj-imgmgr-thumb-surface img { display: block; width: 100%; height: 100%; object-fit: contain; } .rj-imgmgr-media-icon { display: flex; align-items: center; justify-content: center; color: var(--rj-imgmgr-accent); } .rj-imgmgr-media-icon.rj-imgmgr-thumb, .rj-imgmgr-media-icon.rj-imgmgr-list-thumb { background-color: var(--rj-bg-sunken, #f0f0f0); background-image: none; } .rj-imgmgr-media-icon svg { width: 42px; height: 42px; display: block; } .rj-imgmgr-list-thumb.rj-imgmgr-media-icon svg { width: 24px; height: 24px; } .rj-imgmgr-name { /* Name and size badge on one line, the folder name below: every tile keeps the same height */ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--rj-space-1-5, 6px); padding: var(--rj-space-2, 8px) var(--rj-space-2-5, 10px) var(--rj-space-1-5, 6px); font-size: 12px; color: var(--rj-text, #1a1a1a); overflow: hidden; background: var(--rj-bg-elevated, #fff); } .rj-imgmgr-name .rj-imgmgr-folder-name { grid-column: 1 / -1; } .rj-imgmgr-name .rj-imgmgr-size-badge { margin-left: 0; } .rj-imgmgr-file-name, .rj-imgmgr-folder-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rj-imgmgr-folder-name { margin-top: var(--rj-space-0-5, 2px); font-size: 11px; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-actions { display: flex; justify-content: center; gap: var(--rj-space-1, 4px); padding: var(--rj-space-1-5, 6px); background: var(--rj-bg-elevated, #fff); border-top: 1px solid var(--rj-border, #d2d2d2); } /* Selection checkbox (grid) */ .rj-imgmgr-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: rgba(0, 0, 0, 0.35); z-index: 3; cursor: pointer; transition: all 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } .rj-imgmgr-check:hover { background: var(--rj-imgmgr-accent); border-color: #fff; } .rj-imgmgr-check.checked { background: var(--rj-imgmgr-accent); border-color: #fff; } .rj-imgmgr-check.checked::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 5px; border: 2px solid #fff; border-top: none; border-right: none; transform: translate(-50%, -60%) rotate(-45deg); } /* Action buttons on grid item */ .rj-imgmgr-action-btn { width: 28px; height: 28px; border: none; border-radius: var(--rj-radius-sm, 4px); cursor: pointer; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--rj-text-muted, #6e6e6e); transition: background 0.15s, color 0.15s; padding: 0; text-decoration: none; } .rj-imgmgr-action-btn svg { width: 15px; height: 15px; display: block; pointer-events: none; } .rj-imgmgr-action-btn:hover { background: var(--rj-bg-hover, #f5f5f5); color: var(--rj-imgmgr-accent); } .rj-imgmgr-action-btn--danger:hover { background: var(--rj-bg-hover, #f5f5f5); color: var(--rj-danger, #dc2626); } /* ============================================================ LIST VIEW ============================================================ */ .rj-imgmgr-list { display: none; } .rj-imgmgr-list.active { display: block; } .rj-imgmgr-list-header, .rj-imgmgr-row { display: grid; grid-template-columns: 36px 60px 1fr 90px 130px 124px; gap: var(--rj-space-2-5, 10px); padding: var(--rj-space-2, 8px) var(--rj-space-3, 12px); align-items: center; } .rj-imgmgr-list-header { background: var(--rj-bg-sunken, #f0f0f0); border-radius: var(--rj-radius-md, 6px) var(--rj-radius-md, 6px) 0 0; font-size: 11px; font-weight: 600; color: var(--rj-text-muted, #6e6e6e); text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--rj-border, #d2d2d2); border-bottom: none; } .rj-imgmgr-list-header-col { cursor: pointer; display: flex; align-items: center; gap: var(--rj-space-1, 4px); user-select: none; transition: color 0.15s; } .rj-imgmgr-list-header-col:hover { color: var(--rj-imgmgr-accent); } .rj-imgmgr-list-header-col.sortable::after { content: '↕'; opacity: 0.4; font-size: 10px; } .rj-imgmgr-list-header-col.sorted-asc::after { content: '↑'; opacity: 1; color: var(--rj-imgmgr-accent); } .rj-imgmgr-list-header-col.sorted-desc::after { content: '↓'; opacity: 1; color: var(--rj-imgmgr-accent); } .rj-imgmgr-list-header-col:first-child, .rj-imgmgr-list-header-col:last-child { cursor: default; } .rj-imgmgr-list-header-col:first-child::after, .rj-imgmgr-list-header-col:last-child::after { display: none; } .rj-imgmgr-list-body { border: 1px solid var(--rj-border, #d2d2d2); border-top: none; border-radius: 0 0 6px 6px; background: var(--rj-bg-elevated, #fff); } .rj-imgmgr-row { cursor: pointer; border-bottom: 1px solid var(--rj-border, #d2d2d2); transition: background 0.15s; } .rj-imgmgr-row:last-child { border-bottom: none; } .rj-imgmgr-row:hover { background: var(--rj-bg-hover, #f5f5f5); } .rj-imgmgr-row.selected { background: var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-row--child { background: color-mix(in srgb, var(--rj-bg-elevated, #fff) 88%, var(--rj-bg-sunken, #f0f0f0)); } .rj-imgmgr-folder-row { display: grid; grid-template-columns: 28px 30px 1fr auto; gap: var(--rj-space-2-5, 10px); width: 100%; align-items: center; padding: 9px var(--rj-space-3, 12px); border: 0; border-bottom: 1px solid var(--rj-border, #d2d2d2); background: var(--rj-bg-sunken, #f0f0f0); color: var(--rj-text, #1a1a1a); font: inherit; cursor: pointer; text-align: left; } .rj-imgmgr-folder-row:hover { background: var(--rj-bg-hover, #f5f5f5); } .rj-imgmgr-folder-disclosure, .rj-imgmgr-folder-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-folder-disclosure svg, .rj-imgmgr-folder-icon svg { width: 16px; height: 16px; } .rj-imgmgr-folder-row[aria-expanded="true"] .rj-imgmgr-folder-disclosure { transform: rotate(90deg); } .rj-imgmgr-folder-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .rj-imgmgr-folder-count { color: var(--rj-text-muted, #6e6e6e); font-size: 12px; } /* List checkbox (inline variant) */ .rj-imgmgr-check--list { position: relative; top: auto; right: auto; width: 18px; height: 18px; border: 2px solid var(--rj-border-strong, #cccccc); background: var(--rj-bg-elevated, #fff); box-shadow: none; justify-self: center; } .rj-imgmgr-check--list:hover { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-check--list.checked { background: var(--rj-imgmgr-accent); border-color: var(--rj-imgmgr-accent); } .rj-imgmgr-list-thumb { width: 60px; height: auto; min-height: 44px; align-self: stretch; background-color: var(--rj-bg-sunken, #f0f0f0); background-image: none; background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; border-radius: var(--rj-radius-sm, 4px); } .rj-imgmgr-list-thumb .rj-imgmgr-thumb-surface { padding: var(--rj-space-1, 4px); } .rj-imgmgr-list-name { font-size: 13px; color: var(--rj-text, #1a1a1a); overflow: hidden; } .rj-imgmgr-list-size, .rj-imgmgr-list-date { font-size: 12px; color: var(--rj-text-muted, #6e6e6e); } /* Fixed 4-column grid so list-row actions read as two rows of four (8 actions in library mode, 3 in trash) and keep the row low. */ .rj-imgmgr-list-actions { display: grid; grid-template-columns: repeat(4, 28px); gap: var(--rj-space-1, 4px); justify-content: end; justify-items: center; } /* ============================================================ EMPTY / LOADING STATES ============================================================ */ .rj-imgmgr-empty, .rj-imgmgr-loading, .rj-imgmgr-error { text-align: center; padding: 60px var(--rj-space-5, 20px); color: var(--rj-text-muted, #6e6e6e); font-size: 14px; } .rj-imgmgr-error { color: var(--rj-danger, #dc2626); } /* ============================================================ LIGHTBOX ============================================================ */ .rj-imgmgr-lightbox { display: none; position: fixed; inset: 0; z-index: 30000; background: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; animation: rj-imgmgr-fade 0.2s ease; } .rj-imgmgr-lightbox.active { display: flex; } .rj-imgmgr-lightbox-content { position: relative; max-width: 92vw; max-height: 90vh; } .rj-imgmgr-lightbox-stage img, .rj-imgmgr-lightbox-video { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--rj-radius-sm, 4px); box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); } .rj-imgmgr-lightbox-stage { min-width: min(720px, 90vw); min-height: 180px; display: flex; align-items: center; justify-content: center; } .rj-imgmgr-lightbox-stage--image { padding: 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--rj-radius-lg, 8px); background-color: var(--rj-bg-sunken, #f0f0f0); background-image: none; background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); } .rj-imgmgr-lightbox-stage--image img { box-shadow: none; } .rj-imgmgr-lightbox-media { width: min(720px, 90vw); min-height: 180px; padding: 28px; border-radius: var(--rj-radius-lg, 8px); background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; gap: 18px; } .rj-imgmgr-lightbox-media svg { width: 44px; height: 44px; color: var(--rj-imgmgr-accent); flex: 0 0 auto; } .rj-imgmgr-lightbox-media audio { width: min(520px, 65vw); } .rj-imgmgr-lightbox-media a { color: var(--rj-imgmgr-accent); font-weight: 600; text-decoration: none; } .rj-imgmgr-lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; } .rj-imgmgr-lightbox-close:hover { transform: scale(1.15); } .rj-imgmgr-lightbox-nav { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; background: rgba(0, 0, 0, 0.36); color: #fff; cursor: pointer; transform: translateY(-50%); transition: background 0.15s, transform 0.15s; } .rj-imgmgr-lightbox-nav:hover { background: rgba(0, 0, 0, 0.58); transform: translateY(-50%) scale(1.06); } .rj-imgmgr-lightbox-nav[hidden] { display: none; } .rj-imgmgr-lightbox-nav svg { width: 20px; height: 20px; } .rj-imgmgr-lightbox-nav--prev { left: -58px; } .rj-imgmgr-lightbox-nav--next { right: -58px; } .rj-imgmgr-lightbox-info { position: absolute; bottom: -36px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 13px; } /* ============================================================ REPLACE DIALOG ============================================================ */ .rj-imgmgr-replace { display: none; position: fixed; inset: 0; z-index: 25000; align-items: center; justify-content: center; } .rj-imgmgr-replace.active { display: flex; } .rj-imgmgr-move { display: none; position: fixed; inset: 0; z-index: 25000; align-items: center; justify-content: center; } .rj-imgmgr-move.active { display: flex; } .rj-imgmgr-replace-backdrop, .rj-imgmgr-move-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); } .rj-imgmgr-replace-dialog, .rj-imgmgr-move-dialog { position: relative; background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); border-radius: var(--rj-radius-lg, 8px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); width: min(500px, 92vw); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; } .rj-imgmgr-replace-header, .rj-imgmgr-move-header { display: flex; align-items: center; justify-content: space-between; padding: var(--rj-space-3-5, 14px) var(--rj-space-5, 20px); border-bottom: 1px solid var(--rj-border, #d2d2d2); } .rj-imgmgr-replace-header h3, .rj-imgmgr-move-header h3 { margin: 0; font-size: 1rem; font-weight: 600; } .rj-imgmgr-replace-intro { margin: 0 0 var(--rj-space-3-5, 14px); } /* AI disclosure label: badge on thumbnails, active action and dialog */ .rj-imgmgr-ai-badge { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 1px 7px; border-radius: 999px; background: rgba(17, 24, 39, 0.82); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; pointer-events: none; } /* Size badges: "Original" when the upload got a web version, "large" for big files */ .rj-imgmgr-size-badge { position: relative; z-index: 1; display: inline-block; flex-shrink: 0; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; margin-left: var(--rj-space-1, 4px); } .rj-imgmgr-size-badge--original { background: var(--rj-success-subtle, #ecfdf5); color: var(--rj-success, #15803d); border: 0; font-family: inherit; cursor: pointer; } .rj-imgmgr-size-badge--original:hover, .rj-imgmgr-size-badge--original:focus-visible { outline: 2px solid var(--rj-success, #15803d); outline-offset: 1px; } .rj-imgmgr-original-dialog .rj-imgmgr-original-info { margin: 0 0 var(--rj-space-2, 8px); color: var(--rj-text-secondary, #454545); font-size: 13px; } .rj-imgmgr-original-dialog .rj-imgmgr-original-path { margin: 0 0 var(--rj-space-3, 12px); font-size: 12px; word-break: break-all; } .rj-imgmgr-original-dialog .rj-imgmgr-original-path code { padding: 2px 6px; border-radius: var(--rj-radius-sm, 4px); background: var(--rj-bg-sunken, #f0f0f0); } .rj-imgmgr-original-dialog .rj-imgmgr-original-hint { margin: 0; color: var(--rj-text-muted, #6e6e6e); font-size: 12px; line-height: 1.5; } .rj-imgmgr-original-footer { flex-wrap: wrap; } .rj-imgmgr-original-footer .rj-imgmgr-btn { text-decoration: none; display: inline-flex; align-items: center; } .rj-imgmgr-size-badge--large { background: var(--rj-warning-subtle, #fffbeb); color: var(--rj-warning-text, #92400e); } .rj-imgmgr-formats--server-bound { color: var(--rj-warning-text, #92400e); } .rj-imgmgr-list-thumb .rj-imgmgr-ai-badge { top: 2px; left: 2px; padding: 0 var(--rj-space-1, 4px); font-size: 8px; } .rj-imgmgr-action-btn--on { color: var(--rj-imgmgr-accent); } .rj-imgmgr-ai-dialog .rj-imgmgr-replace-options { margin-bottom: 0; } /* The dialog reuses the move dialog frame: keep the option layout of the replace dialog */ .rj-imgmgr-ai-dialog .rj-imgmgr-replace-option { display: flex; margin-bottom: 0; font-size: inherit; font-weight: inherit; } .rj-imgmgr-ai-hint { margin: var(--rj-space-3-5, 14px) 0 0; font-size: 12px; line-height: 1.5; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-replace-body, .rj-imgmgr-move-body { padding: var(--rj-space-5, 20px); overflow-y: auto; } .rj-imgmgr-move-filename { margin: 0 0 var(--rj-space-3-5, 14px); color: var(--rj-text-muted, #6e6e6e); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rj-imgmgr-move-body label { display: block; margin-bottom: var(--rj-space-1-5, 6px); font-size: 12px; font-weight: 600; color: var(--rj-text, #1a1a1a); } .rj-imgmgr-move-select, .rj-imgmgr-folder-name-input, .rj-imgmgr-rename-input { width: 100%; min-height: 36px; border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); font: inherit; font-size: 13px; padding: 0 var(--rj-space-2-5, 10px); } .rj-imgmgr-folder-name-input:focus, .rj-imgmgr-rename-input:focus { outline: none; border-color: var(--rj-primary, #2e95d2); box-shadow: 0 0 0 3px var(--rj-primary-muted, rgba(46, 149, 210, 0.25)); } .rj-imgmgr-rename-check { display: flex !important; align-items: flex-start; gap: var(--rj-space-2, 8px); margin: var(--rj-space-3, 12px) 0 0 !important; color: var(--rj-text, #1a1a1a); } .rj-imgmgr-rename-check input { margin-top: var(--rj-space-0-5, 2px); accent-color: var(--rj-imgmgr-accent); } .rj-imgmgr-rename-hint { margin: var(--rj-space-2-5, 10px) 0 0; color: var(--rj-text-muted, #6e6e6e); font-size: 12px; line-height: 1.4; } .rj-imgmgr-rename-references { margin-top: var(--rj-space-3-5, 14px); padding: var(--rj-space-3, 12px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); background: var(--rj-bg-sunken, #f0f0f0); font-size: 12px; } .rj-imgmgr-rename-references strong { display: block; margin-bottom: var(--rj-space-2, 8px); color: var(--rj-text, #1a1a1a); } .rj-imgmgr-rename-references ul { display: grid; gap: var(--rj-space-1-5, 6px); margin: 0 0 var(--rj-space-2-5, 10px); padding: 0; list-style: none; } .rj-imgmgr-rename-references li { display: grid; gap: var(--rj-space-0-5, 2px); } .rj-imgmgr-rename-references span { color: var(--rj-text, #1a1a1a); font-weight: 600; } .rj-imgmgr-rename-references small { overflow: hidden; color: var(--rj-text-muted, #6e6e6e); text-overflow: ellipsis; white-space: nowrap; } .rj-imgmgr-rename-references p { margin: 0 0 var(--rj-space-2-5, 10px); color: var(--rj-text-muted, #6e6e6e); line-height: 1.4; } .rj-imgmgr-replace-options { display: flex; flex-direction: column; gap: var(--rj-space-2-5, 10px); margin-bottom: var(--rj-space-4, 16px); } .rj-imgmgr-replace-option { display: flex; align-items: flex-start; gap: var(--rj-space-2-5, 10px); padding: var(--rj-space-3, 12px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-md, 6px); cursor: pointer; transition: all 0.15s; } .rj-imgmgr-replace-option:hover { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-replace-option.selected { border-color: var(--rj-imgmgr-accent); background: var(--rj-imgmgr-accent-subtle); } .rj-imgmgr-replace-option input[type="radio"] { flex: none; width: 16px; height: 16px; /* centred on the first line of the option title (line-height 1.6) */ margin: calc((1.6em - 16px) / 2) 0 0; accent-color: var(--rj-imgmgr-accent); } .rj-imgmgr-replace-option-content { flex: 1; } .rj-imgmgr-replace-option-title { font-weight: 500; color: var(--rj-text, #1a1a1a); margin-bottom: var(--rj-space-1, 4px); } .rj-imgmgr-replace-option-desc { font-size: 12px; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-replace-newname { margin-top: var(--rj-space-2-5, 10px); display: none; } .rj-imgmgr-replace-option.selected .rj-imgmgr-replace-newname { display: block; } .rj-imgmgr-replace-newname input { width: 100%; padding: var(--rj-space-2, 8px) var(--rj-space-2-5, 10px); border: 1px solid var(--rj-border, #d2d2d2); border-radius: var(--rj-radius-sm, 4px); font-size: 13px; background: var(--rj-bg-elevated, #fff); color: var(--rj-text, #1a1a1a); } .rj-imgmgr-replace-newname input:focus { outline: none; border-color: var(--rj-imgmgr-accent); } .rj-imgmgr-replace-file { padding: 15px; background: var(--rj-bg-sunken, #f0f0f0); border-radius: var(--rj-radius-md, 6px); text-align: center; } .rj-imgmgr-replace-file label { display: inline-flex; align-items: center; gap: var(--rj-space-2, 8px); padding: var(--rj-space-2-5, 10px) var(--rj-space-5, 20px); background: var(--rj-imgmgr-accent); color: #fff; border-radius: var(--rj-radius-md, 6px); cursor: pointer; font-size: 13px; font-weight: 500; transition: background 0.15s; } .rj-imgmgr-replace-file label:hover { background: var(--rj-imgmgr-accent-hover); } .rj-imgmgr-replace-file label svg { width: 16px; height: 16px; fill: currentColor; } .rj-imgmgr-replace-file input[type="file"] { display: none; } .rj-imgmgr-replace-filename { margin-top: var(--rj-space-2-5, 10px); font-size: 13px; color: var(--rj-text-muted, #6e6e6e); } .rj-imgmgr-replace-footer, .rj-imgmgr-move-footer { display: flex; justify-content: flex-end; gap: var(--rj-space-2, 8px); padding: var(--rj-space-3, 12px) var(--rj-space-5, 20px); border-top: 1px solid var(--rj-border, #d2d2d2); background: var(--rj-bg, #fafafa); } /* ============================================================ DARK MODE ============================================================ */ [data-site-theme="dark"] .rj-imgmgr-backdrop { background: rgba(0, 0, 0, 0.7); } [data-site-theme="dark"] .rj-imgmgr-check { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.7); } [data-site-theme="dark"] .rj-imgmgr-action-btn { background: var(--rj-bg-hover, #222); } [data-site-theme="dark"] .rj-imgmgr-view-toggle, [data-site-theme="dark"] .rj-imgmgr-mode-toggle, [data-site-theme="dark"] .rj-imgmgr-type-toggle, [data-site-theme="dark"] .rj-imgmgr-folder-tools { background: var(--rj-bg-sunken, #0a0a0a); } [data-site-theme="dark"] .rj-imgmgr-view-btn--active, [data-site-theme="dark"] .rj-imgmgr-mode-btn--active, [data-site-theme="dark"] .rj-imgmgr-type-btn--active { background: var(--rj-bg-elevated, #1a1a1a); } @media (max-width: 760px) { .rj-imgmgr-lightbox-nav--prev { left: 10px; } .rj-imgmgr-lightbox-nav--next { right: 10px; } /* On narrow screens the folder sidebar becomes a horizontal scroll strip. */ .rj-imgmgr-body { flex-direction: column; } .rj-imgmgr-sidebar { flex: 0 0 auto; flex-direction: row; align-items: center; gap: var(--rj-space-2, 8px); border-right: 0; border-bottom: 1px solid var(--rj-border, #e5e5e5); padding: var(--rj-space-2, 8px) var(--rj-space-3, 12px); overflow-x: auto; } .rj-imgmgr-sidebar-head { flex: 0 0 auto; padding: 0; gap: var(--rj-space-1-5, 6px); } .rj-imgmgr-sidebar-title { display: none; } .rj-imgmgr-folder-list { flex: 1; display: flex; gap: var(--rj-space-1-5, 6px); padding: 0; overflow-x: auto; overflow-y: hidden; } .rj-imgmgr-folder-item { flex: 0 0 auto; padding: var(--rj-space-1-5, 6px) var(--rj-space-2-5, 10px); } .rj-imgmgr-folder-item-count { display: none; } /* Keep delete reachable on touch where there is no hover. */ .rj-imgmgr-folder-item-delete { display: inline-flex; } } /* Keep uploads usable inside narrow embedded panels as well as modals. */ .rj-imgmgr-modal { container-type: inline-size; container-name: media-manager; } @container media-manager (max-width: 42rem) { .rj-imgmgr-dropzone, .rj-imgmgr-dropzone-upload { flex-wrap: wrap; } .rj-imgmgr-dropzone { height: auto; min-height: 90px; padding: 16px; } .rj-imgmgr-dropzone-text { flex: 1 1 100%; text-align: center; } .rj-imgmgr-dropzone-upload { flex: 1 1 100%; gap: 12px; } .rj-imgmgr-ai-generator-btn { flex: 1 1 100%; } .rj-imgmgr-footer, .rj-imgmgr-footer-actions { flex-wrap: wrap; } }