/* The three parts of the writings pages that the shared files do not cover:
   the category row, the pagination and the poster that loads a video on click. */

.filters {
	margin-bottom: clamp(28px, 4vw, 48px);
}

.filters a {
	padding-block: 6px;
	text-decoration: none;
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
	transition: background-size var(--mid) var(--ease), color var(--fast) ease;
}

.filters a:hover {
	color: var(--bone);
}

.filters a[aria-current] {
	color: var(--bone);
	background-size: 100% 1px;
}

.pagination {
	margin-top: clamp(32px, 4vw, 56px);
}

.pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--bone-2);
	font-size: var(--t-small);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--fast) ease, color var(--fast) ease;
}

.pagination a.page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold-pale);
}

.pagination .page-numbers.current {
	border-color: var(--gold-soft);
	color: var(--gold);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Click to load: nothing is fetched from the video host until the button is pressed. */

.video button {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 14px;
	width: 100%;
	height: 100%;
	padding: 24px;
	text-align: center;
	isolation: isolate;
}

/* A veil over the still, so the label reads whatever was uploaded. */

.video button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(var(--scrim) / .55);
}

.video button img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .5;
}

.video__title {
	position: relative;
	z-index: 2;
	max-width: 24ch;
	color: var(--bone-2);
}

.video__go {
	position: relative;
	z-index: 2;
	font-size: 1.15rem;
	transition: color var(--fast) ease;
}

.video button:hover .video__go {
	color: var(--gold-pale);
}
