/* V20.261 — White catalogue link, flush with the photographs above/below.
 * Move row spacing to the cards so the ticker has no surrounding gutter.
 * Other rows retain their existing spacing at every column breakpoint. */
body.home #selection-biens-accueil .pi-home-property-grid {
  --pi-catalogue-row-space-v261: clamp(18px, 1.6vw, 28px);
  row-gap: 0;
}

body.home #selection-biens-accueil .pi-home-property-grid > :is(.pi-home-property-card, .pi-home-property-gap) {
  margin-top: var(--pi-catalogue-row-space-v261);
}

/* One column: retain the gaps between cards, except beside the ticker. */
body.home #selection-biens-accueil .pi-home-property-grid > :is(.pi-home-property-card, .pi-home-property-gap):first-child,
body.home #selection-biens-accueil .pi-home-property-grid > .pi-home-catalogue-ticker + :is(.pi-home-property-card, .pi-home-property-gap) {
  margin-top: 0;
}

body.home #selection-biens-accueil .pi-home-catalogue-ticker {
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
  z-index: 4;
}

@media screen and (max-width: 650px) {
  body.home #selection-biens-accueil .pi-home-property-grid {
    --pi-catalogue-row-space-v261: 16px;
  }
}

/* Two columns: both cards in the first row and just below the ticker. */
@media screen and (min-width: 651px) {
  body.home #selection-biens-accueil .pi-home-property-grid > :is(.pi-home-property-card, .pi-home-property-gap):nth-child(2),
  body.home #selection-biens-accueil .pi-home-property-grid > .pi-home-catalogue-ticker + :is(.pi-home-property-card, .pi-home-property-gap) + :is(.pi-home-property-card, .pi-home-property-gap) {
    margin-top: 0;
  }
}

/* Three columns: include the third card in those rows. */
@media screen and (min-width: 901px) {
  body.home #selection-biens-accueil .pi-home-property-grid > :is(.pi-home-property-card, .pi-home-property-gap):nth-child(3),
  body.home #selection-biens-accueil .pi-home-property-grid > .pi-home-catalogue-ticker + :is(.pi-home-property-card, .pi-home-property-gap) + :is(.pi-home-property-card, .pi-home-property-gap) + :is(.pi-home-property-card, .pi-home-property-gap) {
    margin-top: 0;
  }
}

@media screen and (min-width: 1101px) {
  body.home #selection-biens-accueil .pi-home-property-grid {
    --pi-catalogue-row-space-v261: clamp(13.5px, 1.6vw, 21px);
  }
}
