/**
 * ERS Rendered Page compatibility rules shared by Classic and Modern.
 *
 * This stable terminal stylesheet preserves cross-family component geometry and
 * the established ersuite-rendered-pages customization handle. Family layout
 * and appearance tokens live in registry-selected assets.
 */

.ers-page--family-modern.ers-staff-single.ers-staff-modern .ers-staff-modern__section--favorite-rentals .ers-grid,
.ers-page--family-modern.ers-staff-single.ers-staff-modern .ers-staff-modern__section--favorite-rentals .ers-carousel,
.ers-page--family-modern.ers-staff-single.ers-staff-modern .ers-staff-modern__section--favorite-rentals .ers-carousel__track,
.ers-page--family-classic.ers-staff-single .ers-staff-single__section--favorite-rentals .ers-grid,
.ers-page--family-classic.ers-staff-single .ers-staff-single__section--favorite-rentals .ers-carousel,
.ers-page--family-classic.ers-staff-single .ers-staff-single__section--favorite-rentals .ers-carousel__track{
  min-width:0;
}

/* Keep one Favorite Rental aligned to one column of the 2-up carousel. */
.ers-page--family-modern.ers-staff-single.ers-staff-modern .ers-staff-modern__section--favorite-rentals .ers-grid,
.ers-page--family-classic.ers-staff-single .ers-staff-single__section--favorite-rentals .ers-grid{
  width:100%;
  max-width:calc((100% - var(--ers-card-gap,16px)) / 2);
  margin-inline:0 auto;
}

@media (max-width:980px){
  .ers-page--family-modern.ers-staff-single.ers-staff-modern .ers-staff-modern__section--favorite-rentals .ers-grid,
  .ers-page--family-classic.ers-staff-single .ers-staff-single__section--favorite-rentals .ers-grid{
    max-width:100%;
  }
}
