/* The fixed-height gallery owns its rows; its image buttons fill those rows. */
html:root body #carPage .gallery.av71-gallery{grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
html:root body #carPage .av71-gallery>.av71-tile{display:block!important;box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:none!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;align-self:stretch!important;background:transparent!important;box-shadow:none!important;filter:none!important;overflow:hidden!important}
html:root body #carPage .av71-gallery>.av71-tile:before,html:root body #carPage .av71-gallery>.av71-tile:after{display:none!important}
html:root body #carPage .av71-gallery>.av71-tile>img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:0!important;margin:0!important}
html:root body #carPage .av71-gallery[data-count="4"]>.av71-tile:nth-child(4){grid-column:2/4!important;grid-row:2!important}
@media(max-width:850px){
  /* Expanded home filter: pickup / return on the left, age spans both upper rows. */
  html:root body .hero .search:not(.av94-fixed) .av100-search-row{display:grid!important;grid-template-columns:repeat(100,minmax(0,1fr))!important;grid-template-rows:auto auto auto!important;column-gap:0!important;row-gap:6px!important;width:100%!important;min-width:0!important}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>div:has(#homeCity){display:block!important;grid-area:1/1/2/42!important;min-width:0!important;width:100%!important;padding:2px 6px!important;box-sizing:border-box!important}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>.av104-drop{display:block!important;grid-area:1/42/2/83!important;min-width:0!important;width:100%!important;padding:2px 6px!important;box-sizing:border-box!important}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>.av104-range{display:flex!important;flex-direction:column!important;grid-area:2/1/3/83!important;min-width:0!important;width:100%!important;padding:4px 6px!important;gap:2px!important;box-sizing:border-box!important}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>.av170-age{display:flex!important;flex-direction:column!important;grid-area:1/83/3/101!important;align-self:stretch!important;min-width:0!important;max-width:none!important;width:100%!important;padding:2px 4px!important;margin:0!important;gap:2px!important;box-sizing:border-box!important;border-left:1px solid #e0eaf2!important}
  html:root body .hero .search:not(.av94-fixed) .av170-age>select{flex:1 1 auto!important;min-width:0!important;max-width:100%!important;width:100%!important;height:auto!important;min-height:31px!important;margin:0!important;padding:4px 12px 4px 2px!important;font-size:14px!important}
  html:root body .hero .search:not(.av94-fixed) .av170-age>span,html:root body .hero .search:not(.av94-fixed) .av100-search-row small{font-size:12px!important;font-weight:600!important;line-height:16px!important;margin:0!important;white-space:normal!important}
  html:root body .hero .search:not(.av94-fixed) .av104-range-button{width:100%!important;min-width:0!important;max-width:100%!important;flex-wrap:nowrap!important;gap:4px!important;box-sizing:border-box!important}
  html:root body .hero .search:not(.av94-fixed) .av104-range-button>span:first-child{min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>.home-filter-wrap{display:block!important;grid-area:3/1/4/55!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;border:0!important}
  html:root body .hero .search:not(.av94-fixed) .av100-search-row>#homeGoBtn{display:flex!important;align-items:center!important;justify-content:center!important;grid-area:3/57/4/101!important;width:100%!important;min-width:0!important;margin:0!important}
  html:root body .hero .search:not(.av94-fixed) #homeFilterBtn{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important;margin:0!important}
  html:root body .hero .search:not(.av94-fixed) .av191-home-bar{display:none!important}
  /* Keep body, make/model and price reachable from the full-screen filter. */
  html:root body #homeFilterPop.av192-home-filter>.av192-home-extra{display:grid!important}
}
