/**
 * Loving Digitals — public Digital Announcement page
 * (/memorial/<slug>/announcement/).
 *
 * Standalone document styles. Deliberately minimal: the page exists to present
 * one finished piece of artwork as clearly as possible, then get out of the way.
 * Mobile-first, fast, and visually focused on the uploaded design — never
 * cropped, always its original aspect ratio.
 */

:root {
	--ldann-navy: #0b1f3a;
	--ldann-navy-2: #102a4c;
	--ldann-gold: #c9a227;
	--ldann-ink: #26303c;
	--ldann-muted: #6b7684;
	--ldann-ground: #eef1f5;
	--ldann-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.ldann {
	margin: 0;
	background: var(--ldann-ground);
	color: var(--ldann-ink);
	font-family: var(--ldann-sans);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.ldann-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Respect notch / safe areas. */
	padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.ldann-main {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	flex: 1 0 auto;
}

/* The artwork. Constrained on desktop, natural width on mobile; never cropped. */
.ldann-figure {
	margin: 0;
	width: 100%;
	display: flex;
	justify-content: center;
}

.ldann-img {
	width: auto;
	max-width: 100%;
	max-height: 88vh;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(11, 31, 58, 0.16);
	background: #fff;
}

/* Sharing actions */
.ldann-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.ldann-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid var(--ldann-navy);
	background: #fff;
	color: var(--ldann-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ldann-btn:hover { background: #f3f6fb; }
.ldann-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.18); }

.ldann-btn--primary {
	background: var(--ldann-navy);
	color: #fff;
	-webkit-text-fill-color: #fff;
}
.ldann-btn--primary:hover { background: var(--ldann-navy-2); }

.ldann-copied {
	margin: 0;
	min-height: 20px;
	color: #0b5a2c;
	font-weight: 600;
	font-size: 14px;
}

/* Funeral-home footer (public branding only) */
.ldann-footer {
	margin-top: 26px;
	text-align: center;
	color: var(--ldann-muted);
	flex-shrink: 0;
}
.ldann-footer__logo { max-height: 64px; max-width: 200px; width: auto; height: auto; margin: 0 auto 8px; }
.ldann-footer__name { margin: 0; font-weight: 600; color: var(--ldann-ink); font-size: 14px; }

/* Lightbox */
.ldann-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(7, 21, 40, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 9999;
}
.ldann-lightbox[hidden] { display: none; }
.ldann-lightbox img {
	max-width: 100%;
	max-height: 92vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ldann-lightbox__close {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.ldann-lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

@media (min-width: 721px) {
	.ldann-wrap { padding-top: 40px; }
}

/* Language selector styling now lives in the self-contained LDPP_I18n::selector()
   component (scoped <style> emitted once per page). See class-ldpp-i18n.php. */
