/* Axis Travel Group — Properties & Bookings
   Front-end styles. Colors come from CSS variables set in Settings. */

.axp {
	/* Sampled from the Axis Travel Group logo. */
	--axp-accent: #d1287f;        /* magenta — compass and wordmark */
	--axp-accent-alt: #7a1d88;    /* purple — "TRAVEL GROUP" */
	--axp-cyan: #00a8d8;          /* swoosh and compass ring */
	--axp-teal: #00b4c0;
	--axp-gold: #fccc00;
	--axp-orange: #e5842a;
	--axp-dark: #2a0e35;          /* deep plum, drawn from the purple */
	--axp-radius: 16px;

	/* The full compass gradient, gold through to cyan. Decorative only:
	   gold, orange and cyan are far too light to carry white text
	   (1.5:1, 2.7:1 and 2.8:1 against white). Used for photo frames and
	   rules, never as a fill behind type. */
	--axp-gradient: linear-gradient(
		135deg,
		var(--axp-gold) 0%,
		var(--axp-orange) 20%,
		var(--axp-accent) 46%,
		var(--axp-accent-alt) 70%,
		var(--axp-cyan) 100%
	);

	/* The two brand colours dark enough for white text (4.9:1 and 8.9:1).
	   Every filled button uses this one. */
	--axp-gradient-deep: linear-gradient(
		120deg,
		var(--axp-accent) 0%,
		var(--axp-accent-alt) 100%
	);

	/* A three-stop sweep with more of the compass character, still safe for
	   white text throughout: 4.9:1, 8.9:1 and 6.0:1. */
	--axp-gradient-badge: linear-gradient(
		115deg,
		var(--axp-accent) 0%,
		var(--axp-accent-alt) 55%,
		#0a6c88 100%
	);

	--axp-muted: #6f6478;
	--axp-line: rgba(42, 14, 53, 0.12);
	--axp-surface: #fff;
	--axp-shadow: 0 2px 4px rgba(42, 14, 53, 0.06), 0 12px 28px rgba(42, 14, 53, 0.1);
	color: var(--axp-dark);
	box-sizing: border-box;
}

.axp *,
.axp *::before,
.axp *::after {
	box-sizing: inherit;
}

.axp .axp-heading {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
	line-height: 1.2;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* ---------------------------------------------------------------- Chips */

.axp .axp-chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 0.32rem 0.75rem;
	border-radius: 999px;
	background: #ece8ef;
	color: var(--axp-dark);
	text-decoration: none;
	line-height: 1.5;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(42, 14, 53, 0.1);
}

.axp a.axp-chip:hover {
	background: rgba(42, 14, 53, 0.14);
}

.axp .axp-chip-supplier {
	background: var(--axp-dark);
	color: #fff;
}

/* Opaque fills rather than alpha tints. Alpha over a white page washed these
   out, and the Deluxe pairing measured only 4.11:1. Every pair below clears
   5.8:1 and the chips read clearly on both white cards and the dark hero. */
.axp .axp-chip-value {
	background: #bde8f5;
	color: #065066;
}

.axp .axp-chip-moderate {
	background: #fbe7a3;
	color: #6b4a00;
}

.axp .axp-chip-deluxe {
	background: #fbcde3;
	color: #96155c;
}

.axp .axp-chip-deluxe-villa {
	background: #e6c9ee;
	color: #5d1269;
}

.axp .axp-chip-campground {
	background: #cfe9d6;
	color: #125a2c;
}

.axp .axp-chip-partner-hotel,
.axp .axp-chip-premier,
.axp .axp-chip-preferred,
.axp .axp-chip-prime-value {
	background: #dfe3f2;
	color: #26356e;
}

/* ---------------------------------------------------------------- Grid */

.axp .axp-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.axp .axp-cols-1 { grid-template-columns: 1fr; }
.axp .axp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.axp .axp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.axp .axp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.axp .axp-cols-3,
	.axp .axp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.axp .axp-grid,
	.axp .axp-cols-2,
	.axp .axp-cols-3,
	.axp .axp-cols-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Card */

.axp .axp-card {
	background: var(--axp-surface);
	border-radius: var(--axp-radius);
	overflow: hidden;
	box-shadow: var(--axp-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.axp .axp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(42, 14, 53, 0.08), 0 18px 40px rgba(42, 14, 53, 0.14);
}

.axp .axp-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--axp-gradient);
	padding: 3px;
	overflow: hidden;
}

.axp .axp-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: calc(var(--axp-radius) - 3px) calc(var(--axp-radius) - 3px) 0 0;
	transition: transform 0.4s ease;
}

.axp .axp-card:hover .axp-card-media img {
	transform: scale(1.04);
}

.axp .axp-rank {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: var(--axp-accent);
	color: #fff;
	font-weight: 800;
	font-size: 0.875rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.axp .axp-card-body {
	padding: 1rem 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.axp .axp-card-supplier {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--axp-accent);
}

.axp .axp-card-title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.axp .axp-card-title a {
	color: inherit;
	text-decoration: none;
}

.axp .axp-card-title a:hover {
	color: var(--axp-accent);
}

.axp .axp-card-location {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--axp-muted);
}

.axp .axp-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.axp .axp-card-price,
.axp .axp-card-count {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--axp-muted);
}

/* ---------------------------------------------------- Most booked blocks */

.axp .axp-cat-block {
	margin-bottom: 2.75rem;
}

.axp .axp-cat-title {
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--axp-line);
}

.axp .axp-cat-title a {
	color: inherit;
	text-decoration: none;
}

.axp .axp-cat-title a:hover {
	color: var(--axp-accent);
}

/* ------------------------------------------------------------ Just booked */

.axp .axp-pulse {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--axp-accent);
	box-shadow: 0 0 0 0 rgba(209, 40, 127, 0.6);
	animation: axp-pulse 2s infinite;
	flex: 0 0 auto;
}

@keyframes axp-pulse {
	70% { box-shadow: 0 0 0 12px rgba(209, 40, 127, 0); }
	100% { box-shadow: 0 0 0 0 rgba(209, 40, 127, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.axp .axp-pulse { animation: none; }
	.axp .axp-card { transition: none; }
}

.axp .axp-booked-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.axp .axp-booked-item {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: var(--axp-surface);
	border: 1px solid var(--axp-line);
	border-radius: calc(var(--axp-radius) * 0.75);
	padding: 0.75rem;
}

.axp .axp-booked-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: calc(var(--axp-radius) * 0.5);
	overflow: hidden;
	display: block;
	background: var(--axp-gradient);
	padding: 2px;
}

.axp .axp-booked-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: calc(var(--axp-radius) * 0.5 - 2px);
}

.axp .axp-booked-body {
	flex: 1;
	min-width: 0;
}

.axp .axp-booked-title {
	display: block;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
	margin-bottom: 0.35rem;
}

.axp .axp-booked-title:hover {
	color: var(--axp-accent);
}

.axp .axp-booked-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.axp .axp-booked-date {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--axp-muted);
}

.axp .axp-booked-note {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	color: var(--axp-muted);
}

.axp .axp-booked-byline {
	margin: 0.3rem 0 0;
	font-size: 0.8125rem;
	color: var(--axp-muted);
}

.axp .axp-booked-agent {
	font-style: italic;
}

.axp .axp-booked-agent::before {
	content: " · ";
}

/* Card layout variant */
.axp-layout-cards .axp-booked-list {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.axp-layout-cards .axp-booked-item {
	flex-direction: column;
}

.axp-layout-cards .axp-booked-thumb {
	width: 100%;
	height: 130px;
	flex: none;
}

/* ------------------------------------------------------------ Single page */

.axp-single .axp-hero {
	position: relative;
	border-radius: var(--axp-radius);
	overflow: hidden;
	margin-bottom: 2rem;
	/* The gradient lives in the padding, framing all four sides. */
	background: var(--axp-gradient);
	padding: 4px;
}

.axp-single .axp-hero-image {
	display: block;
	border-radius: calc(var(--axp-radius) - 4px);
	overflow: hidden;
	background: linear-gradient(135deg, var(--axp-dark), var(--axp-accent-alt));
}

/* No image: the inner block still needs to sit inside the frame. */
.axp-single .axp-hero:not(.has-image) {
	background: var(--axp-gradient);
}

.axp-single .axp-hero:not(.has-image) .axp-hero-inner {
	background: linear-gradient(135deg, var(--axp-dark), var(--axp-accent-alt));
	border-radius: calc(var(--axp-radius) - 4px);
}

.axp-single .axp-hero-image img {
	width: 100%;
	height: clamp(240px, 42vw, 480px);
	object-fit: cover;
	display: block;
}

.axp-single .axp-hero.has-image .axp-hero-inner {
	position: absolute;
	/* Inset by the frame width so the overlay never covers the gradient. */
	inset: auto 4px 4px 4px;
	background: linear-gradient(to top, rgba(42, 14, 53, 0.94), rgba(42, 14, 53, 0.55) 55%, rgba(42, 14, 53, 0));
	border-radius: 0 0 calc(var(--axp-radius) - 4px) calc(var(--axp-radius) - 4px);
	color: #fff;
}

.axp-single .axp-hero-inner {
	padding: 2rem 1.75rem 1.75rem;
	color: #fff;
}

.axp-single .axp-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.axp-single .axp-hero-chips .axp-chip {
	font-size: 0.75rem;
	padding: 0.38rem 0.85rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.axp-single .axp-hero-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit;
}

.axp-single .axp-hero-location {
	margin: 0;
	opacity: 0.85;
	font-size: 1rem;
}

.axp-single .axp-hero-cta {
	margin: 1.1rem 0 0;
}

.axp .axp-button,
.axp a.axp-button {
	display: inline-block;
	background-image: var(--axp-gradient-deep);
	background-size: 200% 100%;
	background-position: 0% 50%;
	background-color: var(--axp-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	border: 0;
	transition: background-position 0.4s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.axp .axp-button:hover,
.axp a.axp-button:hover,
.axp .axp-button:focus,
.axp a.axp-button:focus {
	background-position: 100% 50%;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(209, 40, 127, 0.32);
}

.axp .axp-button-block {
	display: block;
	text-align: center;
	margin-top: 1rem;
}

.axp-single .axp-single-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
}

.axp-single .axp-main,
.axp-single .axp-sidebar {
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 860px) {
	.axp-single .axp-single-body {
		grid-template-columns: 1fr;
	}
}

/*
 * On a phone the title, location and button are taller than the image, so an
 * absolutely positioned overlay overflows upward and clips the chips off the
 * top. Stack instead: image, then a solid block beneath it.
 */
@media (max-width: 700px) {
	.axp-single .axp-hero.has-image .axp-hero-inner {
		position: static;
		inset: auto;
		background: linear-gradient(150deg, var(--axp-dark), var(--axp-accent-alt));
		border-radius: 0 0 calc(var(--axp-radius) - 4px) calc(var(--axp-radius) - 4px);
		padding: 1.25rem 1.15rem 1.35rem;
	}

	.axp-single .axp-hero-image {
		border-radius: calc(var(--axp-radius) - 4px) calc(var(--axp-radius) - 4px) 0 0;
	}

	.axp-single .axp-hero-image img {
		height: clamp(170px, 48vw, 240px);
	}

	.axp-single .axp-hero-title {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.axp-single .axp-hero-cta {
		margin-top: 0.9rem;
	}

	.axp-single .axp-hero-cta .axp-button {
		display: block;
		text-align: center;
	}
}

.axp .axp-highlights {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.4rem;
	background: rgba(122, 29, 136, 0.06);
	border-left: 4px solid var(--axp-accent);
	border-radius: calc(var(--axp-radius) * 0.5);
	display: grid;
	gap: 0.6rem;
}

.axp .axp-highlights li {
	position: relative;
	padding-left: 1.5rem;
	font-weight: 500;
}

.axp .axp-highlights li::before {
	content: "★";
	position: absolute;
	left: 0;
	color: var(--axp-accent);
}

/* ------------------------------------------------------------- Amenities */

.axp .axp-amenities {
	margin: 2.5rem 0;
}

.axp .axp-amenity-columns {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}

.axp .axp-amenity-col h4 {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--axp-line);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--axp-accent);
}

.axp .axp-amenity-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.axp .axp-amenity-col li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* Icons inherit color from currentColor, so a single rule themes them all. */
.axp .axp-icon {
	flex: 0 0 auto;
	display: block;
	overflow: visible;
}

.axp .axp-amenity-col li .axp-icon {
	color: var(--axp-accent-alt);
	margin-top: 0.05em;
}

.axp .axp-amenity-col h4 .axp-icon {
	color: var(--axp-accent);
}

/* Optional boxed variant: add class axp-amenities-boxed to the section. */
.axp .axp-amenities-boxed .axp-amenity-col li {
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--axp-line);
	border-radius: calc(var(--axp-radius) * 0.5);
	background: var(--axp-surface);
}

@media (forced-colors: active) {
	.axp .axp-icon {
		color: CanvasText;
	}
}

/* --------------------------------------------------------------- Factbox */

.axp .axp-factbox {
	position: relative;
	background: var(--axp-surface);
	border: 1px solid var(--axp-line);
	border-radius: var(--axp-radius);
	padding: 0 1.4rem 1.4rem;
	box-shadow: var(--axp-shadow);
	margin-bottom: 1.75rem;
	overflow: hidden;
}

/* Gradient cap, tying the card to the compass without shouting. */
.axp .axp-factbox-top {
	height: 5px;
	margin: 0 -1.4rem 1.25rem;
	background: var(--axp-gradient);
}

.axp .axp-factbox-title {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--axp-muted);
	font-weight: 700;
}

/* Price gets its own block: it is the number people scan for. */
.axp .axp-factbox-price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.9rem 1rem;
	margin-bottom: 1.1rem;
	border-radius: calc(var(--axp-radius) * 0.6);
	background: linear-gradient(135deg, rgba(209, 40, 127, 0.07), rgba(122, 29, 136, 0.07));
	border: 1px solid rgba(209, 40, 127, 0.16);
}

.axp .axp-factbox-price-label {
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--axp-muted);
	font-weight: 700;
}

.axp .axp-factbox-price-value {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--axp-accent);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.axp .axp-factbox-currency {
	font-size: 1.125rem;
	vertical-align: 0.35em;
	margin-right: 0.05em;
}

.axp .axp-factbox-per {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--axp-muted);
	letter-spacing: 0;
}

.axp .axp-factbox-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.1rem;
}

.axp .axp-factbox-list li {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--axp-line);
}

.axp .axp-factbox-list li:last-child {
	border-bottom: 0;
}

.axp .axp-factbox-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(122, 29, 136, 0.08);
	color: var(--axp-accent-alt);
}

.axp .axp-factbox-k {
	font-size: 0.8125rem;
	color: var(--axp-muted);
	font-weight: 600;
}

.axp .axp-factbox-v {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--axp-dark);
	text-align: right;
	line-height: 1.35;
}

.axp .axp-factbox .axp-button-block {
	margin-top: 1.25rem;
	padding: 0.9rem 1.5rem;
	font-size: 1rem;
}

@media (max-width: 400px) {
	.axp .axp-factbox-list li {
		grid-template-columns: 28px 1fr;
	}
	.axp .axp-factbox-v {
		grid-column: 2;
		text-align: left;
	}
}

/* --------------------------------------------------------------- Gallery */

.axp .axp-gallery {
	margin: 2.5rem 0;
}

.axp .axp-gallery-count {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--axp-muted);
	background: rgba(42, 14, 53, 0.07);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	letter-spacing: 0;
	text-transform: none;
}

/* grid-auto-rows must stay auto. With 1fr every row matches the tallest, so
   the full-width featured tile forces the rows of half-width tiles below it to
   the same height and the images sit at the top of a large empty row. */
.axp .axp-gallery-grid {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: auto;
}

.axp .axp-gallery-cols-2 .axp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
.axp .axp-gallery-cols-4 .axp-gallery-grid { grid-template-columns: repeat(4, 1fr); }

/* Featured layout: first photo takes a 2x2 tile. */
.axp .axp-gallery-featured .axp-gallery-link:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* Carousel (strip layout)

   The overflow chain matters here: a flex or grid child defaults to
   min-width:auto, so a horizontally scrolling track inside one will widen its
   container instead of scrolling. Every ancestor between the page and the
   track needs min-width:0 for the scroll to be contained. */

.axp .axp-gallery-strip,
.axp .axp-carousel,
.axp .axp-carousel-viewport {
	min-width: 0;
	max-width: 100%;
}

.axp .axp-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.axp .axp-carousel-viewport {
	flex: 1 1 auto;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.axp .axp-carousel-viewport::-webkit-scrollbar {
	display: none;
}

/* No width:max-content here. It makes the track's main size indefinite, so a
   percentage flex-basis on the items has nothing to resolve against and the
   browser falls back to each image's intrinsic width — which turns a large
   photo into a flex item thousands of pixels wide. Non-shrinking items
   overflow and scroll perfectly well without it. */
.axp .axp-gallery-strip .axp-gallery-grid {
	display: flex;
	gap: 0.6rem;
	width: auto;
	max-width: none;
	grid-template-columns: none;
}

.axp .axp-gallery-strip .axp-gallery-link {
	flex: 0 0 240px;
	scroll-snap-align: start;
	aspect-ratio: 4 / 3;
	/* Belt and braces: never let an item size to its image. */
	max-width: 100%;
}

.axp .axp-carousel-btn {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--axp-line);
	border-radius: 50%;
	background-color: var(--axp-surface);
	background-image: none;
	color: var(--axp-dark);
	cursor: pointer;
	padding: 0;
	box-shadow: 0 1px 3px rgba(42, 14, 53, 0.1);
	transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.axp .axp-carousel-btn:hover:not(:disabled),
.axp .axp-carousel-btn:focus:not(:disabled) {
	background-color: var(--axp-accent);
	color: #fff;
	border-color: var(--axp-accent);
}

.axp .axp-carousel-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.axp .axp-carousel-btn[hidden] {
	display: none;
}

.axp .axp-carousel-btn:focus-visible {
	outline: 3px solid var(--axp-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	/* Buttons are redundant next to touch scrolling, and the space is better
	   spent on the photos themselves. */
	.axp .axp-carousel-btn {
		display: none;
	}
	.axp .axp-gallery-strip .axp-gallery-link {
		flex-basis: min(78vw, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.axp .axp-carousel-viewport {
		scroll-behavior: auto;
	}
}

.axp .axp-gallery-link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: calc(var(--axp-radius) * 0.6);
	/* The gradient sits in the padding, framing the image. */
	background: var(--axp-gradient);
	padding: 3px;
	aspect-ratio: 4 / 3;
	line-height: 0;
	min-width: 0;
}

.axp .axp-gallery-link img {
	border-radius: calc(var(--axp-radius) * 0.6 - 3px);
}

.axp .axp-gallery-featured .axp-gallery-link:first-child {
	aspect-ratio: auto;
}

.axp .axp-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.axp .axp-gallery-link:hover img,
.axp .axp-gallery-link:focus-visible img {
	transform: scale(1.05);
}

.axp .axp-gallery-link:focus-visible {
	outline: 3px solid var(--axp-accent);
	outline-offset: 2px;
}

.axp .axp-gallery-zoom {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(42, 14, 53, 0.62);
	color: #fff;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.axp .axp-gallery-link:hover .axp-gallery-zoom,
.axp .axp-gallery-link:focus-visible .axp-gallery-zoom {
	opacity: 1;
	transform: translateY(0);
}

/*
 * On touch there is no hover, so the zoom badge would never appear and nothing
 * would suggest the photo opens. Show it permanently instead.
 */
@media (hover: none) {
	.axp .axp-gallery-zoom {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.axp .axp-gallery-grid,
	.axp .axp-gallery-cols-4 .axp-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.axp .axp-gallery-featured .axp-gallery-link:first-child {
		grid-column: span 2;
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}
}

/* -------------------------------------------------------------- Lightbox */

body.axp-lb-open {
	position: fixed;
	width: 100%;
	overflow: hidden;
}

.axp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 5, 24, 0.94);
	opacity: 0;
	transition: opacity 0.18s ease;
	padding: 3.5rem 1rem 4.5rem;
}

.axp-lightbox.is-visible {
	opacity: 1;
}

.axp-lightbox[hidden] {
	display: none;
}

.axp-lb-stage {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.axp-lb-figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.axp-lb-figure.is-loading {
	opacity: 0.35;
}

.axp-lb-image {
	max-width: 100%;
	max-height: calc(100vh - 10rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	display: block;
}

.axp-lb-caption {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9375rem;
	line-height: 1.5;
	text-align: center;
	max-width: 60ch;
	margin: 0;
}

.axp-lb-caption[hidden] {
	display: none;
}

.axp-lb-counter {
	position: absolute;
	bottom: 1.35rem;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.axp-lb-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	margin: -1px;
}

.axp-lb-close,
.axp-lb-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
	transition: background 0.18s ease;
}

.axp-lb-close:hover,
.axp-lb-nav:hover {
	background: var(--axp-accent, #f72585);
}

.axp-lb-close:focus-visible,
.axp-lb-nav:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.axp-lb-close {
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
}

.axp-lb-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
}

.axp-lb-nav[hidden] {
	display: none;
}

.axp-lb-prev { left: 1rem; }
.axp-lb-next { right: 1rem; }

@media (max-width: 640px) {
	.axp-lightbox { padding: 3.5rem 0.5rem 5rem; }
	.axp-lb-nav {
		top: auto;
		bottom: 3.5rem;
		transform: none;
		width: 46px;
		height: 46px;
	}
	.axp-lb-prev { left: 1.5rem; }
	.axp-lb-next { right: 1.5rem; }
	.axp-lb-image { max-height: calc(100vh - 13rem); }
}

@media (prefers-reduced-motion: reduce) {
	.axp-lightbox,
	.axp .axp-gallery-link img,
	.axp .axp-gallery-zoom {
		transition: none;
	}
	.axp .axp-gallery-link:hover img {
		transform: none;
	}
}

/* --------------------------------------------------------------- Archive */

.axp-archive .axp-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.axp-archive .axp-filter {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--axp-line);
	color: var(--axp-dark);
}

.axp-archive .axp-filter:hover {
	border-color: var(--axp-accent);
	color: var(--axp-accent);
}

.axp .axp-pagination {
	margin-top: 2.5rem;
}
