/* YADIM Before / After. The corners, border and shadow come from the module's own Border and Box Shadow groups (the pictures follow the module's corners); the labels' fonts from the Design tab. */
.ba { position: relative; width: 100%; border-radius: inherit; }
.ba-frame { position: relative; overflow: hidden; border-radius: inherit; width: 100%; aspect-ratio: var(--ba-ar, 16 / 9); background: #e5e7eb; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-v .ba-frame { touch-action: pan-x; }
.ba.is-dragging .ba-frame { touch-action: none; cursor: grabbing; }
.ba-trigger-drag .ba-frame, .ba-trigger-click .ba-frame { cursor: ew-resize; } .ba-v.ba-trigger-drag .ba-frame, .ba-v.ba-trigger-click .ba-frame { cursor: ns-resize; }
.ba-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ba-focus, 50% 50%); pointer-events: none; }
.ba-trigger-hover .ba-before, .ba-trigger-hover .ba-handle { will-change: clip-path, left, top; }
.ba-h .ba-before { clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); }
.ba-v .ba-before { clip-path: inset(0 0 calc(100% - var(--ba-pos, 50%)) 0); }
.ba-label { position: absolute; z-index: 2; padding: .3em .8em; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 1.3; pointer-events: none; }
.ba-h.ba-lp-top .ba-label { top: 14px; } .ba-h.ba-lp-bottom .ba-label { bottom: 14px; } .ba-h.ba-lp-center .ba-label { top: 50%; transform: translateY(-50%); }
.ba-h .ba-label-before { left: 14px; } .ba-h .ba-label-after { right: 14px; }
.ba-v .ba-label { left: 14px; } .ba-v .ba-label-before { top: 14px; } .ba-v .ba-label-after { bottom: 14px; }
.ba-v.ba-lp-bottom .ba-label { left: auto; right: 14px; } .ba-v.ba-lp-center .ba-label { left: 50%; transform: translateX(-50%); }
.ba-divider { position: absolute; z-index: 3; pointer-events: none; }
.ba-h .ba-divider { top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 0; } .ba-v .ba-divider { left: 0; right: 0; top: var(--ba-pos, 50%); height: 0; }
.ba-line { position: absolute; background: var(--ba-lc, #fff); box-shadow: 0 0 var(--ba-glow, 0) var(--ba-lc, #fff); }
.ba-shadow .ba-line { box-shadow: 0 0 var(--ba-glow, 0) var(--ba-lc, #fff), 0 0 6px rgba(0, 0, 0, .4); }
.ba-h .ba-line { top: 0; bottom: 0; left: calc(var(--ba-line, 3px) / -2); width: var(--ba-line, 3px); } .ba-v .ba-line { left: 0; right: 0; top: calc(var(--ba-line, 3px) / -2); height: var(--ba-line, 3px); }
.ba-handle { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: auto; touch-action: none; cursor: inherit; outline: none; }
.ba-h .ba-handle { top: 50%; left: 0; width: var(--ba-handle, 48px); height: var(--ba-handle, 48px); transform: translate(-50%, -50%); } .ba-v .ba-handle { left: 50%; top: 0; width: var(--ba-handle, 48px); height: var(--ba-handle, 48px); transform: translate(-50%, -50%); }
.ba-handle-none .ba-handle { opacity: 0; }
.ba-knob { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ba-hbg, #fff); color: var(--ba-hicon, #1d2327); border-radius: 50%; transition: transform .15s ease; }
.ba-shadow .ba-knob { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.ba-handle-square .ba-knob { border-radius: 12px; }
.ba-handle-bar .ba-knob { border-radius: 8px; } .ba-h.ba-handle-bar .ba-knob { width: 40%; height: 150%; } .ba-v.ba-handle-bar .ba-knob { width: 150%; height: 40%; }
.ba-v .ba-icon { transform: rotate(90deg); }
.ba-icon { width: 50%; height: 50%; }
.ba-handle:hover .ba-knob, .ba.is-dragging .ba-knob { transform: scale(1.08); }
.ba-handle:focus-visible .ba-knob { outline: 3px solid #2a7de1; outline-offset: 3px; }
.ba-handle-none .ba-handle:focus-visible { opacity: 1; outline: 3px solid #2a7de1; border-radius: 50%; }

/* vertical labels: the letters stand upright and read from the bottom to the top */
.ba-ld-vertical .ba-label { writing-mode: vertical-rl; padding: .8em .3em; transform: rotate(180deg); }
.ba-ld-vertical.ba-h.ba-lp-center .ba-label { transform: translateY(-50%) rotate(180deg); }
.ba-ld-vertical.ba-v.ba-lp-center .ba-label { transform: translateX(-50%) rotate(180deg); }

/* shaped dividers (the script draws the edge into the svg and clips the picture): angled, chevron, fluid, curtain */
.ba-shaped .ba-line { display: none; }
.ba-shaped.ba-h .ba-divider, .ba-shaped.ba-v .ba-divider { inset: 0; width: auto; height: auto; }
.ba-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 var(--ba-glow, 0px) var(--ba-lc, #fff)); }
.ba-shadow .ba-edge { filter: drop-shadow(0 0 var(--ba-glow, 0px) var(--ba-lc, #fff)) drop-shadow(0 0 3px rgba(0, 0, 0, .45)); }
.ba-edge polyline { fill: none; stroke: var(--ba-lc, #fff); stroke-width: var(--ba-line, 3px); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ba-shaped:not(.ba-shape-curtain):not(.ba-mode-fan) .ba-edge polyline + polyline { display: none; }
.ba-shaped.ba-h .ba-handle, .ba-shaped.ba-v .ba-handle { left: var(--ba-hx, 50%); top: var(--ba-hy, 50%); }
.ba-shaped.ba-shape-curtain .ba-after { z-index: 1; }
.ba-shaped.ba-shape-curtain .ba-label-after { right: auto; left: 50%; transform: translateX(-50%); }
.ba-shaped.ba-shape-curtain.ba-v .ba-label-after { left: 14px; top: auto; bottom: 14px; transform: none; }
.ba-shaped.ba-shape-curtain.ba-ld-vertical .ba-label-after { transform: translateX(-50%) rotate(180deg); }
.ba-shaped.ba-shape-curtain.ba-v.ba-ld-vertical .ba-label-after { transform: rotate(180deg); }

/* custom handle: your own text, emoji or Divi icon; a longer word widens the handle */
.ba-custom { padding: 0 .35em; font-size: calc(var(--ba-handle, 48px) * .38); font-weight: 700; line-height: 1; white-space: nowrap; }
.ba-custom-et { font-family: ETmodules, sans-serif; font-weight: 400; font-style: normal; font-variant: normal; text-transform: none; speak: none; font-size: calc(var(--ba-handle, 48px) * .5); }
.ba-handle-custom .ba-handle { width: auto; min-width: var(--ba-handle, 48px); }
.ba-handle-custom .ba-knob { width: auto; min-width: 100%; }
.ba-handle-circle.ba-handle-custom .ba-knob { border-radius: 999px; }
.ba.ba-handle-bar.ba-handle-custom .ba-knob { width: auto; min-width: 40%; }

/* the clock hand and the two lines: the after picture is the one that is cut to the swept part, so it lies on top; the pin sits in the centre */
.ba-mode-clock .ba-after, .ba-mode-fan .ba-after { z-index: 1; }
.ba.ba-mode-clock:not(.is-dragging) .ba-frame, .ba.ba-mode-fan:not(.is-dragging) .ba-frame { cursor: grab; }
.ba-pivot { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(var(--ba-line, 3px) * 3 + 6px); height: calc(var(--ba-line, 3px) * 3 + 6px); border-radius: 50%; background: var(--ba-lc, #fff); transform: translate(-50%, -50%); pointer-events: none; }
.ba-shadow .ba-pivot { box-shadow: 0 0 var(--ba-glow, 0) var(--ba-lc, #fff), 0 0 6px rgba(0, 0, 0, .4); }

/* the soft divider: layers the script puts round the edge (copies of the top picture that fade in, or panes that blur what is behind them) */
.ba-soft-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.ba-soft-blur { z-index: 1; }
.ba-mode-clock .ba-soft-layer, .ba-mode-fan .ba-soft-layer, .ba-shape-curtain .ba-soft-layer { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ba-knob { transition: none; } }
