/* Decorative frame for the dynamic image in the active Bricks CPD template. */

/* Keep portrait source images from stretching the hero vertically. */
#brxe-bgjwjs {
  width: 100%;
  max-width: 680px;
}

#brxe-bgjwjs > #brxe-scxcqu {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

#brxe-ovr001, .course-overview-image {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 524px;
  aspect-ratio: 524 / 496;
  padding: 0;
  flex: 0 1 524px;
}

#brxe-ovr001::before,
#brxe-ovr001::after,
.course-overview-image::before,
.course-overview-image::after {
  content: "";
  position: absolute;
  inset: -2%;
  background-repeat: no-repeat;
  pointer-events: none;
}

#brxe-ovr001::before, .course-overview-image::before {
  z-index: -1;
  background-image: url("../images/cpd-overview-splash.svg");
  background-position: center;
  background-size: contain;
}

#brxe-ovr001::after, .course-overview-image::after {
  z-index: 2;
  background-image: url("../images/cpd-overview-stars.svg"), url("../images/cpd-overview-stars.svg");
  background-position: right 1% top 12%, left 1% bottom 12%;
  background-size: 41px 48px, 41px 48px;
  transform-origin: center;
  animation: cpd-overview-stars-glow 3.8s ease-in-out infinite;
}

#brxe-ovr001 > #brxe-wekqib, .course-overview-image > .brxe-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 82%;
  max-width: 430px;
  aspect-ratio: 406 / 259;
  object-fit: cover;
  border: 12px solid #261D63;
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(38, 29, 99, 0.16);
}

@keyframes cpd-overview-stars-glow {
  0%, 100% {
    opacity: 0.82;
    transform: translate3d(0, 0, 0) scale(0.98);
    filter: drop-shadow(0 0 0 rgba(250, 202, 104, 0));
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale(1.025);
    filter: drop-shadow(0 0 8px rgba(250, 202, 104, 0.7));
  }
}

@media (max-width: 767px) {
  #brxe-ovr001, .course-overview-image {
    max-width: 524px;
    flex-basis: auto;
  }

  #brxe-ovr001 > #brxe-wekqib, .course-overview-image > .brxe-image {
    border-width: 8px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #brxe-ovr001::after, .course-overview-image::after {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
