/* Anthony Bell Design - project prev/next navigation. Direction: Studio Neutral. */

.abd-project-nav {
	--abd-ink: #1A1A1A;
	--abd-muted: #6B6B6B;
	--abd-accent-deep: #8A6D1F;
	--abd-line: #DEDEDE;
	--abd-font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	max-width: 1240px;
	margin: 64px auto 0;
	padding: 32px 32px 64px;
	border-top: 1px solid var(--abd-line);
	font-family: var(--abd-font-body);
}

.abd-project-nav__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.abd-project-nav__col {
	display: block;
}

.abd-project-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	max-width: 100%;
}

.abd-project-nav__link--prev {
	justify-self: start;
}

.abd-project-nav__link--all {
	justify-self: center;
}

.abd-project-nav__link--next {
	justify-self: end;
}

.abd-project-nav__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--abd-muted);
	transition: color 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.abd-project-nav__arrow {
	flex: 0 0 auto;
	font-size: 14px;
	line-height: 1;
	color: var(--abd-muted);
	transition: color 0.15s ease, transform 0.15s ease;
}

.abd-project-nav__link:hover .abd-project-nav__label,
.abd-project-nav__link:focus-visible .abd-project-nav__label,
.abd-project-nav__link:hover .abd-project-nav__arrow,
.abd-project-nav__link:focus-visible .abd-project-nav__arrow {
	color: var(--abd-accent-deep);
}

.abd-project-nav__link--prev:hover .abd-project-nav__arrow {
	transform: translateX(-4px);
}

.abd-project-nav__link--next:hover .abd-project-nav__arrow {
	transform: translateX(4px);
}

.abd-project-nav__link:focus-visible {
	outline: 2px solid var(--abd-ink);
	outline-offset: 6px;
}

@media (max-width: 640px) {
	.abd-project-nav {
		margin-top: 48px;
		padding: 24px 20px 48px;
	}

	.abd-project-nav__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 16px;
		text-align: center;
	}

	.abd-project-nav__link--all {
		order: 1;
	}

	.abd-project-nav__link--prev {
		order: 2;
		justify-self: center;
	}

	.abd-project-nav__link--next {
		order: 3;
		justify-self: center;
	}

	.abd-project-nav__label {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.abd-project-nav * {
		transition: none !important;
	}
}
