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

Health

workouts for more toned shoulders

workouts for more toned shoulders

Reading Time: 5:23 min

Looking to sculpt those shoulders? Incorporate exercises like shoulder presses, lateral raises, and front raises into your routine. Aim for…

View post
how to “un-big” your back

how to “un-big” your back

Reading Time: 10:25 min

Feeling like your back is a little too broad? Let’s “un-big” it! Focus on posture by sitting up straight and…

View post
workouts for more toned back

workouts for more toned back

Reading Time: 10:4 min

Looking to sculpt a more toned back? Incorporate exercises like rows, lat pull-downs, and deadlifts into your routine. These moves…

View post
workouts for lower abs

Stubborn Lower Belly Fat? Try These Workouts for Lower Abs

Reading Time: 10:35 min

Looking to strengthen your lower abs? Incorporate exercises like leg raises, reverse crunches, and planks into your routine. These moves…

View post
popular weight loss pills

The Internet Is Going Crazy Over These Popular Weight Loss Pills

Reading Time: 10:2 min

When it comes to weight loss, many people consider popular pills as a quick fix. While some may boost metabolism…

View post
drawbacks of weight loss medications

Massive Drawbacks of Weight Loss Medications

Reading Time: 9:36 min

While weight loss medications can offer a helping hand, they come with drawbacks. Side effects like nausea or dizziness can…

View post
these weight loss pills actually work

Tired of Gimmicks? These Weight Loss Pills Actually Work

Reading Time: 9:25 min

With so many weight loss pills on the market, it can be hard to know which ones actually work. Recent…

View post
workouts for bigger calves

Ditch the Chicken Legs: Breaking Down Workouts for Bigger Calves

Reading Time: 9:50 min

Looking to bulk up those calves? Incorporate exercises like standing and seated calf raises, as well as jump rope sessions,…

View post
workouts for more toned biceps

Unbelievably Simple Workouts for More Toned Biceps

Reading Time: 10:36 min

Looking to sculpt more toned biceps? Incorporate a mix of exercises like curls, chin-ups, and hammer lifts into your routine.…

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>