/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

h1, h2, h3, h4, blockquote {
  text-wrap: balance;
}

p, li, figcaption {
  text-wrap: pretty;
}

The updated bsp-award-cabinet-snippet.html stacks the badges a way that doesn’t depend on those details:

Fixed height: The module is a box exactly one badge tall. Every badge is pinned to the top-left corner of that box, so the page height never changes, whichever badge is showing.
Works with HubSpot’s markup: The timing uses a class on each image instead of the image’s position in the list, so it works whether or not HubSpot adds <p> tags. Any margins on those tags are set to zero.
Overrides the theme: The layout rules are marked !important, so Clean Pro and the child theme styles can’t override them.
I tested the preview file with each image deliberately wrapped in <p> tags, the same way HubSpot does it. The module stays about 300px tall at a 560px width, with one badge showing at a time.

To install:

Replace the old snippet completely. The class names changed, so mixing the old and new versions won’t work.
Swap the six src placeholders for your badge URLs from the HubSpot file manager.
Put it in an HTML module if you have one available; it leaves the markup alone. Rich Text in Source code view also works with this version.
If the module still shows more than one badge after that, send a screenshot, or copy the module’s HTML from the browser’s inspector. That will show which theme rule is still getting through.

Bsp award cabinet snippet
Code
·HTML
Bsp award cabinet preview
Code
·HTML



Claude is AI and can make mistakes. Please double-check responses.


Bsp award cabinet snippet · HTML
<!-- Best placed in an HTML module (or Rich Text > Source code). Swap each src for the badge URL from HubSpot File Manager. -->
<style>
/* BSP award cabinet v2: one badge at a time, 4s each, 24s loop.
   Badges are absolutely stacked in a fixed-ratio box, so the module is
   always exactly one badge tall, even if HubSpot wraps images in <p> tags. */
.bsp-award-cabinet{position:relative !important;display:block !important;
  width:100% !important;max-width:560px !important;margin:0 auto !important;
  aspect-ratio:755/403 !important;overflow:visible !important}
.bsp-award-cabinet p{margin:0 !important;padding:0 !important;line-height:0 !important}
.bsp-award-cabinet img.bsp-award{position:absolute !important;top:0 !important;left:0 !important;
  width:100% !important;height:auto !important;max-width:none !important;margin:0 !important;
  opacity:0;animation:bspAwardFade 24s ease-in-out infinite both}
.bsp-award-cabinet img.bsp-a2{animation-delay:4s}
.bsp-award-cabinet img.bsp-a3{animation-delay:8s}
.bsp-award-cabinet img.bsp-a4{animation-delay:12s}
.bsp-award-cabinet img.bsp-a5{animation-delay:16s}
.bsp-award-cabinet img.bsp-a6{animation-delay:20s}
@keyframes bspAwardFade{
  0%{opacity:0;transform:translateY(12px)}
  3.125%{opacity:1;transform:translateY(0)}
  13.542%{opacity:1;transform:translateY(0)}
  16.667%{opacity:0;transform:translateY(-12px)}
  100%{opacity:0;transform:translateY(-12px)}
}
@media (prefers-reduced-motion:reduce){
  .bsp-award-cabinet img.bsp-award{animation:none}
  .bsp-award-cabinet img.bsp-a1{opacity:1}
}
</style>