/* f127e thermometer (g222) — initial cap in res/ worksheets; lifted when .user-resized */
img.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
img.imgrid.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
img[data-elc-f127e-therm]:not(.user-resized) {
  max-height: 300px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/*
 * 10q — list layout sets min 250px and max-height:none on #boxN img; grid uses tall cell sizing.
 * Match p#qN img selectors so min-width:250px does not upscale the 200×600 thermometer.
 */
body.ten-questions [id^="box"] img.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
body.ten-questions [id^="box"] img[data-elc-f127e-therm]:not(.user-resized),
body.ten-questions [id^="box"] .question > img.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
body.ten-questions [id^="box"] .question p[id^="q"]:not([id^="qa"]) img.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
body.ten-questions [id^="box"] .question p[id^="q"]:not([id^="qa"]) img[data-elc-f127e-therm]:not(.user-resized),
body.ten-questions-grid [id^="box"] img.t2-wp-qdiagram--elc-f127e-therm:not(.user-resized),
body.ten-questions-grid [id^="box"] img[data-elc-f127e-therm]:not(.user-resized) {
  min-height: 0 !important;
  min-width: 0 !important;
  max-height: 300px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
