/**
 * Barrio News advertising carousel — Stage 8.
 * Persistent campaign logic lives in Core; the Theme owns presentation only.
 */
.bn-ad-slot {
  min-width: 0;
  max-width: 100%;
}

.bn-ad-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  touch-action: pan-y;
}

.bn-ad-carousel__viewport {
  position: relative;
  width: 100%;
  min-width: 0;
}

.bn-ad-carousel__slide {
  width: 100%;
  min-width: 0;
}

.bn-ad-carousel__slide[hidden] {
  display: none;
}

.bn-ad-carousel__slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-ad-link,
.bn-ad-carousel__slide > picture,
.bn-ad-carousel__slide > img,
.bn-ad-link > picture {
  display: block;
  max-width: 100%;
}

.bn-ad-link {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.bn-ad-creative {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.bn-ad-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(6, 33, 82, .88);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  cursor: pointer;
  transform: translateY(-50%);
}

.bn-ad-carousel__arrow--prev { left: 10px; }
.bn-ad-carousel__arrow--next { right: 10px; }

.bn-ad-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(6, 33, 82, .68);
  transform: translateX(-50%);
}

.bn-ad-carousel__dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.bn-ad-carousel__dot.is-active {
  background: #fff;
}

.bn-ad-carousel__arrow:focus-visible,
.bn-ad-carousel__dot:focus-visible,
.bn-ad-link:focus-visible {
  outline: 3px solid #d00e12;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .bn-ad-carousel__arrow {
    width: 44px;
    height: 44px;
  }
  .bn-ad-carousel__arrow--prev { left: 4px; }
  .bn-ad-carousel__arrow--next { right: 4px; }
  .bn-ad-carousel__dots { bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-ad-carousel *,
  .bn-ad-carousel *::before,
  .bn-ad-carousel *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
