/* Multi-file metadata editor. Dialog frame, sections and fields are shared
   with the details modal (see file-modal.css). */

[id="bulk-modal"] {
  width: min(1180px, calc(100% - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: none;
}
#bulk-modal-content { height: 100%; }

.bulk-modal { height: 100%; max-height: none; padding: 26px 32px 32px; }

.bulk-file-scroll { max-height: 260px; overflow-y: auto; }
.bulk-file-table td, .bulk-file-table th { padding-right: 16px; }
/* Outranks the list hover rule: this table is a read-only summary. */
.list-table.bulk-file-table tbody tr:hover { background: transparent; }
.bulk-file-name { max-width: 340px; color: var(--ink); }

.bulk-hint { margin: 0 0 16px; color: var(--muted); font: italic 12px/1.45 var(--serif); }
.bulk-warn { margin: 14px 0 0; color: var(--red); font-size: 11px; }

/* Assets are for looking at: previews side by side instead of a field form. */
.asset-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.asset-tile { margin: 0; display: grid; gap: 8px; }
.asset-tile-body { height: 170px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.asset-tile figcaption { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.asset-tile figcaption { display: flex; align-items: center; gap: 6px; }
.asset-tile figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-tile figcaption .row-action { flex: 0 0 auto; }
