/* XMS v1.4.28 — four homepage highlight icons at 160 x 160px.
   Keep original images, colors and editor-controlled columns. Only the
   icon presentation and the height needed to contain them are affected. */
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats {
  min-height: 196px !important;
  padding-block: 16px !important;
}
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stats {
  align-items: center !important;
  justify-items: center !important;
}
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 160px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: min(160px, 100%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  max-width: 100% !important;
  flex: 0 1 160px !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat-icon img,
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat-icon .xms-icon-upload,
body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat-icon svg {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
/* Smaller viewports may not have 160px available in each grid column.
   Keep icons square and within the chosen mobile/tablet column count. */
@media (max-width: 1024px) {
  body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats {
    min-height: 0 !important;
  }
  body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat {
    min-height: 0 !important;
    height: auto !important;
  }
  body.xms-theme.xms-home-study .xms-main > section.xms-section-study_stats .xms-study-stat-icon {
    width: min(160px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
