/* Keep the home page certificates as complete A4 sheets, two per row. */
body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid > div:first-child .mt-8 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
}

body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid > div:first-child .mt-8 article {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 3px !important;
  background: #fff;
}

body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid > div:first-child .mt-8 article > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 210 / 297 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #fff;
}

@media (max-width: 767px) {
  body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) > .section-shell {
    padding-inline: 16px !important;
  }

  body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid > div:first-child {
    padding: 8px !important;
  }

  body:has(footer) section.section-band-tint:has(img[src*="/home-current/certificate-"]) .section-shell > .grid > div:first-child .mt-8 {
    gap: 12px !important;
  }
}
