.model-scenes{display:contents}
.gallery-navigation,.mobile-gallery-navigation{display:flex;align-items:center;gap:12px;padding:8px 16px;border:1px solid #d8ddce;border-bottom:0;border-radius:12px 12px 0 0;background:#fffefa}
.gallery-navigation[hidden],.mobile-gallery-navigation[hidden]{display:none}
.gallery-navigation button,.mobile-gallery-navigation button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #ccd6c1;border-radius:50%;background:#f3f6ed;color:var(--olive);font:inherit;font-size:21px;cursor:pointer;touch-action:manipulation}
.gallery-navigation button:hover:not(:disabled),.mobile-gallery-navigation button:hover:not(:disabled){background:#e5edda}
.gallery-navigation button:disabled,.mobile-gallery-navigation button:disabled{opacity:.35;cursor:default}
.gallery-navigation button:focus-visible,.mobile-gallery-navigation button:focus-visible,.model-scenes:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.gallery-heading-scroll:focus-visible,.gallery-scroll:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.gallery-page-info{min-width:0;flex:1}
.gallery-page-info strong{display:block;font-size:13px;font-weight:600}
.gallery-page-info small:empty{display:none}
.gallery-page-info small{display:block;white-space:pre-line;font-size:11px;line-height:1.4;margin-top:3px;color:var(--muted)}
.gallery-page-count{flex:none;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.gallery-heading-scroll{scrollbar-width:thin;scrollbar-color:#aeb59f #f0f1e9}
.gallery-heading-scroll::-webkit-scrollbar{display:block;height:6px}
.gallery-heading-scroll::-webkit-scrollbar-thumb{background:#aeb59f;border-radius:4px}
.gallery-navigation:not([hidden])+.gallery-heading-scroll{border-radius:0}
.prompt-filters{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin;flex-wrap:nowrap}
.prompt-filters>button{flex:none}
.control-bottom{min-width:0}

@media(min-width:951px){
  .benchmarks-page .bench-controls{background:#f6f4ee;backdrop-filter:none}
  .benchmark-table{--benchmark-model-width:174px}
  .gallery-enhanced .prompt-headings,.gallery-enhanced .model-row{grid-template-columns:var(--benchmark-model-width) repeat(var(--prompt-count,6),var(--benchmark-column-width,196px));min-width:var(--benchmark-grid-width,0px);width:var(--benchmark-grid-width,auto)}
  .gallery-enhanced #benchmark-results{min-width:var(--benchmark-grid-width,0px);width:var(--benchmark-grid-width,auto)}
  .gallery-enhanced .model-row-footer{position:sticky;left:0;width:var(--benchmark-viewport-width,100%);max-width:100%}
  .gallery-enhanced .model-label::before,.gallery-enhanced .model-sort-heading::before{content:"";position:absolute;top:0;bottom:0;left:-16px;width:16px;background:#fffefa}
  .gallery-enhanced .model-sort-heading{border-radius:0;box-shadow:12px 0 0 #fffefa}
  .mobile-gallery-navigation{display:none}
}
@media(min-width:1500px){.benchmark-table{--benchmark-model-width:190px}}
@media(max-width:950px){
  .mobile-gallery-navigation{padding:9px 0 0;border:0;border-radius:0;background:transparent;gap:8px}
  .mobile-gallery-navigation .gallery-page-info strong{font-size:14px}
  .mobile-gallery-navigation .gallery-page-count{font-size:11px}
  .gallery-enhanced:not(.single-view) .model-scenes{position:relative;display:flex;gap:12px;min-width:0;max-width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
  .gallery-enhanced .model-scenes::-webkit-scrollbar{display:none}
  .gallery-enhanced:not(.single-view) .model-scenes>.prompt-cell{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;align-content:start}
  .gallery-enhanced:not(.single-view) .model-scenes .result-heading{position:static;min-height:46px;height:46px;padding-block:0}
  .gallery-enhanced:not(.single-view) .model-scenes .result-measure{display:none}
  .gallery-enhanced:not(.single-view) .model-scenes .no-result{min-height:clamp(324px,calc(76vw + 94px),514px)}
  .gallery-enhanced .model-scenes>.prompt-cell[hidden]{display:none}
  .gallery-enhanced.single-view .model-scenes{display:contents}
}
