/* Local Posts pagination alignment only. */
.theme-harbor main .esafePage:has(.esafeListingControls) .esafeListingControls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 16px;
}

.theme-harbor main .esafePage:has(.esafeListingControls) .listingAccordion {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0 !important;
}

.theme-harbor main .esafePage:has(.esafeListingControls) .esafe-pagination-status {
  grid-column: 1 / -1;
  grid-row: 2;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: center !important;
}

.theme-harbor main .esafePage:has(.esafeListingControls) .esafePageNumbers {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  width: auto;
}

@media (max-width: 600px) {
  .theme-harbor main .esafePage:has(.esafeListingControls) .esafeListingControls {
    grid-template-columns: 1fr;
  }

  .theme-harbor main .esafePage:has(.esafeListingControls) .listingAccordion,
  .theme-harbor main .esafePage:has(.esafeListingControls) .esafe-pagination-status,
  .theme-harbor main .esafePage:has(.esafeListingControls) .esafePageNumbers {
    grid-column: 1;
  }

  .theme-harbor main .esafePage:has(.esafeListingControls) .listingAccordion {
    grid-row: 1;
  }

  .theme-harbor main .esafePage:has(.esafeListingControls) .esafe-pagination-status {
    grid-row: 2;
    text-align: center !important;
  }

  .theme-harbor main .esafePage:has(.esafeListingControls) .esafePageNumbers {
    grid-row: 3;
    justify-self: center;
  }
}
