/* Collection-only media previews and generated file controls. */
.collection-description { color: #64748b; margin: 0 0 12px; }
.collection-preview-trigger { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; }
.collection-preview-trigger:focus-visible { outline: 3px solid #7655ed; outline-offset: -4px; }
.collection-asset-footer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.collection-asset-caption { margin: 0; min-width: 0; flex: 1; color: #87909f; font-size: 11px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.collection-asset-caption span { display: inline; }
.collection-asset-caption time { white-space: nowrap; }
.collection-download-icon { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #87909f; border-radius: 8px; text-decoration: none; }
.collection-download-icon:hover, .collection-download-icon:focus-visible { color: #6042cf; background: #f1edff; }
@media(max-width: 768px) { .collection-download-icon { width: 44px; height: 44px; } }
.collection-pagination { display: flex; gap: 24px; justify-content: center; padding: 16px; }
.collection-media-dialog { position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 32px)); max-width: none; height: min(840px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 0; border-radius: 18px; color: #172033; background: white; box-shadow: 0 20px 80px #0005; }
.collection-media-dialog[open] { display: flex; flex-direction: column; }
.collection-media-dialog::backdrop { background: #101622bb; }
.collection-media-dialog header { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; flex-shrink: 0; border-bottom: 1px solid #e5e7eb; }
.collection-media-dialog h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.collection-media-dialog header button { flex-shrink: 0; font-size: 26px; width: 44px; height: 44px; border: 1px solid #e5e7eb; border-radius: 50%; background: white; cursor: pointer; }
.collection-media-body { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; background: #f4f5f9; overflow: hidden; }
.collection-media-body img, .collection-media-body video { width: 100%; height: 100%; object-fit: contain; }
.collection-media-dialog [hidden] { display: none !important; }
.collection-media-dialog footer { display: flex; gap: 12px; padding: 16px 20px; flex-shrink: 0; border-top: 1px solid #e5e7eb; }
.collection-media-dialog footer a { width: auto; min-height: 44px; display: flex; align-items: center; justify-content: center; flex: 1; }
@media(max-width: 520px) { .collection-media-dialog header { padding: 10px 12px; } .collection-media-dialog footer { padding: 12px; gap: 8px; } .collection-media-dialog h2 { font-size: 14px; } }
