/* Gallery pagination: three stories per page. */
.msf-gallery-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	padding: 0.85rem 1rem;
	border: 1px solid rgba(14, 35, 56, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(14, 35, 56, 0.05);
}

.msf-gallery-pagination__status {
	color: var(--msf-muted, #63717d);
	font-size: 0.72rem;
	font-weight: 600;
}

.msf-gallery-pagination__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
}

.msf-gallery-pagination .page-numbers {
	display: inline-grid;
	min-width: 38px;
	height: 38px;
	place-items: center;
	padding: 0 0.72rem;
	border: 1px solid rgba(14, 35, 56, 0.1);
	border-radius: 999px;
	background: var(--msf-light, #f4f8fa);
	color: var(--msf-navy, #0e2338);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.msf-gallery-pagination a.page-numbers:hover,
.msf-gallery-pagination a.page-numbers:focus-visible {
	outline: none;
	border-color: rgba(137, 184, 43, 0.65);
	background: rgba(137, 184, 43, 0.14);
	color: var(--msf-green-dark, #5e8116);
	transform: translateY(-1px);
}

.msf-gallery-pagination .page-numbers.current {
	border-color: var(--msf-navy, #0e2338);
	background: var(--msf-navy, #0e2338);
	color: #fff;
}

.msf-gallery-pagination .page-numbers.dots {
	min-width: 24px;
	padding-inline: 0.25rem;
	border-color: transparent;
	background: transparent;
}

@media (max-width: 700px) {
	.msf-gallery-pagination {
		align-items: flex-start;
		flex-direction: column;
	}

	.msf-gallery-pagination__links {
		width: 100%;
		justify-content: flex-start;
	}

	.msf-gallery-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding-inline: 0.62rem;
	}
}
