.ml-warm-editorial-gallery #sunshine {
	--ml-gallery-cream: #f5f0e6;
	--ml-gallery-paper: #fffdf8;
	--ml-gallery-forest: #284f40;
	--ml-gallery-forest-dark: #20342d;
	--ml-gallery-terra: #a6533f;
	--ml-gallery-gold: #b69245;
	--ml-gallery-line: #ded5c6;
	--ml-gallery-muted: #52615b;
	background: var(--ml-gallery-cream);
	color: var(--ml-gallery-forest-dark);
}

.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
	align-items: end;
	gap: clamp(24px, 5vw, 72px);
	margin: 0 0 clamp(24px, 4vw, 42px);
	padding: clamp(28px, 5vw, 64px);
	background: var(--ml-gallery-forest);
	border-radius: 28px 28px 8px 28px;
	box-shadow: 0 22px 60px rgb(32 52 45 / 14%);
	color: var(--ml-gallery-paper);
}

.ml-warm-editorial-gallery .ml-demo-banner {
	margin: 0 0 clamp(22px, 4vw, 38px);
	padding: 13px 18px;
	border: 1px solid #d8bc72;
	border-radius: 14px;
	background: #fff8dd;
	box-shadow: 0 8px 24px rgb(32 52 45 / 8%);
	color: var(--ml-gallery-forest-dark);
	font-weight: 750;
	line-height: 1.45;
	text-align: center;
}

.ml-warm-editorial-gallery .ml-gallery-hero__eyebrow {
	margin: 0 0 12px;
	color: #d5b66f;
	font-size: .76rem;
	font-weight: 850;
	letter-spacing: .15em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero h1 {
	margin: 0;
	color: var(--ml-gallery-paper);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.35rem, 6vw, 4.8rem);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: .98;
	text-wrap: balance;
}

.ml-warm-editorial-gallery .ml-gallery-hero__intro {
	max-width: 45rem;
	margin: 20px 0 0;
	color: rgb(255 253 248 / 82%);
	font-size: clamp(.98rem, 1.3vw, 1.08rem);
	line-height: 1.65;
}

.ml-warm-editorial-gallery .ml-gallery-hero__count {
	margin: 12px 0 0;
	color: rgb(255 253 248 / 82%);
	font-variant-numeric: tabular-nums;
}

.ml-warm-editorial-gallery .ml-gallery-hero__actions {
	display: grid;
	gap: 10px;
	margin: 0;
}

.ml-warm-editorial-gallery .ml-gallery-hero__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 11px 15px;
	background: rgb(255 253 248 / 8%);
	border: 1px solid rgb(255 253 248 / 34%);
	border-radius: 10px;
	color: var(--ml-gallery-paper);
	font-size: .92rem;
	font-family: inherit;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ml-warm-editorial-gallery button.ml-gallery-hero__action {
	width: 100%;
	cursor: pointer;
}

.ml-warm-editorial-gallery .ml-gallery-hero__action--primary {
	justify-content: center;
	background: var(--ml-gallery-paper);
	border-color: var(--ml-gallery-paper);
	color: var(--ml-gallery-forest-dark);
}

.ml-warm-editorial-gallery .ml-gallery-hero__action .sunshine--count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	min-height: 28px;
	padding: 2px 7px;
	background: rgb(255 253 248 / 14%);
	border-radius: 999px;
	color: inherit;
	font-size: .78rem;
}

.ml-warm-editorial-gallery .ml-gallery-hero__action:hover {
	background: rgb(255 253 248 / 16%);
	border-color: rgb(255 253 248 / 62%);
	transform: translateY(-1px);
}

.ml-warm-editorial-gallery .ml-gallery-hero__action--primary:hover {
	background: #fff;
	border-color: #fff;
}

.ml-warm-editorial-gallery .ml-gallery-hero__action:focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 3px;
	box-shadow: 0 0 0 4px #d5b66f;
}

.ml-warm-editorial-gallery #sunshine--image-items {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: clamp(12px, 2vw, 24px);
	align-items: start;
}

.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin-bottom: 0;
	padding: 8px;
	background: var(--ml-gallery-paper);
	border: 1px solid var(--ml-gallery-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgb(32 52 45 / 8%);
	overflow: hidden;
}

.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a {
	display: block;
	border-radius: 10px;
	overflow: visible;
	cursor: zoom-in;
}

.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a:focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--ml-gallery-forest-dark);
}

.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a > img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform 180ms ease;
}

/* The native justified layout assumes image-only, fixed-ratio figures. Warm
 * Editorial cards also have a normal-flow action footer, so normalize that
 * optional layout to a responsive card grid instead of clipping the footer. */
.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
	overflow: visible;
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified::after {
	display: none;
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-4,
.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-5,
.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-6 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified figure.sunshine--image-item {
	display: flex;
	flex-basis: auto;
	flex-grow: 0;
	padding: 8px;
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified figure.sunshine--image-item > a {
	position: static;
	width: 100%;
}

.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified figure.sunshine--image-item > a > img {
	position: static;
	width: 100%;
	height: auto;
}

.ml-favorite-tooltip {
	position: absolute;
	z-index: 24;
	right: 4px;
	bottom: 60px;
	width: min(210px, calc(100vw - 24px));
	max-width: 210px;
	padding: 10px 12px;
	background: #fffdf8;
	border: 1px solid #9caa9f;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgb(24 48 40 / 24%);
	color: #20342d;
	font-size: .82rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
	opacity: 1;
	pointer-events: none;
}

.ml-favorite-tooltip::after {
	position: absolute;
	right: 18px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: inherit;
	content: "";
	transform: rotate(45deg);
}

@media (hover: hover) {
	.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a:hover > img {
		transform: scale(1.015);
	}
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu {
	position: static;
	z-index: 20;
	right: auto;
	bottom: auto;
	left: auto;
	top: auto;
	display: block;
	width: auto;
	height: auto;
	margin: 8px 0 0;
	padding: 0;
	background: transparent;
	opacity: 1;
	transform: none;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu ul {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li {
	position: static;
	display: flex;
	margin: 0;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li.sunshine--favorite {
	flex: 0 0 46px;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li.ml-gallery-card__purchase {
	flex: 1 1 auto;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 46px;
	margin: 0;
	border-radius: 9px;
	cursor: pointer;
	opacity: 1;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .ml-gallery-card__purchase-button {
	width: 100%;
	padding: 10px 14px;
	background: var(--ml-gallery-forest);
	border: 1px solid var(--ml-gallery-forest);
	color: #fff;
	font-size: .88rem;
	font-weight: 800;
	line-height: 1.25;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .ml-gallery-card__purchase-button::before {
	display: none;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .ml-gallery-card__purchase-button .sunshine--image-menu--name {
	position: static;
	display: inline;
	clip: auto;
	width: auto;
	height: auto;
	overflow: visible;
	text-indent: 0;
	white-space: normal;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .sunshine--add-to-favorites {
	width: 46px;
	height: 46px;
	background: transparent;
	border: 1px solid var(--ml-gallery-line);
	color: var(--ml-gallery-terra);
	opacity: 1;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .sunshine--add-to-favorites::before {
	display: inline-block;
	color: var(--ml-gallery-terra);
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li:not(.ml-gallery-card__purchase):not(.sunshine--favorite) > button,
.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li:not(.ml-gallery-card__purchase):not(.sunshine--favorite) > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: transparent;
	border: 1px solid var(--ml-gallery-line);
	border-radius: 9px;
	opacity: 1;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li:not(.ml-gallery-card__purchase):not(.sunshine--favorite) > button::before,
.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li:not(.ml-gallery-card__purchase):not(.sunshine--favorite) > a::before {
	color: var(--ml-gallery-forest);
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image--name {
	position: static;
	margin: 7px 3px 0;
	padding: 0;
	background: none;
	color: var(--ml-gallery-muted);
	font-size: .78rem;
	line-height: 1.35;
	opacity: 1;
}

.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu button:focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--ml-gallery-forest-dark);
}

body.ml-warm-editorial-gallery .lg-backdrop {
	background: rgb(24 34 30 / 96%);
}

body.ml-warm-editorial-gallery .lg-outer {
	color: #fffdf8;
}

body.ml-warm-editorial-gallery .lg-outer .lg-toolbar {
	display: flex;
	align-items: center;
	gap: 6px;
	/* Reserve a top row for the centred close control; other controls stay below. */
	padding-top: calc(52px + max(8px, env(safe-area-inset-top)));
	flex-wrap: wrap;
	box-sizing: border-box;
	padding-right: max(8px, env(safe-area-inset-right));
	/* lightGallery optimizes this toolbar with will-change: transform. That
	 * turns it into the containing block for fixed descendants, pinning the
	 * purchase CTA to the 65px toolbar instead of the mobile viewport. */
	will-change: auto !important;
}

body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-zoom-in,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-zoom-out,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-download,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-share,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-fullscreen,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar #sunshine--lightbox--add-to-cart,
body.ml-warm-editorial-gallery .lg-outer .lg-toolbar #sunshine--lightbox--favorite {
	display: none !important;
}

body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-close {
	position: absolute;
	top: max(8px, env(safe-area-inset-top));
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	line-height: 1;
}

/* R2: 900px matches the existing phone/tablet layout breakpoint and includes
 * 844px landscape. At 901px and above every R1 addition is inactive, so the
 * tray, list, counter and other lightbox controls retain the exact base rules. */
@media (max-width: 900px) {
	/* R1: the tray is mounted beside the toolbar, above it in the stacking order.
	 * Reserve a separate row below the centred 44px close target. The extra open
	 * body class wins over ux-repair.css even when that stylesheet loads last. */
	body.ml-warm-editorial-gallery.ml-lightbox-open .lg-outer .ml-lightbox__favorites-tray {
		top: calc(52px + max(8px, env(safe-area-inset-top)));
		right: max(72px, env(safe-area-inset-right));
		left: max(72px, env(safe-area-inset-left));
		width: auto;
		max-width: 390px;
		height: 44px;
		margin: 0 auto;
		box-sizing: border-box;
		pointer-events: none;
	}

	body.ml-warm-editorial-gallery.ml-lightbox-open .lg-outer .ml-lightbox__favorites-tray #sunshine--selection-tray-minimized {
		box-sizing: border-box;
		height: 44px;
		max-height: 44px;
		pointer-events: auto !important;
	}

	/* The list opens below the pill. Side gutters keep the native navigation
	 * targets clear; the height budget leaves the 70px cart bar plus an 8px gap
	 * clear even in a 390px-high landscape viewport. Scroll the list itself. */
	body.ml-warm-editorial-gallery.ml-lightbox-open .lg-outer .ml-lightbox__favorites-tray #sunshine--selection-tray-widget {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		max-height: min(310px, calc(100dvh - 182px - max(8px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))));
		overflow-x: hidden;
		overflow-y: auto;
		pointer-events: auto !important;
	}

	/* Keep the existing counter visibility, but place its box in the left side
	 * of the close row so neither the pill nor the open list can cover it. */
	body.ml-warm-editorial-gallery.ml-lightbox-open .lg-outer .lg-toolbar .lg-counter {
		position: absolute;
		top: max(8px, env(safe-area-inset-top));
		left: max(16px, env(safe-area-inset-left));
		right: auto;
		box-sizing: border-box;
		max-width: calc(50% - 52px);
		height: 44px;
		margin: 0;
		padding: 0;
		line-height: 44px;
		white-space: nowrap;
		overflow: hidden;
	}
}

body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-icon,
body.ml-warm-editorial-gallery .lg-outer .lg-next,
body.ml-warm-editorial-gallery .lg-outer .lg-prev {
	min-width: 44px;
	min-height: 44px;
	color: #fffdf8;
}

body.ml-warm-editorial-gallery .lg-show-in .lg-hide-items:not(.lg-closing) .lg-toolbar {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

body.ml-warm-editorial-gallery .lg-content {
	bottom: calc(92px + env(safe-area-inset-bottom));
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar {
	position: fixed;
	z-index: 99120;
	top: auto !important;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	left: auto;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	max-width: min(420px, calc(100vw - 32px));
	padding: 8px;
	background: rgb(24 34 30 / 92%);
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 14px;
	box-shadow: 0 14px 38px rgb(0 0 0 / 32%);
	backdrop-filter: blur(12px);
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--favorite,
body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--add-to-cart.ml-lightbox__purchase {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0;
	order: 0 !important;
	transform: none !important;
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--favorite {
	grid-column: 1;
	width: 52px;
	padding: 0;
	background: #fffdf8;
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 10px;
	color: var(--ml-gallery-terra, #a6533f);
	font-size: 1.25rem;
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--favorite::before {
	display: inline-block;
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--favorite.is-favorite,
body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--favorite[aria-pressed="true"] {
	background: #f4ded5;
	color: #842f22;
}

@media (max-width: 620px) {
	body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-zoom-in,
	body.ml-warm-editorial-gallery .lg-outer .lg-toolbar .lg-zoom-out,
	body.ml-warm-editorial-gallery .lg-outer .lg-toolbar [class*="cart"],
	body.ml-warm-editorial-gallery .lg-outer .lg-toolbar #sunshine--lightbox--add-to-cart {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar #sunshine--lightbox--add-to-cart.ml-lightbox__purchase {
	grid-column: 2;
	width: 100%;
	padding: 12px 20px;
	background: var(--ml-gallery-forest, #284f40);
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 10px;
	color: #fff;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}

body.ml-warm-editorial-gallery .lg-outer #sunshine--lightbox--add-to-cart.ml-lightbox__purchase:focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px #d5b66f;
}

body.ml-warm-editorial-gallery .lg-outer button:focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px #d5b66f;
}

html.ml-lightbox-open,
body.ml-lightbox-open {
	overscroll-behavior: none;
}

@media (max-width: 900px) {
	.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero {
		grid-template-columns: 1fr;
	}

	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-2,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-3,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-4,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-5,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero {
		gap: 22px;
		padding: 28px 20px;
		border-radius: 20px 20px 6px 20px;
	}

	.ml-warm-editorial-gallery .ml-gallery-hero__action {
		width: 100%;
	}

	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-2,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-3,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-4,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-5,
	.ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified.sunshine--col-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.ml-warm-editorial-gallery .lg-outer .lg-toolbar {
		gap: 2px;
	}

	body.ml-warm-editorial-gallery .lg-outer .ml-lightbox__actionbar {
		right: max(12px, env(safe-area-inset-right));
		bottom: max(12px, env(safe-area-inset-bottom));
		left: max(12px, env(safe-area-inset-left));
		width: auto;
		max-width: none;
	}

	body.ml-warm-editorial-gallery .lg-content {
		top: calc(62px + env(safe-area-inset-top));
		bottom: calc(174px + env(safe-area-inset-bottom));
	}

	body.ml-warm-editorial-gallery .lg-outer .lg-components {
		bottom: calc(82px + env(safe-area-inset-bottom));
		padding-bottom: 0;
	}

	body.ml-warm-editorial-gallery .lg-outer .lg-thumb-outer {
		max-height: 82px;
		overflow: hidden;
	}

	.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu {
		margin-top: 8px;
	}

	.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu ul {
		gap: 8px;
	}

	.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu li.sunshine--favorite {
		flex-basis: 44px;
	}

	.ml-warm-editorial-gallery #sunshine--image-items .sunshine--image-menu .ml-gallery-card__purchase-button {
		padding-inline: 8px;
		font-size: .74rem;
	}
}

.ml-demo-guide[hidden] {
	display: none !important;
}

.ml-demo-guide,
.ml-demo-guide * {
	box-sizing: border-box;
}

.ml-demo-guide {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding:
		max(12px, env(safe-area-inset-top))
		max(12px, env(safe-area-inset-right))
		max(12px, env(safe-area-inset-bottom))
		max(12px, env(safe-area-inset-left));
	background: rgb(17 30 25 / 82%);
	backdrop-filter: blur(5px);
	overflow: hidden;
	animation: ml-demo-guide-backdrop-in 180ms ease-out both;
}

.ml-demo-guide__dialog {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	width: min(720px, 100%);
	max-width: 100%;
	max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
	background: #fffdf8;
	border: 1px solid #ded5c6;
	border-radius: 22px 22px 7px 22px;
	box-shadow: 0 30px 90px rgb(0 0 0 / 42%);
	color: #20342d;
	overflow: hidden;
	animation: ml-demo-guide-dialog-in 220ms cubic-bezier(.2, .75, .2, 1) both;
}

.ml-demo-guide__scroll {
	min-width: 0;
	min-height: 0;
	padding: clamp(28px, 5vw, 48px);
	padding-top: clamp(54px, 7vw, 64px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.ml-demo-guide__close {
	position: absolute;
	z-index: 2;
	top: max(10px, env(safe-area-inset-top));
	right: max(10px, env(safe-area-inset-right));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #f5f0e6;
	border: 1px solid #cfc4b2;
	border-radius: 999px;
	color: #20342d;
	cursor: pointer;
	font: inherit;
	font-size: 1.75rem;
	line-height: 1;
}

.ml-demo-guide__close:hover {
	background: #ebe2d3;
}

.ml-demo-guide__eyebrow {
	margin: 0 56px 9px 0;
	color: #8a4434;
	font-size: .74rem;
	font-weight: 850;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ml-demo-guide h2 {
	max-width: 610px;
	margin: 0;
	color: #20342d;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.75rem, 4vw, 2.8rem);
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.05;
	text-wrap: balance;
}

.ml-demo-guide__intro {
	margin: 18px 0 0;
	color: #45574f;
	font-size: 1rem;
	line-height: 1.58;
}

.ml-demo-guide__steps {
	display: grid;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.ml-demo-guide__steps li {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	min-width: 0;
	padding: 13px;
	background: #f8f4eb;
	border: 1px solid #e5ddcf;
	border-radius: 12px;
}

.ml-demo-guide__steps svg {
	display: block;
	width: 42px;
	height: 42px;
	padding: 8px;
	background: #e8eee9;
	border-radius: 10px;
	color: #284f40;
}

.ml-demo-guide__steps h3 {
	margin: 1px 0 3px;
	color: #20342d;
	font-size: .98rem;
	font-weight: 850;
	line-height: 1.3;
}

.ml-demo-guide__steps p {
	margin: 0;
	color: #52615b;
	font-size: .9rem;
	line-height: 1.48;
	overflow-wrap: anywhere;
}

.ml-demo-guide__notice {
	margin: 18px 0 0;
	padding: 13px 15px;
	background: #f7e8e1;
	border-left: 4px solid #a6533f;
	border-radius: 3px 9px 9px 3px;
	color: #64362b;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.5;
}

.ml-demo-guide__accept {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0;
	padding:
		14px
		max(24px, env(safe-area-inset-right))
		max(14px, env(safe-area-inset-bottom))
		max(24px, env(safe-area-inset-left));
	background: #284f40;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.3;
	text-align: center;
}

.ml-demo-guide__accept:hover {
	background: #203f34;
}

.ml-demo-guide button:focus-visible {
	outline: 3px solid #fffdf8;
	outline-offset: -5px;
	box-shadow: inset 0 0 0 7px #b69245;
}

@keyframes ml-demo-guide-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ml-demo-guide-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 420px) {
	.ml-demo-guide {
		padding:
			max(6px, env(safe-area-inset-top))
			max(6px, env(safe-area-inset-right))
			max(6px, env(safe-area-inset-bottom))
			max(6px, env(safe-area-inset-left));
	}

	.ml-demo-guide__dialog {
		max-height: calc(100dvh - max(12px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
		border-radius: 16px 16px 5px 16px;
	}

	.ml-demo-guide__scroll {
		padding: 52px 16px 22px;
	}

	.ml-demo-guide__intro {
		font-size: .94rem;
	}

	.ml-demo-guide__steps li {
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 10px;
		padding: 11px;
	}

	.ml-demo-guide__steps svg {
		width: 38px;
		height: 38px;
		padding: 7px;
	}

	.ml-demo-guide__steps p,
	.ml-demo-guide__notice {
		font-size: .84rem;
	}

	.ml-demo-guide__accept {
		min-height: 56px;
		padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-demo-guide,
	.ml-demo-guide__dialog {
		animation: none !important;
		transition: none !important;
	}

	.ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a > img {
		transition: none;
	}

	body.ml-warm-editorial-gallery .lg-item,
	body.ml-warm-editorial-gallery .lg-toolbar,
	body.ml-warm-editorial-gallery .lg-next,
	body.ml-warm-editorial-gallery .lg-prev,
	body.ml-warm-editorial-gallery .lg-sub-html {
		transition: none;
	}

	body.ml-warm-editorial-gallery .lg-outer,
	body.ml-warm-editorial-gallery .lg-outer *,
	body.ml-warm-editorial-gallery .lg-outer *::before,
	body.ml-warm-editorial-gallery .lg-outer *::after,
	body.ml-warm-editorial-gallery .lg-backdrop {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* FIX2: every appended selector requires ON38; baseline above is byte-identical. */
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item {
 padding: 0;
 background: transparent;
 border: 0;
 box-shadow: none;
}
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item {
 border-radius: 0;
}
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a {
 border-radius: 0;
}
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a > img {
 transition: none;
}
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items.sunshine--layout--justified figure.sunshine--image-item {
 padding: 0;
}
@media (hover: hover) {
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]).ml-warm-editorial-gallery #sunshine--image-items figure.sunshine--image-item > a:hover > img {
 transform: none;
}
}
body.ml-shop38-modern:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]) #sunshine--image-items figure .sunshine--image-status {
 display: none !important;
}

/* UXFIX2 A01/I01: compact shared hero; B01: reserve the whole heart target. */
body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero {
 display: grid !important; margin-top: 0 !important; margin-bottom: 16px !important;
 padding: 16px !important; gap: 8px !important;
 grid-template-columns: minmax(0, 1fr) auto !important;
}
body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero h1 {
 font-size: clamp(1.5rem, 3vw, 2rem) !important; line-height: 1.1 !important;
}
body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero .ml-gallery-hero__eyebrow {
 margin: 0 0 4px !important;
}
body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero .ml-gallery-hero__count {
 margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important;
}
body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero .ml-gallery-hero__actions {
 margin: 0 !important; gap: 8px !important;
}
body.ml-warm-editorial-gallery #sunshine #sunshine--image-items .sunshine--image-menu {
 margin-top: 8px !important;
}
body.ml-warm-editorial-gallery #sunshine #sunshine--image-items .sunshine--image-menu ul {gap: 8px !important;}
body.ml-warm-editorial-gallery #sunshine #sunshine--image-items .sunshine--image-menu li.sunshine--favorite {
 flex: 0 0 46px !important; margin-left: 0 !important;
}
body.ml-warm-editorial-gallery #sunshine #sunshine--image-items .sunshine--image-menu li.ml-gallery-card__purchase {
 flex: 1 1 0; min-width: 44px;
}
@media (max-width: 680px) {
 body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero {padding: 8px 12px !important; margin-bottom: 8px !important;}
 /* Hide the introduction only when shop 38 has its visible r4 instruction tiles. */
 body.ml-shop38-modern.ml-warm-editorial-gallery:has(#sunshine--store[data-ml-shop38-inline="1"][data-ml-shop38-level="38"]):has(.ml-gallery-hero .ml-v2-steps) #sunshine--page-header.ml-gallery-hero .ml-gallery-hero__intro {display: none;}
 body.ml-warm-editorial-gallery #sunshine--page-header.ml-gallery-hero .ml-gallery-hero__actions {max-width: 110px;}
}

/* A05TRAY BEGIN: legacy favourites yield only while the photo lightbox is open.
 * The second selector wins over the relocated expanded-widget display rule. */
html.ml-lightbox-open body.ml-lightbox-open :is(#sunshine--selection-tray, #sunshine--selection-tray-widget, #sunshine--selection-tray-minimized),
html.ml-lightbox-open body.ml-warm-editorial-gallery.ml-lightbox-open .lg-outer .ml-lightbox__favorites-tray :is(#sunshine--selection-tray, #sunshine--selection-tray-widget, #sunshine--selection-tray-minimized) {
	display: none !important;
}
/* A05TRAY END */

/* A05 follow-up: the favourite tooltip never shows over the open photo viewer (same open-state selectors as the tray rule above). */
html.ml-lightbox-open .ml-favorite-tooltip,
body.ml-lightbox-open .ml-favorite-tooltip {
	display: none !important;
}
