/* Shared by the homepage and Dashboard preview; keep the original 1170 × 400 format. */
.d2l-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 400;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}
.d2l-banner .d2l-banner-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Gaussian blur uses a radius, not percentages: strong soft focus with 70% intensity. */
  filter: blur(28px);
  opacity: .7;
  transform: scale(1.16);
  pointer-events: none;
}
.d2l-banner .d2l-banner-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
.d2l-banner .d2l-banner-foreground {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}
.d2l-banner[hidden] {
  display: none !important;
}
/* Existing horizontal banners keep their natural proportions and need no backdrop. */
.d2l-banner--native {
  aspect-ratio: auto;
}
.d2l-banner--native .d2l-banner-backdrop {
  display: none;
}
.d2l-banner--native .d2l-banner-foreground {
  position: relative;
  inset: auto;
  height: auto;
}
