/* Core scroller behavior */
.mobile-swipe--scroller{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scroll-behavior:smooth;touch-action:pan-x pan-y pinch-zoom}
/* Force flex even if core sets grid on .wp-block-post-template */
.wp-block-post-template.mobile-swipe--flex,
.mobile-swipe--scroller.mobile-swipe--flex{display:flex!important;flex-wrap:nowrap}
.mobile-swipe-child{scroll-snap-align:start;scroll-snap-stop:always}
.mobile-swipe--scroller::-webkit-scrollbar{height:0}
.linkbox{cursor:pointer}
.linkbox{position:relative}
.linkbox__overlay{position:absolute;inset:0;z-index:1;text-decoration:none}
.linkbox :is(a, button):not(.linkbox__overlay){position:relative;z-index:2}
.mobile-swipe-navi .mobile-swipe-child {
   margin: revert;
   margin-right: -18px;
}
/* Optional: set per-container width, e.g.
   .mobile-swipe-container { --mobile-swipe-item-width: 360px; }
*/

@media (max-width: 782px) {
  .mobile-swipe-container {
    margin-right: -1.5rem !important;
  }
  .wp-block-query.mobile-swipe-container {
    margin-right: -1.5rem !important;
  }
  .wp-block-group.is-layout-grid {
    margin-right: -1.5rem !important;
  }
  .mobile-swipe-dots{display:flex;justify-content:center;gap:.35rem;margin-top:1.5rem}
  .mobile-swipe-dot{
    width:4px;height:4px;display:block;border:0;padding:0;border-radius:50%;
    background:#c8c8c8;opacity:.7;transition:opacity .2s;cursor:pointer;
    -webkit-appearance:none;appearance:none;line-height:0;box-sizing:content-box
  }
  .mobile-swipe-dot.is-active{background:#111;opacity:1}
  .mobile-swipe--scroller > .mobile-swipe-child:last-child{margin-right:1.5rem !important}
  /* Gleichhöhe ohne feste Werte: Scroller streckt Items; Items erlauben Streckung; Innenkolumne füllt Höhe */
  .mobile-swipe--scroller{align-items:stretch!important}
  .mobile-swipe--scroller > .mobile-swipe-child{align-self:stretch}
  .mobile-swipe--scroller .stretch-vertical > :last-child{margin-top:auto}
  .mobile-swipe--scroller .stretch-vertical{display:flex;flex-direction:column}
}
.auto-height.mobile-swipe--scroller .stretch-vertical {height: auto; }
