/* Scoped paging for the two existing galleries only. */
#app .app-gallery.paged-gallery, #results-grid.paged-gallery { display:block; min-width:0; max-width:100%; }
.gallery-track { display:flex; width:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; border-radius:12px; }
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-track:focus-visible { outline:2px solid var(--yellow); outline-offset:4px; }
.gallery-page { flex:0 0 100%; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; scroll-snap-align:start; scroll-snap-stop:always; align-content:start; }
#app-gallery .gallery-page { padding:1px; }
#app-gallery .shot-scene { height:auto; aspect-ratio:9 / 16; max-height:460px; }
#app-gallery .shot-scene>img, #results-grid .result-visual>img { object-fit:contain; }
#app-gallery .shot-placeholder { padding:clamp(10px,2vw,24px); }
#app-gallery .mini-title { font-size:clamp(12px,2.5vw,20px); overflow-wrap:anywhere; }
#app-gallery .mini-sub { font-size:clamp(7px,1.6vw,9px); line-height:1.5; }
#app-gallery .app-shot { height:100%; }
#app-gallery .app-shot strong { padding-right:16px; overflow-wrap:anywhere; }
#results-grid .gallery-page { gap:12px; }
.gallery-controls { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:18px; position:relative; }
.gallery-arrow { border:1px solid #ffffff30; background:#101112; color:#e5e5e5; border-radius:50%; width:40px; height:40px; font-size:19px; }
.gallery-arrow:disabled { opacity:.25; cursor:default; }
.gallery-arrow:not(:disabled):hover { color:var(--yellow); border-color:var(--yellow); }
.gallery-dots { display:flex; gap:2px; }
.gallery-dot { width:28px; height:40px; padding:0; border:0; background:transparent; display:grid; place-items:center; }
.gallery-dot::after { content:''; width:6px; height:6px; background:#ffffff45; border-radius:50%; transition:background .2s; }
.gallery-dot[aria-current="true"]::after { background:var(--yellow); }
.gallery-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:600px) {
  #app-gallery .gallery-page { gap:10px; }
  #app-gallery .app-shot { padding:8px; }
  #app-gallery .app-shot strong { font-size:10px; }
  #app-gallery .mini-brand { font-size:11px; }
  #app-gallery .shot-placeholder { gap:12px; }
}
@media(prefers-reduced-motion:reduce) { .gallery-dot::after { transition:none; } }
