/* YADIM Interactive Media Orbit. Without JavaScript, or with reduced motion, the items are a plain grid; .mo-ready turns the list into a 3D scene. */
.yadim-mo { --mo-is: 150px; --mo-persp: 1300px; --mo-r: 14px; --mo-hs: 1.15; --mo-hl: 80px; --mo-dim: .3; --mo-oc: #0b0d12; position: relative; display: block; max-width: 100%; box-sizing: border-box; }
.yadim-mo *, .yadim-mo *::before, .yadim-mo *::after { box-sizing: border-box; }
.yadim-mo .mo-stage { position: relative; }
/* the height of the scene is the module's own Height / Min height (Design > Sizing): the module and the scene fill it */
.yadim_module:has(.yadim-mo), .yadim_module *:has(.yadim-mo) { display: flex; flex-direction: column; }
.yadim_module *:has(.yadim-mo) { flex: 1 1 auto; min-height: 0; } /* Divi 5 can put wrappers between the module and the orbit: they carry the height down too */
.yadim-mo { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.yadim-mo .mo-stage { flex: 1 1 auto; }
.yadim-mo .mo-list { list-style: none; margin: 0; padding: 0; }
.yadim-mo .mo-item { margin: 0; padding: 0; list-style: none; }

/* the grid: before the script runs, and for visitors who asked for less motion */
.yadim-mo:not(.mo-ready) .mo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--mo-is) * .8)), 1fr)); gap: 16px; align-items: start; }

/* an item */
.yadim-mo .mo-card { display: block; position: relative; width: 100%; aspect-ratio: var(--mo-ar, 4 / 3); margin: 0; padding: 0; border: 0; border-radius: var(--mo-r); overflow: hidden; background: #1d2330; color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); -webkit-tap-highlight-color: transparent; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.yadim-mo .mo-card.mo-static { cursor: default; }
.yadim-mo .mo-sh-l { --mo-ar: 4 / 3; }
.yadim-mo .mo-sh-p { --mo-ar: 3 / 4; }
.yadim-mo .mo-sh-s { --mo-ar: 1 / 1; }
.yadim-mo .mo-sh-w { --mo-ar: 16 / 9; }
.yadim-mo .mo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.yadim-mo .mo-ph { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--mo-hue, 220) 70% 48%), hsl(calc(var(--mo-hue, 220) + 55) 70% 28%)); }
.yadim-mo .mo-h0 { --mo-hue: 220; } .yadim-mo .mo-h1 { --mo-hue: 285; } .yadim-mo .mo-h2 { --mo-hue: 330; } .yadim-mo .mo-h3 { --mo-hue: 12; }
.yadim-mo .mo-h4 { --mo-hue: 38; } .yadim-mo .mo-h5 { --mo-hue: 160; } .yadim-mo .mo-h6 { --mo-hue: 190; } .yadim-mo .mo-h7 { --mo-hue: 250; }
.yadim-mo .mo-badge { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .5); pointer-events: none; }
.yadim-mo .mo-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 28px 14px 12px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); pointer-events: none; transition: opacity .3s, transform .3s; }
.yadim-mo .mo-title { font-size: 15px; font-weight: 600; line-height: 1.25; }
.yadim-mo .mo-text { font-size: 12.5px; line-height: 1.3; opacity: .85; }
.yadim-mo.mo-cap-never .mo-cap { display: none; }
.yadim-mo.mo-cap-hover .mo-cap { opacity: 0; transform: translateY(6px); }
.yadim-mo.mo-cap-hover .mo-card:hover .mo-cap, .yadim-mo.mo-cap-hover .mo-card:focus-visible .mo-cap, .yadim-mo.mo-cap-hover .is-hot .mo-cap, .yadim-mo.mo-cap-hover .mo-noimg .mo-cap { opacity: 1; transform: none; }
.yadim-mo:not(.mo-ready) .mo-cap { opacity: 1; transform: none; }
.yadim-mo .mo-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(42, 125, 225, .9), 0 18px 40px -16px rgba(0, 0, 0, .55); }
.yadim-mo .mo-card:hover, .yadim-mo .is-hot .mo-card { box-shadow: 0 26px 50px -16px rgba(0, 0, 0, .65); }

/* the scene */
.yadim-mo.mo-ready .mo-stage { flex: 1 1 auto; min-height: 320px; perspective: var(--mo-persp); perspective-origin: 50% 50%; overflow: hidden; overflow: clip; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.yadim-mo.mo-ready.mo-drag .mo-stage { cursor: grab; }
.yadim-mo.mo-ready.is-dragging .mo-stage, .yadim-mo.mo-ready.is-dragging .mo-card { cursor: grabbing; }
.yadim-mo.mo-ready .mo-list { position: absolute; inset: 0; z-index: 1; display: block; transform-style: preserve-3d; will-change: transform; }
.yadim-mo.mo-ready .mo-item { position: absolute; left: 50%; top: 50%; width: calc(var(--mo-is) * var(--k, 1)); transform-style: preserve-3d; }
.yadim-mo.mo-ready .mo-bb { transform-style: preserve-3d; transform: var(--mo-bb, none); will-change: transform; }
.yadim-mo.mo-ready .mo-float { transform-style: preserve-3d; animation: mo-float var(--fd, 8s) ease-in-out var(--fp, 0s) infinite alternate; }
.yadim-mo.mo-ready.mo-nofloat .mo-float, .yadim-mo.mo-still .mo-float { animation: none; }
.yadim-mo.mo-ready.is-paused .mo-float { animation-play-state: paused; }
@keyframes mo-float { from { transform: translate3d(calc(var(--fx, 0px) * -1), calc(var(--fy, 0px) * -1), 0) scale(calc(1 - var(--mo-bre, 0))); } to { transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) scale(calc(1 + var(--mo-bre, 0))); } }

/* Orbit from the centre: the script moves every item along its journey and sets --mo-o (opacity) and --mo-f (blur) on it. Opacity and blur are on the card, the last
   element of the item, because they would flatten the 3D scene on any element above it. */
.yadim-mo.mo-ready.mo-l-centre .mo-card, .yadim-mo.mo-ready.mo-l-planets .mo-card { opacity: var(--mo-o, 1); filter: var(--mo-f, none); }
.yadim-mo.mo-ready.mo-l-centre .mo-item.is-gone, .yadim-mo.mo-ready.mo-l-planets .mo-item.is-gone { pointer-events: none; }
.yadim-mo.mo-ready.mo-l-centre.has-hot .mo-item:not(.is-hot) .mo-card, .yadim-mo.mo-ready.mo-l-planets.has-hot .mo-item:not(.is-hot) .mo-card { filter: var(--mo-f, brightness(1)) brightness(calc(1 - var(--mo-dim))); }

/* zoom in where it is: the item grows and steps forward, the others dim; the floating and breathing go on */
.yadim-mo.mo-ready .is-zoomed .mo-card { transform: translate(var(--mo-zx, 0px), var(--mo-zy, 0px)) translateZ(240px) scale(var(--mo-zs, 2.2)); box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .7); cursor: zoom-out; }
.yadim-mo.mo-ready .is-zoomed .mo-card::after { opacity: 0; }
.yadim-mo.mo-ready .is-zoomed .mo-cap { opacity: 1; transform: none; }
.yadim-mo.mo-ready.has-zoom .mo-item:not(.is-zoomed) .mo-card { filter: brightness(.55); }
.yadim-mo.mo-ready.mo-l-centre.has-zoom .mo-item:not(.is-zoomed) .mo-card, .yadim-mo.mo-ready.mo-l-planets.has-zoom .mo-item:not(.is-zoomed) .mo-card { filter: var(--mo-f, brightness(1)) brightness(.55); }
.yadim-mo.mo-ready.has-zoom .mo-item.is-zoomed { z-index: 2; }
.yadim-mo:not(.mo-ready) .is-zoomed .mo-card { transform: scale(1.4); position: relative; z-index: 3; }

/* videos that play by themselves sit over the picture and fade in once they run */
.yadim-mo .mo-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; max-width: none; pointer-events: none; opacity: 0; transition: opacity .6s; }
.yadim-mo .has-vid .mo-vid { opacity: 1; }
.yadim-mo .has-vid .mo-badge { display: none; }
.yadim-mo .mo-vid-f { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.34); }
.yadim-mo .mo-sh-s .mo-vid-f { transform: translate(-50%, -50%) scale(1.78); }
.yadim-mo .mo-sh-p .mo-vid-f { transform: translate(-50%, -50%) scale(2.37); }
.yadim-mo .mo-sh-w .mo-vid-f { transform: translate(-50%, -50%); }

/* line effects: circles of a decorative SVG behind the items, each turning at its own speed */
.yadim-mo .mo-fx { display: none; }
.yadim-mo.mo-ready .mo-fx { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--mo-fxc, #7f9cff); opacity: var(--mo-fxo, .45); overflow: hidden; }
.yadim-mo .mo-fx svg { display: block; width: 100%; height: 100%; }
.yadim-mo .mo-fx-c { vector-effect: non-scaling-stroke; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: mo-fx-spin calc(var(--mo-fxd, 90s) * var(--f, 1)) linear infinite; }
.yadim-mo .mo-fx-c:nth-child(6n + 1) { --f: 1; } .yadim-mo .mo-fx-c:nth-child(6n + 2) { --f: .62; animation-direction: reverse; } .yadim-mo .mo-fx-c:nth-child(6n + 3) { --f: 1.7; }
.yadim-mo .mo-fx-c:nth-child(6n + 4) { --f: .45; animation-direction: reverse; } .yadim-mo .mo-fx-c:nth-child(6n + 5) { --f: 1.25; } .yadim-mo .mo-fx-c:nth-child(6n) { --f: .8; animation-direction: reverse; }
@keyframes mo-fx-spin { to { transform: rotate(360deg); } }

/* depth shading, and hover: the item steps forward and grows, the others darken. The script marks the item under the pointer (.is-hot): the browser's own :hover does not reach an item inside the turned 3D scene reliably. */
.yadim-mo.mo-ready .mo-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--md, 0); pointer-events: none; }
.yadim-mo.mo-ready .is-hot .mo-card::after, .yadim-mo.mo-ready .mo-card:focus-visible::after { opacity: 0; }
.yadim-mo.mo-ready .is-hot .mo-card, .yadim-mo.mo-ready .mo-card:focus-visible { transform: translateZ(var(--mo-hl)) scale(var(--mo-hs)); }
.yadim-mo:not(.mo-ready) .mo-card:hover { transform: scale(1.03); }
.yadim-mo.mo-ready.has-hot .mo-item:not(.is-hot) .mo-card { filter: brightness(calc(1 - var(--mo-dim))); }

/* hover effects (all off unless chosen: the markup carries .mo-hf and one .mo-hf-<effect> class per effect that is on). The look is set by custom properties --mo-h*; the script marks the
   item under the pointer (.is-hot) and, for the effects that follow the pointer, writes its position (--mo-nx, --mo-ny, --mo-hzx, --mo-hzy) and the push and tilt on .mo-bb. */
.yadim-mo.mo-hf .mo-card { transition: transform var(--mo-ht, 450ms) var(--mo-he, ease), box-shadow var(--mo-ht, 450ms) var(--mo-he, ease), clip-path var(--mo-ht, 450ms) var(--mo-he, ease), aspect-ratio var(--mo-ht, 450ms) var(--mo-he, ease); }
.yadim-mo.mo-hf .mo-hl { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.yadim-mo.mo-hf .mo-hl::before, .yadim-mo.mo-hf .mo-hl::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
/* picture zoom: the picture grows inside its frame, and slides so that the part under the pointer stays in view */
.yadim-mo.mo-hf-zoom .mo-img { transition: transform var(--mo-ht, 450ms) var(--mo-he, ease); }
.yadim-mo.mo-hf-zoom .is-hot .mo-img, .yadim-mo.mo-hf-zoom .mo-card:focus-visible .mo-img { transform: translate(var(--mo-hzx, 0%), var(--mo-hzy, 0%)) scale(var(--mo-hza, 1.25)); }
/* 3D tilt and elastic push: both move the billboard of the item, in the plane facing the visitor */
.yadim-mo.mo-ready.mo-hf-tilt .mo-bb, .yadim-mo.mo-ready.mo-hf-push .mo-bb { transform: var(--mo-bb, none) translate(var(--mo-pushx, 0px), var(--mo-pushy, 0px)) rotateX(var(--mo-rx, 0deg)) rotateY(var(--mo-ry, 0deg)); }
/* item form and shape morph: the items are clipped to a polygon of 48 points (--mo-cp at rest, --mo-hcp when hovered), so any form can morph into any other */
.yadim-mo.mo-clip .mo-card { clip-path: var(--mo-cp); }
.yadim-mo.mo-fm-sq .mo-item { --mo-ar: 1 / 1; }
.yadim-mo.mo-fm-sq .mo-vid-f { transform: translate(-50%, -50%) scale(1.78); }
.yadim-mo.mo-clip .mo-card:focus-visible { outline-offset: -6px; }
.yadim-mo.mo-hf-shape .is-hot .mo-card, .yadim-mo.mo-hf-shape .mo-card:focus-visible { clip-path: var(--mo-hcp); aspect-ratio: var(--mo-har, var(--mo-ar, 4 / 3)); }
/* glass shine: a band of light crosses the item (sweep), or a soft spot of light follows the pointer (glare) */
.yadim-mo.mo-hf-shine .mo-hl::before { background: linear-gradient(var(--mo-hsa, 110deg), transparent calc(50% - var(--mo-hsw, 36%) / 2), color-mix(in srgb, var(--mo-hsc, #fff) 45%, transparent) calc(50% - var(--mo-hsw, 36%) / 8), var(--mo-hsc, #fff) 50%, color-mix(in srgb, var(--mo-hsc, #fff) 45%, transparent) calc(50% + var(--mo-hsw, 36%) / 8), transparent calc(50% + var(--mo-hsw, 36%) / 2)); opacity: 0; transform: translateX(-75%); transition: opacity .2s, transform 0s .2s; }
.yadim-mo.mo-hf-shine .is-hot .mo-hl::before, .yadim-mo.mo-hf-shine .mo-card:focus-visible .mo-hl::before { opacity: var(--mo-hss, .55); transform: translateX(75%); transition: opacity .15s, transform var(--mo-hst, 900ms) cubic-bezier(.3, .6, .3, 1); }
.yadim-mo.mo-hs-glare .mo-hl::before { background: radial-gradient(circle at var(--mo-nx, 50%) var(--mo-ny, 50%), var(--mo-hsc, #fff), transparent var(--mo-hsw, 36%)); transform: none; transition: opacity var(--mo-ht, 450ms) var(--mo-he, ease); }
.yadim-mo.mo-hs-glare .is-hot .mo-hl::before, .yadim-mo.mo-hs-glare .mo-card:focus-visible .mo-hl::before { transform: none; transition: opacity var(--mo-ht, 450ms) var(--mo-he, ease); }
/* inner shadow depth */
.yadim-mo.mo-hf-depth .mo-hl::after { opacity: 0; transition: opacity var(--mo-ht, 450ms) var(--mo-he, ease); --mo-hdk: color-mix(in srgb, var(--mo-hdc, #000) calc(var(--mo-hds, 55) * 1%), transparent); box-shadow: inset 0 0 28px 6px var(--mo-hdk); }
.yadim-mo.mo-hd-bevel .mo-hl::after { box-shadow: inset 0 3px 5px rgba(255, 255, 255, .4), inset 0 -12px 24px -4px var(--mo-hdk); }
.yadim-mo.mo-hd-well .mo-hl::after { box-shadow: inset 0 14px 30px -2px var(--mo-hdk), inset 0 0 0 2px color-mix(in srgb, var(--mo-hdc, #000) calc(var(--mo-hds, 55) * .4%), transparent); }
.yadim-mo.mo-hf-depth .is-hot .mo-hl::after, .yadim-mo.mo-hf-depth .mo-card:focus-visible .mo-hl::after { opacity: 1; }
/* glow */
.yadim-mo.mo-hf-glow .is-hot .mo-card, .yadim-mo.mo-hf-glow .mo-card:focus-visible { box-shadow: 0 0 var(--mo-hgs, 40px) calc(var(--mo-hgs, 40px) / 4) color-mix(in srgb, var(--mo-hgc, #7f9cff) 70%, transparent), 0 26px 50px -16px rgba(0, 0, 0, .65); }
/* colour at rest: washed out until hovered */
.yadim-mo.mo-hf-wash .mo-img { filter: saturate(var(--mo-hsat, 1)); transition: filter var(--mo-ht, 450ms) var(--mo-he, ease); }
.yadim-mo.mo-hf-wash .is-hot .mo-img, .yadim-mo.mo-hf-wash .mo-card:focus-visible .mo-img { filter: saturate(1); }
/* water-drop ripple: rings spread from the point where the pointer arrived (the script adds .mo-drop to the layer) */
.yadim-mo .mo-drop { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: calc(var(--mo-hrs, 140%) * var(--s, 1)); aspect-ratio: 1; margin: 0; translate: -50% -50%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mo-hrc, #fff) 85%, transparent); background: radial-gradient(circle, transparent 58%, color-mix(in srgb, var(--mo-hrc, #fff) 22%, transparent) 72%, transparent 74%); box-shadow: inset 0 0 14px color-mix(in srgb, var(--mo-hrc, #fff) 45%, transparent), 0 0 10px color-mix(in srgb, var(--mo-hrc, #fff) 35%, transparent); opacity: 0; transform: scale(0); animation: mo-drop var(--mo-hrt, 1400ms) cubic-bezier(.15, .6, .3, 1) var(--d, 0ms) both; pointer-events: none; }
@keyframes mo-drop { 0% { transform: scale(0); opacity: .95; } 70% { opacity: .35; } 100% { transform: scale(1); opacity: 0; } }

/* overlays: a glow behind the items, a vignette in front */
.yadim-mo.mo-ready .mo-stage::before, .yadim-mo.mo-ready .mo-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.yadim-mo.mo-ov-glow .mo-stage::before { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mo-oc) 55%, transparent), transparent 62%); }
.yadim-mo.mo-ov-vignette .mo-stage::after { z-index: 2; background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--mo-oc) 100%); }

/* devices: the values of the tablet and phone are read here (a custom property cannot be redefined next to the rule that sets it) */
@media (max-width: 980px) {
  .yadim-mo.mo-ready .mo-item { width: calc(var(--mo-is-t, var(--mo-is)) * var(--k, 1)); }
}
@media (max-width: 767px) {
  .yadim-mo.mo-ready .mo-item { width: calc(var(--mo-is-m, var(--mo-is)) * var(--k, 1)); }
  .yadim-mo:not(.mo-ready) .mo-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (hover: none) { .yadim-mo.mo-cap-hover .mo-cap { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .yadim-mo .mo-float, .yadim-mo .mo-fx-c { animation: none !important; }
  .yadim-mo .mo-card, .yadim-mo .mo-cap { transition: none; }
  /* hover effects: only the ones that do not move stay (the shape, the inner shadow, the glow, the colour); they change at once */
  .yadim-mo.mo-hf .mo-card, .yadim-mo.mo-hf .mo-img, .yadim-mo.mo-hf .mo-hl::after { transition: none; }
  .yadim-mo.mo-hf-zoom .is-hot .mo-img, .yadim-mo.mo-hf-zoom .mo-card:focus-visible .mo-img { transform: none; }
  .yadim-mo .mo-hl::before, .yadim-mo .mo-drop { display: none; }
  .yadim-mo.mo-ready.mo-hf-tilt .mo-bb, .yadim-mo.mo-ready.mo-hf-push .mo-bb { transform: var(--mo-bb, none); }
}
/* a hidden source entry of a nested module (the parent prints the real item) */
.yadim-mo .mo-src, .mo-src[hidden] { display: none !important; }
