This template works with flexbox because the library conflicts with GRID.

The separation is in PX because the library works with PX, to change the GAP you must do it from Mansory code (line 48: gutter: 15). If you change the GAPs remember to modify the width of the Card block.

Remember to enable code execution

the

Pre-workout Supplement Facts You Have to Know Before Taking

Pre-workout Supplement Facts You Have to Know Before Taking

Reading Time: 12:45 min

Before you dive into the world of pre-workout supplements, let’s break down the essentials! From caffeine content to ingredient transparency,…

View post

The 8 Biggest Lies You’ve Been Told About Detoxing

Reading Time: 9:39 min

Ready to bust some myths? In our listicle “The 8 Biggest Lies You’ve Been Told About Detoxing,” we’ll debunk common…

View post
7 Simple Hacks to Feel 10 Years Younger Without Expensive Supplements

7 Simple Hacks to Feel 10 Years Younger Without Expensive Supplements

Reading Time: 9:1 min

Looking to reclaim your youthful energy without breaking the bank? In this listicle, we’ve gathered 7 simple hacks that can…

View post
10 Dangerous Side Effects of Common Supplements Nobody Talks About

10 Dangerous Side Effects of Common Supplements Nobody Talks About

Reading Time: 12:34 min

Wondering if your supplements are safe? Our listicle reveals 10 dangerous side effects of common supplements that rarely get attention.…

View post
8 Easy Ways to Build Muscle Without Stepping Foot in a Gym

8 Easy Ways to Build Muscle Without Stepping Foot in a Gym

Reading Time: 10:2 min

Looking to build muscle without hitting the gym? You’re in the right place! In our list of 8 easy ways,…

View post
9 Popular Exercises That Are Actually Destroying Your Body

9 Popular Exercises That Are Actually Destroying Your Body

Reading Time: 9:38 min

Discover the 9 popular exercises that may be causing more harm than good! From overhyped gym trends to common staples,…

View post
9 Wellness Products That Are A Total Waste of Your Money

9 Wellness Products That Are A Total Waste of Your Money

Reading Time: 11:23 min

In our latest listicle, we uncover 9 wellness products that just don’t deliver value for your hard-earned cash. From overpriced…

View post
7 Simple Lifestyle Tweaks That Add Years to Your Life—Without Changing Your Diet

7 Simple Lifestyle Tweaks That Add Years to Your Life—Without Changing Your Diet

Reading Time: 8:45 min

Looking to boost your longevity without overhauling your diet? Check out our list of 7 simple lifestyle tweaks that can…

View post
7 ‘Healthy’ Habits That Are Actually Making You Gain Weight

7 ‘Healthy’ Habits That Are Actually Making You Gain Weight

Reading Time: 8:51 min

Discover surprising habits that might be sabotaging your weight loss goals! In our listicle, “7 ‘Healthy’ Habits That Are Actually…

View post
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>



<script>
  
// Selecciona el elemento HTML que quieres observar
const targetElement = document.querySelector('.fb-masonry');

// Opciones de la observación
const observerOptions = {
  childList: true, // Observar cambios en los hijos del elemento
  subtree: true    // Observar todos los niveles de hijos
};

// Función de devolución de llamada para cuando se detecten cambios
const callback = function(mutationsList, observer) {
    for(const mutation of mutationsList) {
        if (mutation.type === 'childList') {
            // Vuelve a ejecutar el script de Masonry cuando se añadan o eliminen elementos
            executeMasonryScript();
        }
    }
};

// Crear una instancia del MutationObserver con la función de devolución de llamada
const observer = new MutationObserver(callback);

// Comienza a observar el elemento target con las opciones dadas
observer.observe(targetElement, observerOptions);

// Función para ejecutar el script de Masonry
function executeMasonryScript() {
    const grid = document.querySelector('.fb-masonry');
    const masonry = new Masonry(grid, {
        itemSelector: '.fb-pcard-one',
        columnWidth: '.fb-pcard-one',
        gutter: 15, // Espacio entre elementos
    });
}

// Ejecutar el script de Masonry al inicio
executeMasonryScript();

  
</script>
<script>
  /*Source: https://github.com/Krzysztof-Antosik/Two-direction-Sticky-Sidebar*/
  
  // Verificar el ancho de pantalla al cargar y redimensionar
  function checkScreenWidth() {
    if (window.innerWidth <= 767) {
      // Si la pantalla es menor o igual a 676px, no ejecutar el código
      return;
    }

    const stickyElement = document.querySelector('.fb-sidebar__aside');
    const startPosition = stickyElement.getBoundingClientRect().top;

    let endScroll = window.innerHeight - stickyElement.offsetHeight - 500;
    let currPos = window.scrollY;
    let screenHeight = window.innerHeight;
    let stickyElementHeight = stickyElement.offsetHeight;
    let topGap = 40;
    let bottomGap = 40;

    setTimeout(() => {
      if (stickyElement.hasAttribute('data-top-gap')) {
        const dataTopGap = stickyElement.getAttribute('data-top-gap');
        topGap = dataTopGap === 'auto' ? startPosition : parseInt(dataTopGap);
      }

      if (stickyElement.hasAttribute('data-bottom-gap')) {
        bottomGap = parseInt(stickyElement.getAttribute('data-bottom-gap'));
      }
    }, 100);

    stickyElement.style.position = 'sticky';
    stickyElement.style.top = `${topGap}px`;
    stickyElement.style.height = 'fit-content';

    function positionStickySidebar() {
      endScroll = window.innerHeight - stickyElement.offsetHeight - bottomGap;
      const stickyElementTop = parseInt(stickyElement.style.top.replace('px', ''));

      if (stickyElementHeight + topGap + bottomGap > screenHeight) {
        if (window.scrollY < currPos) {
          if (stickyElementTop < topGap) {
            stickyElement.style.top = `${stickyElementTop + currPos - window.scrollY}px`;
          } else if (stickyElementTop >= topGap && stickyElementTop !== topGap) {
            stickyElement.style.top = `${topGap}px`;
          }
        } else {
          if (stickyElementTop > endScroll) {
            stickyElement.style.top = `${stickyElementTop + currPos - window.scrollY}px`;
          } else if (stickyElementTop < endScroll && stickyElementTop !== endScroll) {
            stickyElement.style.top = `${endScroll}px`;
          }
        }
      } else {
        stickyElement.style.top = `${topGap}px`;
      }
      currPos = window.scrollY;
    }

    function stickyElementToMe() {
      stickyElement.style.top = `${topGap}px`;
    }

    function updateSticky() {
      screenHeight = window.innerHeight;
      stickyElementHeight = stickyElement.offsetHeight;
      positionStickySidebar();
    }

    setTimeout(() => {
      window.addEventListener('resize', () => {
        currPos = window.scrollY;
        updateSticky();
      });

      document.addEventListener('scroll', updateSticky, {
        capture: true,
        passive: true
      });
    }, 1000);
  }

  // Verificar el ancho de pantalla al cargar y redimensionar
  window.addEventListener('load', checkScreenWidth);
  window.addEventListener('resize', checkScreenWidth);
</script>