/*
 * YADIM Scroll Motion. Without JavaScript (or when the effect is off on a device) none of this applies and the section is as built.
 * Active: the section is a full-screen box (its height is set by the script), its rows sit in panels of a strip that is moved with
 * transform; the strip is clipped by the viewport. Selectors are kept to one or two classes so Divi's own design settings still win.
 */
.ysm-active { position: relative; overflow: hidden; }
.ysm-active > .ysm-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ysm-strip { display: flex; width: 100%; height: 100%; will-change: transform; }
.ysm-h .ysm-strip { flex-direction: row; }
.ysm-v .ysm-strip { flex-direction: column; }
.ysm-h.ysm-rev .ysm-strip { flex-direction: row-reverse; } /* the first row is at the right, the next ones come from the left */
.ysm-v.ysm-rev .ysm-strip { flex-direction: column-reverse; }
.ysm-track { overflow-x: clip; } /* a section sliding in from the side must not widen the page */
.ysm-panel { flex: 0 0 100%; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: auto; }
.ysm-align-top .ysm-panel { justify-content: flex-start; }
.ysm-align-bottom .ysm-panel { justify-content: flex-end; }
/* a row keeps its own width and centring inside its panel */
.ysm-panel > .et_pb_row, .ysm-panel > .et_pb_module { flex: 0 0 auto; }

.ysm-dots { position: absolute; z-index: 10; display: flex; gap: 8px; }
.ysm-h .ysm-dots { left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: row; }
.ysm-v .ysm-dots { right: 18px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.ysm-dot { width: 12px; height: 12px; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: #fff; mix-blend-mode: difference; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }
.ysm-dot[aria-current="true"] { background: currentColor; opacity: 1; transform: scale(1.15); }
.ysm-dot:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ysm-dot { transition: none; } }

.ysm-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
