#overview .gallery{min-width:0}
#overview .thumbs{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;width:100%;max-width:100%;padding:4px 0 10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#adc5df transparent;overscroll-behavior-x:contain}
#overview .thumbs button{flex:0 0 calc((100% - 60px)/6);width:calc((100% - 60px)/6);height:auto;aspect-ratio:1;min-width:0;padding:4px;scroll-snap-align:start;border-radius:10px;box-sizing:border-box}
#overview .thumbs button img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){#overview .thumbs{gap:6px}#overview .thumbs button{flex-basis:calc((100% - 30px)/6);width:calc((100% - 30px)/6);border-radius:6px;padding:2px}}
#overview .thumbs{flex-wrap:nowrap!important}
/* Let the panel grow with responsive square thumbnails; never clip their lower edge. */
body #overview .gallery{height:auto!important;max-height:none!important;overflow:visible;padding-bottom:20px}
body #overview .thumbs{height:auto!important;max-height:none;flex-shrink:0;align-items:flex-start;padding-top:5px;padding-bottom:16px}
body #overview .thumbs button{position:relative;aspect-ratio:1;height:auto!important;flex-shrink:0;overflow:hidden}
body #overview .thumbs button img{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain}
