/* G12C2: scoped, native scrolling screenshot gallery. */
.forge-gallery{min-width:0;max-width:960px;margin:1.5rem auto 0}
.forge-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;margin:.5rem 0}
.forge-gallery-controls[hidden]{display:none}
.forge-gallery-controls button{min-height:44px;min-width:44px;padding:.45rem .8rem;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;cursor:pointer;overflow-wrap:anywhere;max-width:100%}
.forge-gallery-controls button:disabled{opacity:.45;cursor:default}
.forge-gallery-controls button:focus-visible,.forge-gallery-track:focus-visible,.forge-gallery-track a:focus-visible{outline:3px solid var(--electric,#3da7ff);outline-offset:-3px}
.forge-gallery-counter{font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.forge-gallery .forge-gallery-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:auto;overscroll-behavior-inline:contain;max-width:100%;padding:0 0 .5rem;margin:0}
.forge-gallery .forge-gallery-track figure{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:normal;margin:0;padding:0 .35rem;text-align:center}
.forge-gallery-track a{display:block;cursor:zoom-in}
.forge-gallery .forge-gallery-track img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:contain}
.forge-gallery .forge-gallery-track figcaption{margin:.65rem .25rem;overflow-wrap:anywhere}
.forge-gallery-controls .forge-gallery-arrow{display:inline-block;margin-inline:.25em;direction:ltr}
[dir=rtl] .forge-gallery-arrow{transform:scaleX(-1)}
