/* Course image guard: never upscale the historical 449px-wide course photos into oversized panels. */
.single-cp_course .cp-course-page .cp-hero{grid-template-columns:minmax(0,1fr) minmax(300px,449px)!important;max-width:1340px;margin-left:auto!important;margin-right:auto!important;min-height:0!important}
.single-cp_course .cp-course-page .cp-hero-photo{min-height:0!important;display:flex;align-items:center;justify-content:center;background:#e8e5dd}
.single-cp_course .cp-course-page .cp-hero-photo img{width:100%!important;max-width:449px!important;height:auto!important;object-fit:contain!important}
.single-cp_course .cp-course-page .cp-gallery{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
.single-cp_course .cp-course-page .cp-gallery-main,.single-cp_course .cp-course-page .cp-gallery-side{display:contents!important;min-height:0!important}
.single-cp_course .cp-course-page .cp-gallery img{width:100%!important;max-width:449px!important;height:auto!important;object-fit:contain!important;justify-self:center;background:#e8e5dd}
@media(max-width:900px){.single-cp_course .cp-course-page .cp-hero{grid-template-columns:1fr!important}.single-cp_course .cp-course-page .cp-hero-photo{padding:0 28px 54px}.single-cp_course .cp-course-page .cp-gallery{grid-template-columns:1fr!important}.single-cp_course .cp-course-page .cp-gallery img{width:min(100%,449px)!important}}
