/* Footer only: display the original high-resolution logo at a readable size. */
#site-footer .cs-footer-row {
  grid-template-columns: var(--cs-footer-logo-desktop, 280px) minmax(0, 1fr) 250px !important;
}
#cs-footer-brand {
  width: var(--cs-footer-logo-desktop, 280px) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1 !important;
}
#cs-footer-brand > a,
#cs-footer-brand > .custom-logo-link {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1 !important;
}
#cs-footer-brand img,
#cs-footer-brand .custom-logo {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
#site-footer .cs-footer-menu > li > a {
  white-space: nowrap;
}

@media (max-width: 980px) {
  #site-footer .cs-footer-row {
    grid-template-columns: var(--cs-footer-logo-desktop, 280px) minmax(0, 1fr) !important;
  }
}
@media (max-width: 600px) {
  #site-footer .cs-footer-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #cs-footer-brand {
    width: var(--cs-footer-logo-mobile, 240px) !important;
  }
  #cs-footer-brand img,
  #cs-footer-brand .custom-logo {
    object-position: center !important;
  }
  /* Keep the two links together in the existing two-column phone menu. */
  #site-footer .cs-footer-menu > .cs-footer-services-item {
    grid-column: 1;
  }
  #site-footer .cs-footer-menu > .cs-footer-policy-paired {
    grid-column: 2;
  }
}
