/* =========================================================
WAHSUITS — POLISH LAYER
Loaded last on every page. Refines the WordPress-exported
styles without touching them, so it can be tuned or removed
in one place.
========================================================= */

:root {
	--wah-page: var(--wp--style--global--wide-size, 1400px);
	--wah-radius-lg: 32px;
	--wah-radius-md: 22px;
	--wah-glass: rgba(10, 24, 44, 0.55);
	--wah-glass-border: rgba(255, 255, 255, 0.12);
	--wah-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--wah-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 140px;
}

/* "hidden" turns html/body into scroll containers, which breaks the sticky header. */
html,
body,
.wp-site-blocks {
	overflow-x: clip !important;
}

body {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background:
		radial-gradient(1100px 700px at 8% -5%, rgba(74, 173, 179, 0.34), transparent 60%),
		radial-gradient(900px 650px at 100% 25%, rgba(248, 157, 50, 0.10), transparent 60%),
		radial-gradient(1300px 900px at 50% 115%, rgba(74, 211, 211, 0.22), transparent 60%),
		linear-gradient(180deg, #0b1f3a 0%, #10294a 55%, #0c2135 100%) !important;
	background-attachment: fixed !important;
}

::selection {
	background: var(--wah-aqua);
	color: var(--wah-text-dark);
}

:focus-visible {
	outline: 3px solid var(--wah-aqua);
	outline-offset: 3px;
	border-radius: 6px;
}

img {
	max-width: 100%;
}

/* ---------- HEADER ---------- */

.wp-site-blocks > .is-position-sticky {
	transition: padding 0.35s var(--wah-ease-out);
}

header.wp-block-template-part .alignwide.has-background {
	max-width: var(--wah-page);
	margin-left: auto;
	margin-right: auto;
	border-radius: 999px !important;
	padding: 10px 28px !important;
	justify-content: space-between !important;
	background:
		linear-gradient(100deg, rgba(74, 173, 179, 0.92) 0%, rgba(199, 223, 210, 0.85) 45%, rgba(13, 54, 114, 0.95) 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 12px 34px rgba(3, 10, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: padding 0.35s var(--wah-ease-out), box-shadow 0.35s ease;
}

header.wp-block-template-part .wp-block-buttons:empty {
	display: none;
}

header.wp-block-template-part .custom-logo {
	width: 96px;
	height: auto;
	transition: width 0.35s var(--wah-ease-out), transform 0.35s var(--wah-spring);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

header.wp-block-template-part .custom-logo-link:hover .custom-logo {
	transform: rotate(-6deg) scale(1.06);
}

.wah-scrolled .wp-site-blocks > .is-position-sticky {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.wah-scrolled header.wp-block-template-part .alignwide.has-background {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	box-shadow: 0 16px 40px rgba(3, 10, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wah-scrolled header.wp-block-template-part .custom-logo {
	width: 62px;
}

header .wp-block-navigation .wp-block-navigation__container {
	gap: 6px !important;
}

header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 9px 16px !important;
	border-radius: 999px;
	font-style: normal !important;
	font-size: 15px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--wah-spring) !important;
}

header .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.18);
}

header .wp-block-navigation .wah-current > .wp-block-navigation-item__content {
	background: rgba(9, 25, 48, 0.55);
	color: var(--wah-yellow) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 225, 106, 0.35);
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background:
		radial-gradient(600px 400px at 20% 0%, rgba(74, 173, 179, 0.35), transparent 70%),
		rgba(8, 20, 38, 0.97) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 10px !important;
	padding-top: 30px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 26px !important;
	font-weight: 900 !important;
}

.wp-block-navigation__responsive-container-open {
	padding: 8px;
	border-radius: 50%;
	background: rgba(9, 25, 48, 0.45) !important;
}

/* ---------- BUTTONS ---------- */

.wp-block-button .wp-block-button__link,
.wah-button {
	position: relative;
	overflow: hidden;
	padding: 16px 32px !important;
	border-radius: 999px !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	font-style: normal !important;
	letter-spacing: 0.04em !important;
	text-transform: none !important;
	color: var(--wah-text-dark) !important;
	background: linear-gradient(90deg, var(--wah-aqua), var(--wah-yellow) 55%, var(--wah-orange)) !important;
	background-size: 200% 100% !important;
	background-position: 0% 50% !important;
	box-shadow: 0 10px 26px rgba(248, 157, 50, 0.25), 0 4px 12px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s var(--wah-spring), box-shadow 0.25s ease, background-position 0.5s ease !important;
}

.wp-block-button .wp-block-button__link:hover,
.wah-button:hover {
	transform: translateY(-3px) scale(1.03);
	background-position: 100% 50% !important;
	box-shadow: 0 16px 34px rgba(248, 157, 50, 0.32), 0 0 30px rgba(125, 225, 212, 0.3);
	filter: none;
}

.wp-block-button .wp-block-button__link:active,
.wah-button:active {
	transform: translateY(0) scale(0.98);
}

/* ---------- SHARED CARD FRAME ---------- */

.home .wp-site-blocks > .alignwide.has-background-background-color,
.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color,
body:not(.home) .wp-site-blocks > .wp-block-group > .alignwide.has-background-background-color {
	max-width: var(--wah-page) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: var(--wah-radius-lg) !important;
	box-shadow: 0 30px 80px rgba(2, 8, 20, 0.35);
}

.home .wp-site-blocks > .alignwide.has-background-background-color,
.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
	width: calc(100% - 40px);
}

.home .wp-site-blocks > .alignwide.has-background-background-color {
	margin-top: 8px !important;
	padding: clamp(32px, 5vw, 72px) !important;
	background:
		radial-gradient(700px 400px at 0% 0%, rgba(125, 225, 212, 0.25), transparent 65%),
		radial-gradient(600px 400px at 100% 100%, rgba(248, 157, 50, 0.14), transparent 65%),
		#f4fbff !important;
}

/* ---------- HOME HERO ---------- */

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-columns {
	gap: clamp(28px, 5vw, 72px);
}

.home .wp-site-blocks > .alignwide.has-background-background-color h1 {
	font-size: clamp(2.4rem, 4.6vw, 4.4rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.03em;
	margin-top: 12px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color h2 {
	font-size: clamp(1.3rem, 2vw, 1.9rem) !important;
	font-weight: 600 !important;
	margin-top: 10px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-12 {
	width: min(300px, 70%) !important;
	animation: wahBob 6s ease-in-out infinite;
	filter: drop-shadow(0 18px 28px rgba(13, 54, 114, 0.18));
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-buttons {
	margin-top: 30px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-button {
	width: auto !important;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-button__link {
	padding: 18px 40px !important;
	font-size: 18px !important;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-24 {
	display: block;
	border: none !important;
	border-radius: 28px !important;
	box-shadow: 0 30px 60px rgba(13, 31, 48, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.9);
	transform: rotate(1.5deg);
	transition: transform 0.6s var(--wah-spring), box-shadow 0.4s ease;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-24:hover {
	transform: rotate(0deg) scale(1.02);
	box-shadow: 0 40px 80px rgba(13, 31, 48, 0.32), 0 0 0 8px #fff;
}

@keyframes wahBob {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-10px) rotate(-1.5deg); }
}

/* ---------- HOME DARK SECTION ---------- */

.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
	margin-top: 28px !important;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 50% 0%, rgba(74, 173, 179, 0.16), transparent 70%),
		#0d1f30 !important;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.home .wah-home-section {
	padding-top: clamp(50px, 7vw, 90px);
	padding-bottom: clamp(50px, 7vw, 90px);
}

.wah-kicker,
.wah-small-title {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	font-weight: 800;
	opacity: 1 !important;
	color: var(--wah-aqua) !important;
	background: rgba(125, 225, 212, 0.10);
	border: 1px solid rgba(125, 225, 212, 0.22);
}

.home .wah-section-title {
	letter-spacing: -0.03em;
}

.home .wah-feature-card {
	padding: 34px 28px;
	text-align: center;
	transition: transform 0.35s var(--wah-spring), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.home .wah-feature-card:hover {
	transform: translateY(-8px) rotate(-0.5deg);
	border-color: rgba(125, 225, 212, 0.4);
}

.home .wah-feature-card h3::before {
	display: block;
	margin: 0 auto 14px;
	font-size: 34px;
	line-height: 1;
}

.home .wah-feature-card:nth-child(1) h3::before { content: "🧵"; }
.home .wah-feature-card:nth-child(2) h3::before { content: "🛠️"; }
.home .wah-feature-card:nth-child(3) h3::before { content: "🌀"; }

.home .wah-pin-image {
	transform: rotate(-1.5deg);
	transition: transform 0.6s var(--wah-spring);
}

.home .wah-pin-image:hover {
	transform: rotate(0deg) scale(1.02);
}

.home .wah-pin-content {
	text-align: left;
}

.home .wah-pin .wah-section-title,
.home .wah-pin .wah-section-text {
	text-align: left;
	margin-left: 0;
}

.home .wah-pin-tags span {
	transition: transform 0.25s var(--wah-spring), background 0.25s ease;
}

.home .wah-pin-tags span:hover {
	transform: translateY(-3px);
	background: rgba(125, 225, 212, 0.18);
}

@media (max-width: 900px) {
	.home .wah-pin-content,
	.home .wah-pin .wah-section-title,
	.home .wah-pin .wah-section-text {
		text-align: center;
	}

	.home .wah-pin-tags {
		justify-content: center;
	}
}

/* Gallery: wider strip with soft fading edges */
.home .wah-moving-gallery .wah-section-inner {
	width: 100% !important;
	max-width: none !important;
}

.home .wah-moving-gallery .wah-section-inner > p:not(.wah-kicker) {
	color: rgba(255, 255, 255, 0.8);
}

.home .wah-marquee {
	margin-top: 30px;
	padding: 34px 0 40px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.home .wah-marquee-card {
	background: #fffdf8;
	transition: transform 0.45s var(--wah-spring), box-shadow 0.3s ease;
}

/* Commissions card */
.home .wah-commissions-card {
	transition: transform 0.4s var(--wah-spring);
}

.home .wah-commissions.is-open .wah-commissions-card {
	border-color: rgba(92, 242, 166, 0.35);
	box-shadow: var(--wah-shadow), 0 0 60px rgba(92, 242, 166, 0.12);
}

/* ---------- INNER PAGES ---------- */

body:not(.home) .wp-site-blocks > .wp-block-group > .alignwide.has-background-background-color {
	width: 100%;
	padding-bottom: 40px;
	overflow: hidden;
}

body:not(.home) .wp-block-post-title {
	font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em;
	text-align: center;
	color: #18155b !important;
}

body:not(.home) .wp-block-post-featured-image img {
	/* show the whole picture: shrink it to fit instead of cropping it */
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 70vh;
	margin-inline: auto;
	object-fit: contain !important;
	box-shadow: 0 24px 50px rgba(13, 31, 48, 0.2);
}

/* WAHfamily: let the card grid use the whole page card */
.page-id-22 .entry-content > .wah-world,
.page-id-22 .wp-block-post-content > .wah-world {
	width: min(100%, 1300px) !important;
	max-width: 1300px !important;
}

.page-id-22 .wah-world .wah-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}

.page-id-22 .wah-world .wah-item {
	flex: 0 1 190px;
	max-width: 210px;
}

.page-id-22 .wah-world .country-section h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	letter-spacing: -0.02em;
}

.page-id-22 .wah-world .country-section h2::before,
.page-id-22 .wah-world .country-section h2::after {
	content: "";
	flex: 1;
	max-width: 160px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(74, 173, 179, 0.6));
}

.page-id-22 .wah-world .country-section h2::after {
	transform: scaleX(-1);
}

.page-id-22 .wah-world .wah-card {
	transition: transform 0.45s var(--wah-spring), box-shadow 0.35s ease, opacity 0.6s var(--wah-ease-out);
	transition-delay: var(--wah-delay, 0s);
}

.page-id-22 .wah-world .wah-card:hover {
	transition-delay: 0s;
}

.page-id-22 .wah-world .wah-card:hover {
	transform: translateY(-8px) rotate(-1deg) !important;
}

.page-id-22 .wah-world .wah-modal-toggle:checked + .wah-card + .wah-modal .wah-popup {
	animation: wahPop 0.45s var(--wah-spring);
}

@keyframes wahPop {
	from { opacity: 0; transform: translateY(20px) scale(0.92); }
	to { opacity: 1; transform: none; }
}

/* ---------- PRICE CALCULATOR ---------- */

body:not(.home) .wah-package-header h2 {
	color: #18155b !important;
	text-shadow: none;
}

body:not(.home) .wah-package-header p {
	color: #4a5878 !important;
	opacity: 1;
}

body:not(.home) .wah-package-kicker {
	color: #2a9d92;
}

/* ---------- FOOTER ---------- */

footer.wp-block-template-part {
	padding: 0 20px 24px;
}

footer.wp-block-template-part > .wp-block-group {
	position: relative;
	max-width: var(--wah-page);
	margin: 48px auto 0 !important;
	padding: 48px 24px 36px !important;
	border-radius: var(--wah-radius-lg);
	background:
		radial-gradient(600px 300px at 50% 0%, rgba(125, 225, 212, 0.16), transparent 70%),
		var(--wah-glass);
	border: 1px solid var(--wah-glass-border);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 60px rgba(2, 8, 20, 0.3);
}

footer .wp-block-spacer {
	height: 10px !important;
}

footer .wp-image-74 {
	width: 130px !important;
	transition: transform 0.5s var(--wah-spring);
}

footer .wp-image-74:hover {
	transform: rotate(-8deg) scale(1.08);
}

footer .wp-block-social-links {
	gap: 12px !important;
}

footer .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid var(--wah-glass-border);
	border-radius: 50% !important;
	transition: transform 0.25s var(--wah-spring), background 0.25s ease;
}

footer .wp-block-social-links .wp-social-link a {
	padding: 12px !important;
}

footer .wp-block-social-links .wp-social-link svg {
	width: 22px;
	height: 22px;
	fill: #fff !important;
	color: #fff !important;
}

footer .wp-block-social-links .wp-social-link:hover {
	transform: translateY(-4px) scale(1.08);
	background: linear-gradient(135deg, var(--wah-aqua), var(--wah-orange)) !important;
}

footer .wp-block-social-links .wp-social-link:hover svg {
	fill: var(--wah-text-dark) !important;
}

footer .wp-block-paragraph {
	color: rgba(255, 255, 255, 0.7) !important;
	letter-spacing: 0.04em;
}

/* ---------- BACK TO TOP ---------- */

.wah-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	font-size: 22px;
	font-weight: 900;
	color: var(--wah-text-dark);
	background: linear-gradient(135deg, var(--wah-aqua), var(--wah-orange));
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.35s var(--wah-spring);
}

.wah-scrolled-far .wah-to-top {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wah-to-top:hover {
	transform: translateY(-3px) scale(1.06);
}

/* ---------- SCROLL REVEAL (only when JS is running) ---------- */

.wah-js .wah-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--wah-ease-out), transform 0.8s var(--wah-ease-out);
	transition-delay: var(--wah-delay, 0s);
}

.wah-js .wah-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
	body {
		background-attachment: scroll !important;
	}

	header.wp-block-template-part .alignwide.has-background {
		padding: 8px 14px 8px 18px !important;
	}

	header.wp-block-template-part .custom-logo,
	.wah-scrolled header.wp-block-template-part .custom-logo {
		width: 56px;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color,
	.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
		width: calc(100% - 24px);
		border-radius: 26px !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color {
		padding: 28px 22px !important;
		text-align: center;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-column {
		flex-basis: 100% !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-12 {
		width: 180px !important;
		margin: 0 auto;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color h1,
	.home .wp-site-blocks > .alignwide.has-background-background-color h2 {
		text-align: center !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-buttons {
		justify-content: center;
	}

	.page-id-22 .wah-world .wah-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	.page-id-22 .wah-world .wah-item {
		max-width: none;
	}

	.page-id-22 .wah-world .country-section h2::before,
	.page-id-22 .wah-world .country-section h2::after {
		display: none;
	}

	footer.wp-block-template-part {
		padding: 0 12px 16px;
	}

	.wah-to-top {
		right: 14px;
		bottom: 14px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.wah-js .wah-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- COMMISSIONS COUNTDOWN (set from the admin panel) ---------- */

.wah-countdown {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	margin: 4px auto 30px;
}

.wah-countdown-label {
	margin: 0 0 12px !important;
	font-size: 12px !important;
	font-weight: 900;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wah-aqua) !important;
}

.wah-countdown-units {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	gap: clamp(8px, 2vw, 16px);
}

.wah-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: clamp(64px, 14vw, 96px);
	padding: 14px 8px 12px;
	border-radius: 20px;
	background: rgba(13, 31, 48, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wah-countdown-unit b {
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--wah-white);
}

.wah-countdown-unit small {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.wah-countdown-unit:first-child b {
	color: var(--wah-yellow);
}

.wah-countdown-end {
	margin: 12px 0 0 !important;
	font-size: 14px !important;
	font-style: italic;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7) !important;
}

.wah-commissions-card.is-just-closed {
	animation: wahPop 0.6s var(--wah-spring);
}

@keyframes wahPop {
	from { opacity: 0; transform: translateY(20px) scale(0.92); }
	to { opacity: 1; transform: none; }
}

/* ---------- HEADER STARS: frame the top of the page, never cover content ---------- */

.wah-stars-left,
.wah-stars-right {
	width: min(12vw, 150px);
	height: 480px;
	max-height: 480px;
	transition: opacity 0.5s ease;
}

/* They sit on top of the page, so they step aside as soon as you scroll. */
.wah-scrolled .wah-stars-left,
.wah-scrolled .wah-stars-right {
	opacity: 0 !important;
}

@media (max-width: 768px) {
	.wah-stars-left,
	.wah-stars-right {
		width: 72px;
		height: 288px;
		max-height: 288px;
	}
}

/* ---------- HOME GALLERY: keep faces in frame, two full cards on phones ---------- */

.home .wah-marquee-card img {
	object-position: center 30%;
}

@media (max-width: 600px) {
	.home .wah-marquee {
		width: 100vw !important;
		max-width: none !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: 0 !important;
		margin-top: 20px;
		padding: 20px 0 28px;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	}

	.home .wah-moving-gallery,
	.home .wah-moving-gallery .wah-section-inner {
		overflow: visible !important;
	}

	.home .wah-marquee-track {
		gap: 14px;
	}

	.home .wah-marquee-card {
		flex-basis: 168px;
		height: 236px;
		padding: 9px 9px 38px;
		border-radius: 16px;
	}

	.home .wah-marquee-card img {
		border-radius: 10px;
	}

	.home .wah-polaroid-caption {
		left: 10px;
		right: 10px;
		bottom: 12px;
		font-size: 12px;
	}
}

/* ---------- HOME: blocks size to their section, not the screen (no cut-off text on tablets) ---------- */

.home .wah-commissions-card,
.home .wah-pin-grid {
	width: 100% !important;
	box-sizing: border-box;
}

.home .wah-commissions-card {
	max-width: 900px !important;
}

.home .wah-pin-grid {
	max-width: 1200px !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home .wah-pin-content {
	min-width: 0;
}

@media (max-width: 900px) {
	.home .wah-pin-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- MENU: stays on one line on tablets and small laptops ---------- */

@media (min-width: 601px) and (max-width: 1100px) {
	header .wp-block-navigation__container {
		gap: 0 !important;
		flex-wrap: nowrap !important;
	}

	header .wp-block-navigation-item__content {
		padding-left: 8px !important;
		padding-right: 8px !important;
		font-size: 13.5px !important;
		white-space: nowrap;
	}
}

/* Small tablets: the full menu doesn't fit, so use the phone menu button. */
@media (min-width: 600px) and (max-width: 960px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* ---------- INNER PAGES: centred on phones and tablets ----------
   These page blocks were sized from the screen width (94vw, 100vw - 32px) while sitting inside
   the padded page card, so on phones they hung over the right edge. Make them fit the card instead. */

@media (max-width: 1100px) {
	html body .wp-site-blocks .wah-lab,
	html body .wp-site-blocks .wah-package-guide,
	html body .wp-site-blocks .wah-price-calculator,
	html body .wp-site-blocks .wah-tos-page,
	html body .wp-site-blocks .wah-care-page,
	html body .wp-site-blocks .wah-spotlight {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box !important;
	}
}

/* Phones: the stars bob up and down only, so they never poke past the screen edge
   (older iPhones would otherwise let the page slide sideways). */
@media (max-width: 768px) {
	.wah-stars-left,
	.wah-stars-right {
		animation-name: wahBob !important;
	}
}

@keyframes wahBob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(10px); }
}

/* Footer: a small, quiet way into the admin panel */
.wah-admin-link { margin-top: 6px !important; font-size: 12px !important; opacity: 0.55; }
.wah-admin-link a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.wah-admin-link a:hover,
.wah-admin-link a:focus-visible { opacity: 1; border-bottom-style: solid; }
.wah-admin-link:hover,
.wah-admin-link:focus-within { opacity: 0.9; }
