/* Force course card images back to normal. */
.nextt-course-card img,
.course-single-wrap img,
.lp_course img,
.learn-press-course img,
.course-item img,
.course-card img,
.courses-card img,
.tutor-course-card img,
.edublink-course img,
article img {
  max-width: 100% !important;
}

.nextt-course-card img,
.course-single-wrap img,
.lp_course img,
.learn-press-course img,
.course-item img,
.course-card img,
.courses-card img,
.tutor-course-card img,
.edublink-course img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  position: static !important;
  margin: 0 !important;
  z-index: auto !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove the incorrect blurred hero wrapper effect from course cards. */
.nextt-course-card .nextt-hero-colour-fill-wrap,
.course-single-wrap .nextt-hero-colour-fill-wrap,
.lp_course .nextt-hero-colour-fill-wrap,
.learn-press-course .nextt-hero-colour-fill-wrap,
.course-item .nextt-hero-colour-fill-wrap,
.course-card .nextt-hero-colour-fill-wrap,
.courses-card .nextt-hero-colour-fill-wrap,
.tutor-course-card .nextt-hero-colour-fill-wrap,
.edublink-course .nextt-hero-colour-fill-wrap {
  height: auto !important;
  min-height: 0 !important;
  background-image: none !important;
  background: transparent !important;
  filter: none !important;
  overflow: visible !important;
}

.nextt-course-card .nextt-hero-colour-fill-bg,
.nextt-course-card .nextt-hero-colour-fill-overlay,
.course-single-wrap .nextt-hero-colour-fill-bg,
.course-single-wrap .nextt-hero-colour-fill-overlay,
.lp_course .nextt-hero-colour-fill-bg,
.lp_course .nextt-hero-colour-fill-overlay,
.learn-press-course .nextt-hero-colour-fill-bg,
.learn-press-course .nextt-hero-colour-fill-overlay,
.course-item .nextt-hero-colour-fill-bg,
.course-item .nextt-hero-colour-fill-overlay,
.course-card .nextt-hero-colour-fill-bg,
.course-card .nextt-hero-colour-fill-overlay,
.courses-card .nextt-hero-colour-fill-bg,
.courses-card .nextt-hero-colour-fill-overlay,
.tutor-course-card .nextt-hero-colour-fill-bg,
.tutor-course-card .nextt-hero-colour-fill-overlay,
.edublink-course .nextt-hero-colour-fill-bg,
.edublink-course .nextt-hero-colour-fill-overlay {
  display: none !important;
}

/* Safe homepage hero fill only. */
body.home .nextt-safe-hero-wrap,
body.front-page .nextt-safe-hero-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--nextt-safe-hero-desktop-height) !important;
  height: var(--nextt-safe-hero-desktop-height) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  margin: 0 auto !important;
}

body.home .nextt-safe-hero-bg,
body.front-page .nextt-safe-hero-bg {
  position: absolute !important;
  inset: -24px !important;
  z-index: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  filter: blur(var(--nextt-safe-hero-blur)) saturate(1.12) !important;
  transform: scale(1.08) !important;
}

body.home .nextt-safe-hero-overlay,
body.front-page .nextt-safe-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: rgba(0, 0, 0, var(--nextt-safe-hero-overlay)) !important;
  pointer-events: none !important;
}

body.home .nextt-safe-hero-img,
body.front-page .nextt-safe-hero-img {
  position: relative !important;
  z-index: 2 !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  body.home .nextt-safe-hero-wrap,
  body.front-page .nextt-safe-hero-wrap {
    min-height: var(--nextt-safe-hero-tablet-height) !important;
    height: var(--nextt-safe-hero-tablet-height) !important;
  }
}

@media (max-width: 767px) {
  body.home .nextt-safe-hero-wrap,
  body.front-page .nextt-safe-hero-wrap {
    min-height: var(--nextt-safe-hero-mobile-height) !important;
    height: var(--nextt-safe-hero-mobile-height) !important;
    display: flex !important;
    visibility: visible !important;
  }

  body.home .nextt-safe-hero-img,
  body.front-page .nextt-safe-hero-img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .nextt-course-card img,
  .course-single-wrap img,
  .lp_course img,
  .learn-press-course img,
  .course-item img,
  .course-card img,
  .courses-card img,
  .tutor-course-card img,
  .edublink-course img {
    height: 190px !important;
  }
}
