.comment-navigation,
.posts-navigation,
.post-navigation {
	overflow: hidden;
	margin-top: 3.2em;
	margin-bottom: 3.5em;

	.nav-links {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-direction: column;
		@media (min-width: 480px) {
			flex-direction: row;
		}
	}
	.nav-previous {
		> a {
			display: inline-block;
			vertical-align: middle;
			text-decoration: none;
			white-space: nowrap;

			&:before {
				font-size: 20px;
				content: '\f0d9';
				vertical-align: initial;
				margin-right: 4px;

				@include font-awesome-icon();
			}
		}
	}
	.nav-next {
		> a {
			display: inline-block;
			vertical-align: top;
			text-decoration: none;

			&:after {
				font-size: 20px;
				content: '\f0da';
				vertical-align: initial;
				margin-left: 4px;

				@include font-awesome-icon();
			}
		}
	}
}

.pagination {
	margin: 2em 0;
	.card-columns + & {
		margin-top: 0;
	}
}

.page-numbers {
	height: 46px;
	line-height: 46px;
	display: inline-block;
	margin: 0 10px 5px 0;
	text-align: center;
	text-decoration: none;

	&.dots {
		min-width: 1em;
		border: none;
		background-color: transparent;
	}

	&.next,
	&.prev {
		min-width: 46px;
		height: 46px;
		line-height: 46px;
		border-radius: 50%;
		position: relative;
		border: 1px solid;

		i {
			position: relative;
			right: -2px;
			top: -1px;
		}
	}

	&.prev {
		i {
			right: auto;
			left: -2px;
		}
	}

	&.next {
		margin-left: 25px;
	}
	&.prev {
		margin-right: 25px;
	}
}

.page-links {
	clear: both;
	margin: 0 0 1em;

	&__title {
		margin-right: 5px;
	}

	a,
	> .page-links__item {
		line-height: 3;
		display: inline-block;
		min-width: 3em;
		height: 3em;
		margin: 0 5px 5px 0;
		text-align: center;
		border: 1px solid $color__background-hr;
	}

	a {
		text-decoration: none;
	}
}