/* Page transition: three panels sweep over the screen (desktop only). */

.ap-page-fx {
	position: fixed;
	inset: 0;
	z-index: var(--ap-z-page-fx);
	pointer-events: none;
	visibility: hidden;
}

.ap-page-fx.is-cover,
.ap-page-fx.is-reveal,
.ap-page-fx.is-covered {
	visibility: visible;
}

.ap-page-fx__panel {
	position: absolute;
	inset: 0;
	transform: translateX(100%);
	border-top-left-radius: 40px;
	border-bottom-left-radius: 40px;
	transition: transform 0.9s var(--ap-ease-sweep), border-top-left-radius 0.9s var(--ap-ease-sweep), border-bottom-left-radius 0.9s var(--ap-ease-sweep);
}

.ap-page-fx__panel--1 {
	background: var(--ap-color-clay);
}

.ap-page-fx__panel--2 {
	background: var(--ap-color-sand);
}

.ap-page-fx__panel--3 {
	background: var(--ap-color-paper);
}

.ap-page-fx.is-covered .ap-page-fx__panel {
	transform: translateX(0);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	transition: none;
}

.ap-page-fx.is-cover .ap-page-fx__panel {
	transform: translateX(0);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.ap-page-fx.is-reveal .ap-page-fx__panel {
	transform: translateX(-100%);
}

.ap-page-fx.is-cover .ap-page-fx__panel--1,
.ap-page-fx.is-reveal .ap-page-fx__panel--1 {
	transition-delay: 0s;
}

.ap-page-fx.is-cover .ap-page-fx__panel--2,
.ap-page-fx.is-reveal .ap-page-fx__panel--2 {
	transition-delay: 0.14s;
}

.ap-page-fx.is-cover .ap-page-fx__panel--3,
.ap-page-fx.is-reveal .ap-page-fx__panel--3 {
	transition-delay: 0.28s;
}

/* Cover of the new page while it loads. */
html.ap-fx-arriving::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: var(--ap-z-arrive);
	background: var(--ap-color-paper);
	pointer-events: none;
	opacity: 1;
}

html.ap-fx-arriving.ap-fx-fade::before {
	opacity: 0;
	transition: opacity 1.2s ease;
}

@media (max-width: 820px) {
	.ap-page-fx {
		display: none;
	}

	html.ap-fx-arriving::before {
		display: none;
	}
}
