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

your

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 Reasons Why Most Diets Fail (And How to Finally Succeed)

10 Reasons Why Most Diets Fail (And How to Finally Succeed)

Reading Time: 13:34 min

Struggling with your diet? You’re not alone! In “10 Reasons Why Most Diets Fail (And How to Finally Succeed),” we’ll…

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
Why Your 9-to-5 Is Slowly Killing You: 6 Health Risks No One Warns You About

Why Your 9-to-5 Is Slowly Killing You: 6 Health Risks No One Warns You About

Reading Time: 7:49 min

Is your 9-to-5 taking a toll on your health? In this listicle, we’ll uncover 6 surprising risks that come with…

View post
10 Foods That Are Way Healthier (And Cheaper) Than Avocado

10 Foods That Are Way Healthier (And Cheaper) Than Avocado

Reading Time: 11:56 min

Looking for healthier and budget-friendly alternatives to avocado? Check out our list of 10 fantastic foods that pack a nutritional…

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
<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>