/* Keyper v3.6.29: re-layout the photo choices based on the actual visible count.
   Keeps the original two-column long-photo layout when 6 choices are available
   on phones. When only 3 remain, use 3 balanced columns in a single row. */
.home #service-finder .kgp-places[data-kgp-count="3"] {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  max-width:840px!important;
  margin-inline:auto!important;
}
.home #service-finder .kgp-places[data-kgp-count="2"] {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:570px!important;
  margin-inline:auto!important;
}
.home #service-finder .kgp-places[data-kgp-count="1"] {
  grid-template-columns:minmax(0,1fr)!important;
  max-width:310px!important;
  margin-inline:auto!important;
}
@media(max-width:780px){
  .home #service-finder .kgp-places[data-kgp-count="3"] {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;max-width:none!important;
    gap:clamp(7px,2.2vw,11px)!important;
  }
  .home #service-finder .kgp-places[data-kgp-count="3"] .kgp-place-image {
    aspect-ratio:1.32/1!important;
  }
  .home #service-finder .kgp-places[data-kgp-count="3"] .kgp-place-label {
    min-height:36px!important;
    padding:7px 2px!important;
    font-size:clamp(10px,2.95vw,13px)!important;
    white-space:nowrap!important;
    letter-spacing:-.035em!important;
  }
}
/* [hidden] remains authoritative even if the base card has display:flex!important */
.home #service-finder [data-kgp-guide] .kgp-place[hidden]{display:none!important;}
