/* Brands With Buzz 4:5 GIF ad band. One slot, immediately above the existing footer.
   Does not replace the "Website by Brands With Buzz" + QR credit. */

.bwb-gif-ad {
  box-sizing: border-box;
  margin: 0;
  padding: 24px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  border: 0;
}

body.wp-theme-mkm2026 .bwb-gif-ad,
.bwb-gif-ad--mkm {
  border-top: 1px solid var(--bd, #203651);
  background: var(--bg, #0a1420);
}

body.wp-theme-mkm2026 .bwb-gif-ad + .ft,
.bwb-gif-ad--mkm + .ft {
  margin-top: 0;
}

.bwb-gif-ad--gc {
  background: #F7F9FC;
  border-top: 1px solid #E5E7EB;
  border-bottom: 0;
  padding: 28px 18px 16px;
}

/* Reserve space under the GC card so #chat-mk01 (fixed, bottom-right)
   sits in the clearance, not on the GIF. Chat stays visible. */
.bwb-gif-ad--gc::after {
  content: "";
  display: block;
  width: 100%;
  flex: none;
  pointer-events: none;
  height: 240px;
}

@media (max-width: 700px) {
  .bwb-gif-ad--gc::after {
    height: 260px;
  }
}

.bwb-gif-ad__link {
  display: block;
  width: min(320px, 100%);
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: 0;
  flex: none;
}

.bwb-gif-ad__link:focus-visible {
  outline: 2px solid #4273F1;
  outline-offset: 3px;
}

:root[data-theme="light"] .bwb-gif-ad__link {
  box-shadow: 0 8px 24px rgba(11, 22, 34, 0.16);
  outline: 1px solid rgba(11, 22, 34, 0.08);
}

.bwb-gif-ad__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #111;
  overflow: hidden;
}

.bwb-gif-ad__slide,
.bwb-gif-ad__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
}

.bwb-gif-ad__still {
  display: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .bwb-gif-ad__slide {
    display: none !important;
  }
  .bwb-gif-ad__still {
    display: block;
  }
}
