/* NeXgen Real Media – product page section and homepage video row (works with any theme; follows the NeXgen theme colour) */
.nxm{--nxm-accent:var(--nx-primary,#e4594f);--nxm-text:#18304b;--nxm-muted:#667487;--nxm-line:#e3e8ed;margin:28px 0;padding:22px 24px 24px;border:1px solid var(--nxm-line);border-radius:14px;background:#fff;box-shadow:0 6px 24px rgba(24,48,75,.05);color:var(--nxm-text);font-family:inherit}
.nxm *{box-sizing:border-box}
.nxm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}
.nxm-kicker{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--nxm-accent)}
.nxm-kicker i{width:7px;height:7px;border-radius:50%;background:var(--nxm-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--nxm-accent) 15%,transparent);animation:nxmPulse 1.8s infinite}
@keyframes nxmPulse{50%{box-shadow:0 0 0 7px rgba(228,89,79,0)}}
.nxm-head h2{margin:4px 0 2px;font-size:22px;font-weight:700;line-height:1.25;color:var(--nxm-text)}
.nxm-head p{margin:0;font-size:14px;color:var(--nxm-muted)}
.nxm-counts{display:flex;gap:8px;flex-wrap:wrap}
.nxm-counts span{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid var(--nxm-line);border-radius:999px;font-size:12.5px;font-weight:600;color:#40556b;background:#f8fafb;white-space:nowrap}
.nxm-counts i{color:var(--nxm-accent)}
.nxm-reels{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;margin-bottom:16px;scrollbar-width:thin}
.nxm-reel{position:relative;flex:0 0 186px;aspect-ratio:9/16;padding:0;border:0;border-radius:14px;overflow:hidden;background:#101c28;cursor:pointer;scroll-snap-align:start;text-align:left;color:#fff}
.nxm-reel>img,.nxm-reel>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nxm-reel-ph{position:absolute;inset:0;display:grid;place-items:center;font-size:38px;color:rgba(255,255,255,.9);background:linear-gradient(160deg,#27425e,#101c28)}
.nxm-reel-ph.nxm-instagram{background:linear-gradient(160deg,#f58529,#dd2a7b 50%,#515bd4)}
.nxm-reel-ph.nxm-facebook{background:linear-gradient(160deg,#1877f2,#0c3d80)}
.nxm-reel-ph.nxm-tiktok{background:linear-gradient(160deg,#25f4ee,#000 45%,#fe2c55)}
.nxm-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25) 0,transparent 30%,transparent 55%,rgba(0,0,0,.75))}
.nxm-play{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.92);color:var(--nxm-accent);font-size:16px;box-shadow:0 6px 18px rgba(0,0,0,.25);transition:transform .2s}
.nxm-play i{margin-left:3px}
.nxm-reel:hover .nxm-play{transform:scale(1.08)}
.nxm-tag{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:600;backdrop-filter:blur(4px)}
.nxm-cap{position:absolute;left:10px;right:10px;bottom:10px;font-size:12.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nxm-cap small{display:block;font-weight:400;opacity:.85;margin-top:2px}
.nxm-photos{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.nxm-photo{position:relative;aspect-ratio:1/1;padding:0;border:0;border-radius:10px;overflow:hidden;background:#eef2f5;cursor:zoom-in}
.nxm-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.nxm-photo:hover img{transform:scale(1.05)}
.nxm-photo .nxm-tag{font-size:10px;padding:2px 6px;left:6px;top:6px}
.nxm-photo.nxm-extra{display:none}
.nxm-more{position:absolute;inset:0;display:grid;place-items:center;background:rgba(16,28,40,.6);color:#fff;font-size:20px;font-weight:700}
/* viewer */
.nxm-viewer{--nxm-accent:var(--nx-primary,#e4594f);position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(8,14,20,.97);color:#fff}
.nxm-viewer[hidden]{display:none}
.nxm-v-top{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-size:13px;opacity:.9}
.nxm-v-close{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:18px}
.nxm-v-stage{display:flex;align-items:center;justify-content:center;width:min(92vw,1100px);height:calc(100vh - 170px)}
.nxm-v-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.nxm-v-stage video{max-width:100%;max-height:100%;border-radius:10px;background:#000}
.nxm-v-stage iframe{border:0;border-radius:10px;background:#000;width:min(100%,calc((100vh - 170px) * 16 / 9));aspect-ratio:16/9}
.nxm-v-stage.is-vertical iframe{width:auto;height:100%;aspect-ratio:9/16;max-width:100%}
.nxm-v-nav{position:absolute;top:50%;margin-top:-24px;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:18px}
.nxm-v-prev{left:16px}.nxm-v-next{right:16px}
.nxm-v-nav:disabled{opacity:.25}
.nxm-v-foot{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.6))}
.nxm-v-text{min-width:0;font-size:13.5px;line-height:1.4}
.nxm-v-text b{display:inline-block;margin-right:8px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.16);font-size:11.5px;font-weight:600}
.nxm-v-order{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border:0;border-radius:10px;background:var(--nxm-accent);color:#fff;font-size:14px;font-weight:700;box-shadow:0 8px 20px color-mix(in srgb,var(--nxm-accent) 35%,transparent);text-decoration:none}.nxm-v-order:hover{color:#fff;filter:brightness(1.05)}.nxm-v-order[hidden]{display:none}.nxm-v-order span{max-width:52vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.nxm-open{overflow:hidden}
.nxm-attention{animation:nxmAttn 1.5s ease}
@keyframes nxmAttn{0%,100%{box-shadow:none}30%,70%{box-shadow:0 0 0 5px rgba(228,89,79,.35)}}
@media (max-width:991px){.nxm-photos{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:767px){
.nxm{margin:18px 0;padding:16px 14px 16px;border-radius:12px}
.nxm-head{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:12px}
.nxm-head h2{font-size:19px}
.nxm-head p{font-size:13px}
.nxm-reels{gap:9px;margin:0 -14px 12px;padding:0 14px 4px}
.nxm-reel{flex-basis:42vw;max-width:190px;border-radius:12px}
.nxm-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.nxm-photo.nxm-extra,.nxm-photo:nth-child(n+7){display:none}
.nxm-v-stage{width:100vw;height:calc(100vh - 150px)}
.nxm-v-nav{display:none}
.nxm-v-foot{flex-direction:column;align-items:stretch}
.nxm-v-order{justify-content:center}
}

/* homepage: "Videos from happy parents" */
.nxm.nxm-home{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.nxm-home-wrap{margin-bottom:0}
.nxm-home-arrows{display:flex;gap:8px}
.nxm-home-arrows button{width:38px;height:38px;border:1px solid var(--nxm-line);border-radius:50%;background:#fff;color:var(--nxm-text);font-size:13px;transition:.15s}
.nxm-home-arrows button:hover:not(:disabled){border-color:var(--nxm-accent);color:var(--nxm-accent)}
.nxm-home-arrows button:disabled{opacity:.35}
.nxm-no-scroll .nxm-home-arrows{display:none}
.nxm-home-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 0 6px}
.nxm-home-track::-webkit-scrollbar{display:none}
.nxm-home-card{flex:0 0 206px;display:flex;flex-direction:column;gap:8px;scroll-snap-align:start;min-width:0}
.nxm-home-card .nxm-reel{flex:none;width:100%;box-shadow:0 8px 22px rgba(16,28,40,.12)}
.nxm-home-product{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--nxm-line);border-radius:10px;background:#fff;color:var(--nxm-text);text-decoration:none;min-width:0;transition:border-color .15s}
.nxm-home-product:hover{border-color:var(--nxm-accent);color:var(--nxm-text)}
.nxm-home-product img{flex:0 0 40px;width:40px;height:40px;border-radius:7px;object-fit:cover;background:#f3f5f7}
.nxm-home-product span{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.nxm-home-product b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nxm-home-product em{font-style:normal;font-size:13px;font-weight:800;color:var(--nxm-accent)}
.nxm-home-product s{font-size:11px;font-weight:400;color:var(--nxm-muted)}
@media (max-width:767px){
.nxm-home-arrows{display:none}
.nxm-home-track{gap:10px;margin:0 calc(var(--bs-gutter-x,1.5rem) * -.5);padding:2px calc(var(--bs-gutter-x,1.5rem) * .5) 6px;scroll-padding:0 calc(var(--bs-gutter-x,1.5rem) * .5)}
.nxm-home-card{flex-basis:40vw;max-width:180px}
.nxm-home-product{padding:5px;gap:6px}
.nxm-home-product img{flex-basis:34px;width:34px;height:34px}
.nxm-home-product b{font-size:12px}
}
