/* Responsive post grid and native, swipeable scroll-snap carousel. */
.md-custom-post-loop{display:grid;grid-template-columns:repeat(var(--md-columns,3),minmax(0,1fr));column-gap:var(--md-column-gap,20px);row-gap:var(--md-row-gap,20px)}
.md-custom-post-loop__item{min-width:0}
.md-custom-post-loop--slider{display:flex;gap:var(--md-column-gap,20px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;grid-template-columns:none;align-items:stretch}
.md-custom-post-loop--slider::-webkit-scrollbar{display:none}
.md-custom-post-loop--slider>.md-custom-post-loop__item{flex:0 0 calc((100% - (var(--md-slides,3) - 1)*var(--md-column-gap,20px))/var(--md-slides,3));scroll-snap-align:start;box-sizing:border-box}
.md-custom-post-loop__carousel{min-width:0;position:relative;display:flex;flex-direction:column}
.md-custom-post-loop__arrows{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.md-custom-post-loop__arrow{cursor:pointer;background:transparent;border:1px solid currentColor;border-radius:4px;color:inherit;min-width:36px;min-height:36px;line-height:1;padding:6px;font-size:18px}
.md-custom-post-loop__arrow:disabled{cursor:default;opacity:.35}
.md-custom-post-loop__dots{display:flex;justify-content:center;gap:8px;margin-top:12px}
.md-custom-post-loop__dot{width:9px;height:9px;border-radius:50%;border:0;background:currentColor;opacity:.3;cursor:pointer;padding:0}
.md-custom-post-loop__dot[aria-current=true]{opacity:1}
.md-custom-post-loop__pagination ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:24px 0 0}
.md-custom-post-loop__pagination a,.md-custom-post-loop__pagination span{display:inline-block;padding:6px 10px}
@media(max-width:1024px){.md-custom-post-loop:not(.md-custom-post-loop--slider){grid-template-columns:repeat(var(--md-columns,2),minmax(0,1fr))}}
@media(max-width:767px){.md-custom-post-loop:not(.md-custom-post-loop--slider){grid-template-columns:repeat(var(--md-columns,1),minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.md-custom-post-loop--slider{scroll-behavior:auto}}

.md-custom-post-loop__item{box-sizing:border-box}
.md-custom-post-loop__arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;pointer-events:auto}

/* The offset defaults to zero and is activated only in the On Sides mode. */
.md-custom-post-loop__arrows [data-loop-prev]{transform:translateX(calc(-1 * var(--md-effective-side-offset,0px)))}
.md-custom-post-loop__arrows [data-loop-next]{transform:translateX(var(--md-effective-side-offset,0px))}

/* Equal-height cards: align slider items and stretch the Elementor Loop Item template. */
.md-custom-post-loop--slider.md-custom-post-loop--equal-height{align-items:stretch}
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item{display:flex;flex-direction:column;align-self:stretch;height:auto}
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item>.elementor{display:flex;flex-direction:column;flex:1;min-width:0}
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item>.elementor>.e-con,
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item>.elementor>.elementor-section-wrap{flex:1}
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item>.elementor>.elementor-section-wrap{display:flex;flex-direction:column}
.md-custom-post-loop--slider.md-custom-post-loop--equal-height>.md-custom-post-loop__item>.elementor>.elementor-section-wrap>.elementor-section{flex:1}
