/*!
 * Wellmade Axis Pro - Dark Mode FX
 * While a reveal runs, the root view transition is a plain stack: no default
 * crossfade, the new theme above the old, so the clip or mask the script
 * animates on the new snapshot is the only thing that moves. Scoped to the
 * marker class the script sets, so other view transitions on the site keep
 * their own behavior.
 */
html.wma-darkfx-vt::view-transition-old(root),
html.wma-darkfx-vt::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

html.wma-darkfx-vt::view-transition-old(root) {
	z-index: 1;
}

html.wma-darkfx-vt::view-transition-new(root) {
	z-index: 2147483646;
}

/* Wipe: a diagonal gradient a little over two screens wide and tall. The
   script slides it from its transparent corner to its solid corner, which
   gives the pass its soft edge. At 220% the screen is fully transparent at the
   start and fully solid at the end with almost no idle travel on either side,
   so the pass fills the whole duration. It starts transparent, so nothing
   flashes before the first frame of the animation. */
html.wma-darkfx-vt-wipe::view-transition-new(root) {
	-webkit-mask-image: linear-gradient(to bottom right, #000 46%, transparent 54%);
	mask-image: linear-gradient(to bottom right, #000 46%, transparent 54%);
	-webkit-mask-size: 220% 220%;
	mask-size: 220% 220%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 100% 100%;
	mask-position: 100% 100%;
}

/* Circle, blinds and curtain start closed for the same reason. */
html.wma-darkfx-vt-circle::view-transition-new(root),
html.wma-darkfx-vt-blinds::view-transition-new(root),
html.wma-darkfx-vt-curtain::view-transition-new(root) {
	clip-path: inset(50%);
}
