/** BP Dynamic Banners - Front office */
.bp-banners {
  width: 100%;
  margin: 0 0 var(--bp-gap, 16px);
}

.bp-banners__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--bp-gap, 16px);
  grid-auto-flow: dense;
  align-items: stretch;
}

.bp-banners__item {
  grid-column: span var(--bp-col, 12);
  min-width: 0;
}

.bp-banners__link,
.bp-banners__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bp-banners__link {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: var(--bp-banner-radius, 0);
}

.bp-banners__image {
  display: block;
  width: 100%;
  aspect-ratio: var(--bp-aspect-ratio, 16 / 9);
  height: auto;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.bp-banners__link:hover .bp-banners__image,
.bp-banners__link:focus .bp-banners__image {
  transform: scale(1.015);
}

.bp-banners__link:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.bp-banners__title.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .bp-banners[data-mobile-behavior="preserve_layout"] .bp-banners__item {
    grid-column: span var(--bp-col, 12);
  }

  .bp-banners[data-mobile-behavior="stack"] .bp-banners__item {
    grid-column: span 12;
  }

  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item {
    grid-column: span 6;
  }

  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-12,
  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-11,
  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-10,
  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-9,
  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-8,
  .bp-banners[data-mobile-behavior="two_columns"] .bp-banners__item--col-7 {
    grid-column: span 12;
  }

  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item {
    grid-column: span 12;
  }

  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-1,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-2,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-3,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-4,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-5,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-6 {
    grid-column: span 6;
  }

  .bp-banners__item[style*="--bp-mobile-col: 1"],
  .bp-banners__item[style*="--bp-mobile-col: 2"],
  .bp-banners__item[style*="--bp-mobile-col: 3"],
  .bp-banners__item[style*="--bp-mobile-col: 4"],
  .bp-banners__item[style*="--bp-mobile-col: 5"],
  .bp-banners__item[style*="--bp-mobile-col: 6"],
  .bp-banners__item[style*="--bp-mobile-col: 7"],
  .bp-banners__item[style*="--bp-mobile-col: 8"],
  .bp-banners__item[style*="--bp-mobile-col: 9"],
  .bp-banners__item[style*="--bp-mobile-col: 10"],
  .bp-banners__item[style*="--bp-mobile-col: 11"],
  .bp-banners__item[style*="--bp-mobile-col: 12"] {
    grid-column: span var(--bp-mobile-col);
  }
}

@media (max-width: 480px) {
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-1,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-2,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-3,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-4 {
    grid-column: span 6;
  }

  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-5,
  .bp-banners[data-mobile-behavior="smart_fill"] .bp-banners__item--col-6 {
    grid-column: span 12;
  }
}
