.raster-gallery-heading { margin:0; font:700 1.2rem var(--gallery-control-font); }
.raster-gallery-controls { display:flex; align-items:end; gap:12px; margin-bottom:14px; padding:11px 14px; border:1px solid var(--border); border-radius:10px; background:var(--panel); }
.raster-gallery-controls .gallery-control { flex:0 1 220px; width:auto; min-width:0; }
.raster-gallery-controls .gallery-search-control { flex:1 1 270px; max-width:360px; }
.raster-gallery-card .gallery-card-preview { border-bottom:1px solid var(--border); }
@media (max-width:760px) {
  .raster-gallery-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:8px; }
  .raster-gallery-controls .gallery-control { width:100%; }
  .raster-gallery-controls .gallery-search-control { grid-column:1 / -1; max-width:none; }
}
