.ax-gallery-progress {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
	text-align: center;
}

.ax-gallery-progress__status {
	color: var(--ax-ink-soft);
	font-size: 0.95rem;
	margin: 0;
}

.ax-gallery-progress__button {
	background: var(--ax-rose);
	border: 1px solid var(--ax-rose);
	border-radius: 999px;
	color: var(--ax-paper);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	letter-spacing: 0.01em;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ax-gallery-progress__button:hover {
	background: var(--ax-rose-dark);
	border-color: var(--ax-rose-dark);
	box-shadow: 0 10px 26px rgba(55, 40, 34, 0.12);
	transform: translateY(-1px);
}

.ax-gallery-progress__button:focus-visible {
	outline: 3px solid var(--ax-gold);
	outline-offset: 3px;
}

.ax-gallery-progress__button:disabled {
	box-shadow: none;
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.ax-gallery-progress[aria-busy="true"] .ax-gallery-progress__status {
	opacity: 0.78;
}

.ax-gallery > .wp-block-image {
	display: block !important;
	margin: 0 !important;
	max-width: none !important;
	min-width: 0;
	width: 100% !important;
}

.ax-gallery > .wp-block-image[hidden] {
	display: none !important;
}

.ax-gallery > .wp-block-image > a {
	display: block;
	height: 100%;
	width: 100%;
}

.ax-gallery > .wp-block-image img {
	height: auto;
	max-width: none;
	width: 100%;
}

.ax-gallery.ax-gallery--single {
	margin-inline: auto;
	max-width: 48rem;
	width: 100%;
}

.ax-section--gallery-nav .wp-block-buttons {
	justify-content: center;
}

.ax-gallery-switcher {
	border-top: 1px solid var(--ax-line);
	text-align: center;
}

.ax-gallery-switcher__title {
	color: var(--ax-ink);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(1.35rem, 1.2rem + 0.45vw, 1.7rem);
	margin: 0 0 1rem;
}

.ax-gallery-switcher__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ax-gallery-switcher__nav li {
	display: flex;
	flex: 0 1 16rem;
	margin: 0;
}

.ax-gallery-switcher__nav a {
	align-items: center;
	background: var(--ax-paper);
	border: 1px solid var(--ax-line);
	border-radius: 999px;
	color: var(--ax-ink);
	display: inline-flex;
	font-weight: 650;
	justify-content: center;
	min-height: 3rem;
	padding: 0.65rem 1rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 100%;
}

.ax-gallery-switcher__nav a:hover {
	background: var(--ax-blush);
	border-color: rgba(155, 79, 88, 0.42);
	color: var(--ax-rose-dark);
}

.ax-gallery-switcher__nav a:active {
	transform: translateY(1px);
}

@media (max-width: 620px) {
	.ax-gallery-progress__button {
		width: min(100%, 22rem);
	}

	.ax-gallery-switcher__nav li {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ax-gallery-progress__button {
		transition-duration: 0.01ms;
	}
}

@media (forced-colors: active) {
	.ax-gallery-progress__button {
		border: 1px solid ButtonText;
	}
}
