.fic-gallery { width:100%; max-width:100%; margin:2rem 0; break-inside:avoid; }
.fic-gallery-track,.fic-gallery-slide { width:100%; min-width:0; margin:0; padding:0; }
.fic-gallery .fic-gallery-slide[hidden] { display:none !important; }
.fic-gallery .fic-gallery-slide img { display:block; width:100%; height:auto; max-width:100%; object-fit:contain; border-radius:6px; }
.fic-gallery figcaption { margin:10px 0 0; text-align:center; font:400 14px/1.5 system-ui,sans-serif; color:inherit; }
.fic-gallery-controls { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:12px; font:400 13px/1.5 system-ui,sans-serif; }
.fic-gallery-controls button { min-width:44px; min-height:44px; color:inherit; background:transparent; border:1px solid currentColor; border-radius:8px; cursor:pointer; }
.fic-gallery-controls button:disabled { opacity:.4; cursor:default; }
.reader-flow .fic-gallery { margin:0; padding:12px 0; box-sizing:border-box; }
.book-reader[data-mode="pages"] .fic-gallery-slide img { max-height:max(40px,calc(var(--reader-height) - 150px)); }
.book-reader[data-mode="scroll"] .fic-gallery-slide img { max-height:none; }
.fic-related { font-size:.9em; }
.fic-related a { color:inherit; text-underline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .fic-gallery * { scroll-behavior:auto; } }
