body {
	--stem: .08333333333em;
}

:root [class*="wp-block-"][class*="-pagination"] > * {
	margin: 0;
}

.wp-block-comments-pagination a,
.wp-block-query-pagination > :not([class*="numbers"]),
.wp-block-post-navigation-link {
	display: flex;
	gap: .666em;
}

.wp-block-query-pagination[class*="-justification-stretch"] > :not([class*="numbers"]):only-child {
	width: 100%;
}

.wp-block-comments-pagination a,
.wp-block-comments-pagination a .rich-text,
.wp-block-post-navigation-link,
.wp-block-post-navigation-link .rich-text,
.wp-block-query-pagination > :not([class*="numbers"]),
.wp-block-query-pagination > :not([class*="numbers"]) .rich-text {
	flex-shrink: 0;
	white-space: nowrap !important;
}

.wp-block-query-pagination > [class*="numbers"] {
	display: flex;
	flex-wrap: wrap;
	gap: max(8px, .1666em);
}

/*
 * Block: Post Navigation Link
 **/

.wp-block-post-navigation-link {
	position: relative;
}

:root .wp-block-post-navigation-link:empty {
	display: none;
}

.wp-block-post-navigation-link a:before {
	content: "";
	display: block;
	position: absolute;
		inset: 0;
	z-index: 1;
}

/*
 * Block: Query Navigation
 **/

/* Pseudo Arrows */

:root .is-arrow-arrow {
	-webkit-text-fill-color: transparent;
	margin: 0;
	min-width: calc( 8 * var( --stem ) );
	position: relative;
	width: 100%;
}

:root .is-arrow-arrow:before,
:root .is-arrow-arrow:after {
	background: currentColor;
	content: "";
	display: block;
	position: absolute;
		top: 50%;
	transform: translateY( -50% );
}

:root .is-arrow-arrow:before {
	height: var( --stem );
	left: var( --stem );
	right: 0;
}

:root .is-arrow-arrow:after {
	height: .75em;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	width: .4166666667em;
}

:root .is-arrow-arrow[class*="next"]:after {
	mask-image: url("data:image/svg+xml,%3Csvg width='10' height='19' viewBox='0 0 10 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2.49854H4V4.49854H6V6.49854H8V8.49854H10V10.4985H8V12.4985H6V14.4985H4V16.4985H2V18.4985H0V0.498535H2V2.49854Z' fill='black'/%3E%3C/svg%3E%0A");
	right: 0;
}

:root .is-arrow-arrow[class*="previous"]:after {
	mask-image: url("data:image/svg+xml,%3Csvg width='10' height='19' viewBox='0 0 10 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2.49854H6V4.49854H4V6.49854H2V8.49854H0V10.4985H2V12.4985H4V14.4985H6V16.4985H8V18.4985H10V0.498535H8V2.49854Z' fill='black'/%3E%3C/svg%3E%0A");
	left: 0;
}