/* ==========================================================================
   e-Church site header & footer
   Matches the main site (customchurchwebsite.com/New-site/).
   Everything is scoped to .ec-* classes so it can't collide with the
   theme's Bootstrap / legacy styles.
   ========================================================================== */

:root {
	--ec-orange: #fb8317;
	--ec-orange-tint: #fff5eb;
	--ec-black: #000;
	--ec-white: #fff;
	--ec-text: #0c0b0a;
	--ec-muted: #5f5953;
	--ec-on-dark: rgba(255, 255, 255, .7);
	--ec-on-dark-faint: rgba(255, 255, 255, .5);
	--ec-line-dark: rgba(255, 255, 255, .12);
	--ec-radius-xl: clamp(28px, 4vw, 56px);
	--ec-wrap: 1240px;
	--ec-gutter: clamp(20px, 4vw, 40px);
	--ec-ease: cubic-bezier(.22, 1, .36, 1);
	--ec-header-h: 76px;
	--ec-font: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Local reset (neutralises Bootstrap / reset.css inside header & footer) ---- */
.ec-header, .ec-footer {
	font-family: var(--ec-font);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.ec-header, .ec-header *, .ec-header ::before, .ec-header ::after,
.ec-footer, .ec-footer *, .ec-footer ::before, .ec-footer ::after { box-sizing: border-box; }
.ec-header :is(h1, h2, h3, p, ul, ol, li),
.ec-footer :is(h1, h2, h3, p, ul, ol, li) { margin: 0; padding: 0; font-weight: inherit; }
.ec-header :is(ul, ol), .ec-footer :is(ul, ol) { list-style: none; }
.ec-header a, .ec-footer a { color: inherit; text-decoration: none; background: none; }
.ec-header :is(a:hover, a:focus, a:visited),
.ec-footer :is(a:hover, a:focus, a:visited) { text-decoration: none; }
.ec-header :is(img, svg), .ec-footer :is(img, svg) { display: block; max-width: 100%; }
.ec-header button {
	margin: 0; padding: 0; border: 0; background: none; color: inherit;
	font: inherit; letter-spacing: inherit; cursor: pointer; box-shadow: none;
}
.ec-header :is(b, strong), .ec-footer :is(b, strong) { font-weight: 700; color: inherit; }
.ec-header :focus-visible, .ec-footer :focus-visible {
	outline: 2px solid var(--ec-orange);
	outline-offset: 3px;
	border-radius: 8px;
}

.ec-wrap { width: 100%; max-width: var(--ec-wrap); margin: 0 auto; padding: 0 var(--ec-gutter); }

.ec-header .ico, .ec-footer .ico {
	display: inline-block; flex-shrink: 0; width: 20px; height: 20px;
	fill: none; stroke: currentColor; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}
.ec-header .ico .a { stroke: var(--ec-orange); }

/* ---- Button ---- */
.ec-btn {
	--ec-bg: var(--ec-orange);
	--ec-fg: var(--ec-black);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	border: 0; border-radius: 999px;
	background: var(--ec-bg); color: var(--ec-fg);
	font-family: var(--ec-font); font-size: 16px; font-weight: 700; line-height: 1;
	white-space: nowrap; text-decoration: none;
	box-shadow: 0 12px 28px -12px rgba(251, 131, 23, .7);
	transition: transform .35s var(--ec-ease), box-shadow .35s var(--ec-ease), background-color .25s, color .25s;
}
.ec-header .ec-btn, .ec-footer .ec-btn,
.ec-header .ec-btn:hover, .ec-footer .ec-btn:hover,
.ec-header .ec-btn:focus, .ec-footer .ec-btn:focus { color: var(--ec-fg); background: var(--ec-bg); }
.ec-btn:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 18px 36px -14px rgba(251, 131, 23, .85); }
.ec-btn .ico { transition: transform .35s var(--ec-ease); }
.ec-btn:hover .ico { transform: translate3d(3px, 0, 0); }

/* ==========================================================================
   Header
   ========================================================================== */
.ec-header {
	position: fixed; top: 0; left: 0; right: 0;
	z-index: 1000;
	height: var(--ec-header-h);
	background: rgba(0, 0, 0, .88);
	color: var(--ec-white);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	transition: box-shadow .3s;
}
.ec-header.is-scrolled { box-shadow: 0 1px 0 var(--ec-line-dark); }
.ec-header-bar {
	height: 100%; max-width: 1360px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* Reserves the space the fixed header covers */
.ec-header-spacer { height: var(--ec-header-h); background: var(--ec-black); }
/* Clear the WordPress admin bar when logged in */
.admin-bar .ec-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ec-header { top: 46px; } }

.ec-brand { display: flex; align-items: center; flex-shrink: 0; }
.ec-brand img { width: auto; height: 30px; }

.ec-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ec-header .ec-nav-link {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	height: 42px; padding: 0 13px;
	border-radius: 999px;
	font-size: 15px; font-weight: 400;
	color: rgba(255, 255, 255, .78);
	white-space: nowrap;
	transition: color .2s;
}
.ec-nav-link::after {
	content: "";
	position: absolute; left: 13px; right: 13px; bottom: 5px;
	height: 1.5px; background: var(--ec-orange);
	transform: scaleX(0); transform-origin: left center;
	transition: transform .35s var(--ec-ease);
}
.ec-header .ec-nav-link:hover, .ec-header .ec-nav-link:focus,
.ec-header .ec-nav-link[aria-expanded="true"], .ec-header .ec-nav-link[aria-current="page"] { color: var(--ec-white); }
.ec-nav-link:hover::after, .ec-nav-link[aria-expanded="true"]::after, .ec-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.ec-nav-link .ec-chev { width: 14px; height: 14px; stroke-width: 2.4; transition: transform .35s var(--ec-ease); }
.ec-nav-link[aria-expanded="true"] .ec-chev { transform: rotate(180deg); }

.ec-nav-actions {
	display: flex; align-items: center; gap: 6px;
	margin-left: 12px; padding-left: 14px;
	border-left: 1px solid var(--ec-line-dark);
}
.ec-nav-actions .ec-btn { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ---- Dropdown ---- */
.ec-nav-drop { position: relative; }
.ec-drop-panel {
	position: absolute; left: 50%; top: 100%; z-index: 10;
	padding-top: 14px;
	opacity: 0; visibility: hidden;
	transform: translate3d(-50%, 8px, 0);
	transition: opacity .2s var(--ec-ease), transform .35s var(--ec-ease), visibility 0s linear .35s;
}
.ec-drop-panel.ec-align-right { left: auto; right: -20px; transform: translate3d(0, 8px, 0); }
.ec-drop-card {
	position: relative; min-width: 330px; padding: 8px;
	border-radius: 18px;
	background: var(--ec-white); color: var(--ec-text);
	box-shadow: 0 0 0 1px rgba(12, 11, 10, .06), 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.ec-drop-card::before {
	content: ""; position: absolute; top: -6px; left: calc(50% - 6px);
	width: 12px; height: 12px; background: var(--ec-white);
	border-radius: 3px 0 0; transform: rotate(45deg);
}
.ec-align-right .ec-drop-card::before { left: auto; right: 44px; }
.ec-header .ec-drop-card a {
	display: grid; grid-template-columns: 40px 1fr; gap: 1px 14px; align-items: center;
	padding: 10px 12px; border-radius: 12px;
	color: var(--ec-text);
	opacity: 0; transform: translate3d(0, 6px, 0);
	transition: background-color .2s, opacity .3s var(--ec-ease), transform .4s var(--ec-ease);
}
.ec-drop-card a:nth-child(2) { transition-delay: 0s, .04s, .04s; }
.ec-header .ec-drop-card a:hover, .ec-header .ec-drop-card a:focus-visible { background: var(--ec-orange-tint); color: var(--ec-text); }
.ec-header .ec-drop-card .ico {
	grid-row: span 2; width: 40px; height: 40px; padding: 9px;
	border-radius: 11px; background: var(--ec-orange-tint); color: var(--ec-text);
	transition: background-color .2s, transform .35s var(--ec-ease);
}
.ec-drop-card a:hover .ico { background: var(--ec-white); transform: scale(1.06); }
.ec-drop-card b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ec-drop-card small { font-size: 13px; line-height: 1.35; color: var(--ec-muted); }

@media (min-width: 1241px) {
	.ec-nav-link[aria-expanded="true"] + .ec-drop-panel {
		opacity: 1; visibility: visible;
		transform: translate3d(-50%, 0, 0);
		transition-delay: 0s;
	}
	.ec-nav-link[aria-expanded="true"] + .ec-drop-panel.ec-align-right { transform: none; }
	.ec-nav-link[aria-expanded="true"] + .ec-drop-panel .ec-drop-card a { opacity: 1; transform: none; }
}

/* ---- Mobile menu toggle ---- */
.ec-header .ec-menu-toggle {
	display: none; position: relative;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--ec-line-dark);
	background: rgba(255, 255, 255, .06);
}
.ec-menu-toggle span {
	position: absolute; left: 14px; right: 14px;
	height: 1.5px; background: var(--ec-white);
	transition: transform .35s var(--ec-ease);
}
.ec-menu-toggle span:nth-child(1) { top: 18px; }
.ec-menu-toggle span:nth-child(2) { top: 26px; }
.ec-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate3d(0, 4px, 0) rotate(45deg); }
.ec-menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate3d(0, -4px, 0) rotate(-45deg); }

/* ---- Tablet & mobile: full-screen menu ---- */
@media (max-width: 1240px) {
	.ec-header { background: var(--ec-black); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.ec-header .ec-menu-toggle { display: block; margin-left: auto; }

	.ec-nav {
		position: fixed; top: var(--ec-header-h); left: 0; right: 0; bottom: 0;
		z-index: 999;
		flex-direction: column; align-items: stretch; gap: 0;
		margin: 0;
		padding: 8px var(--ec-gutter) 40px;
		overflow-y: auto; overscroll-behavior: contain;
		background: var(--ec-black);
		opacity: 0; visibility: hidden;
		transform: translate3d(0, -10px, 0);
		transition: opacity .3s, transform .4s var(--ec-ease), visibility 0s .4s;
	}
	.admin-bar .ec-nav { top: calc(var(--ec-header-h) + 32px); }
	.ec-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.ec-nav > * { flex-shrink: 0; }
	.ec-header .ec-nav > .ec-nav-link, .ec-header .ec-nav-drop > .ec-nav-link {
		width: 100%; height: 62px; padding: 0 4px;
		border-radius: 0; border-bottom: 1px solid var(--ec-line-dark);
		justify-content: space-between;
		font-size: 20px; color: var(--ec-white);
	}
	.ec-nav-link::after { display: none; }
	.ec-header .ec-nav-link[aria-current="page"] { color: var(--ec-orange); }
	.ec-nav-link .ec-chev { width: 18px; height: 18px; }

	.ec-drop-panel, .ec-drop-panel.ec-align-right {
		position: static; padding: 0;
		opacity: 1; visibility: visible; transform: none;
		display: grid; grid-template-rows: 0fr;
		transition: grid-template-rows .4s var(--ec-ease);
	}
	.ec-drop-panel > .ec-drop-card { overflow: hidden; min-height: 0; }
	.ec-nav-link[aria-expanded="true"] + .ec-drop-panel { grid-template-rows: 1fr; }
	.ec-nav-link[aria-expanded="true"] + .ec-drop-panel .ec-drop-card a { opacity: 1; transform: none; }
	.ec-drop-card { min-width: 0; padding: 0; border-radius: 0; background: none; color: var(--ec-white); box-shadow: none; }
	.ec-drop-card::before { display: none; }
	.ec-header .ec-drop-card a { padding: 11px 4px; color: var(--ec-white); }
	.ec-drop-card a:first-child { margin-top: 8px; }
	.ec-drop-card a:last-child { margin-bottom: 12px; }
	.ec-header .ec-drop-card a:hover, .ec-header .ec-drop-card a:focus-visible { background: rgba(255, 255, 255, .05); color: var(--ec-white); }
	.ec-header .ec-drop-card .ico { background: rgba(251, 131, 23, .16); color: var(--ec-white); }
	.ec-drop-card small { color: var(--ec-on-dark-faint); }

	.ec-nav-actions {
		flex-direction: column; align-items: stretch; gap: 12px;
		margin: 28px 0 0; padding: 0; border: 0;
	}
	.ec-header .ec-nav-actions .ec-nav-link {
		justify-content: center; height: 54px;
		font-size: 17px; color: var(--ec-white);
		border: 1px solid var(--ec-line-dark); border-radius: 999px;
	}
	.ec-nav-actions .ec-btn { min-height: 54px; font-size: 17px; }

	body.ec-menu-open { overflow: hidden; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* js/yamm/demo.css pads the body, which leaves a white strip under the footer */
body { padding-bottom: 0; }

.ec-footer {
	position: relative; clear: both; overflow: hidden;
	width: 100%;
	background: var(--ec-black); color: var(--ec-white);
	border-radius: var(--ec-radius-xl) var(--ec-radius-xl) 0 0;
}
.ec-footer::before {
	content: ""; position: absolute; left: 50%; top: -320px;
	width: 1100px; height: 560px;
	transform: translateX(-50%);
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(251, 131, 23, .18), transparent 70%);
}
.ec-footer .ec-wrap { position: relative; }

.ec-footer-top {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 40px; align-items: end;
	padding: clamp(64px, 8vw, 100px) 0 clamp(44px, 5vw, 64px);
	border-bottom: 1px solid var(--ec-line-dark);
}
.ec-footer-brand img { width: auto; height: 30px; }
.ec-footer .ec-footer-brand h2 {
	max-width: 21ch; margin-top: 28px;
	font-family: var(--ec-font);
	font-size: clamp(32px, 3.8vw, 51.2px); font-weight: 900;
	line-height: 1.02; letter-spacing: -.04em;
	color: var(--ec-white);
}
.ec-footer-brand h2 span { font-weight: 300; }

.ec-footer-contact { display: grid; justify-items: end; gap: 4px; text-align: right; }
.ec-label { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ec-orange); }
.ec-footer .ec-phone {
	font-size: clamp(28.8px, 3.4vw, 44.8px); font-weight: 900;
	line-height: 1.15; letter-spacing: -.03em;
	color: var(--ec-white); transition: color .2s;
}
.ec-footer .ec-phone:hover, .ec-footer .ec-phone:focus { color: var(--ec-orange); }
.ec-footer .ec-mail { color: var(--ec-on-dark); transition: color .2s; }
.ec-footer .ec-mail:hover, .ec-footer .ec-mail:focus { color: var(--ec-white); }
.ec-footer-cta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ec-footer-cta .ico { width: 18px; height: 18px; }

.ec-footer-nav {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	padding: clamp(44px, 5vw, 64px) 0;
}
.ec-footer .ec-footer-nav h3 {
	margin-bottom: 14px;
	font-family: var(--ec-font);
	font-size: 13px; font-weight: 700; line-height: 1.5;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--ec-on-dark-faint);
}
.ec-footer-nav ul { display: grid; gap: 2px; }
.ec-footer .ec-footer-nav a {
	display: inline-flex; align-items: center; min-height: 38px;
	font-size: 15.5px; line-height: 1.35;
	color: rgba(255, 255, 255, .84);
	transition: color .2s, transform .3s var(--ec-ease);
}
.ec-footer .ec-footer-nav a:hover, .ec-footer .ec-footer-nav a:focus { color: var(--ec-orange); transform: translate3d(3px, 0, 0); }

.ec-footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px;
	padding: 22px 0 30px;
	border-top: 1px solid var(--ec-line-dark);
	font-size: 14px; color: var(--ec-on-dark-faint);
}
.ec-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.ec-footer .ec-footer-legal > a {
	display: inline-flex; align-items: center; min-height: 40px;
	font-size: 14px; color: var(--ec-on-dark-faint); transition: color .2s;
}
.ec-footer .ec-footer-legal > a:hover, .ec-footer .ec-footer-legal > a:focus { color: var(--ec-white); }
.ec-socials { display: flex; gap: 10px; }
.ec-footer .ec-socials a {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 1px solid var(--ec-line-dark); border-radius: 50%;
	color: var(--ec-white);
	transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ec-ease);
}
.ec-footer .ec-socials a:hover, .ec-footer .ec-socials a:focus {
	background: var(--ec-orange); border-color: var(--ec-orange); color: var(--ec-black);
	transform: translate3d(0, -3px, 0);
}
.ec-socials svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 980px) {
	.ec-footer-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.ec-footer-contact { justify-items: start; text-align: left; }
	.ec-footer-cta { justify-content: flex-start; }
	.ec-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ec-footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 400px) {
	.ec-footer-nav { gap: 32px 18px; }
	.ec-footer .ec-footer-nav a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.ec-header, .ec-header *, .ec-footer, .ec-footer * {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}
}

/* ==========================================================================
   Page hero (blog) — mirrors the main site's inside-page hero
   ========================================================================== */
.ec-page-hero {
	--ph-orange: #e57119;
	--ph-ink: #0f172a;
	--ph-muted: #64748b;
	--ph-line: #e5e7eb;
	position: relative; overflow: hidden; isolation: isolate;
	background: #fff;
	font-family: var(--ec-font); font-size: 16px; line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-align: left; letter-spacing: normal; text-transform: none;
}
.ec-page-hero, .ec-page-hero *, .ec-page-hero ::before, .ec-page-hero ::after { box-sizing: border-box; }
.ec-page-hero :is(h1, p, ol, li) { margin: 0; padding: 0; }
.ec-page-hero ol { list-style: none; }
.ec-page-hero a { text-decoration: none; background: none; }

.ec-ph-bg {
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(1200px 700px at 100% -10%, rgba(229, 113, 25, .28), transparent 60%),
		radial-gradient(900px 600px at 100% 40%, rgba(229, 113, 25, .12), transparent 60%),
		#fff;
}
.ec-ph-bg::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(circle at 75% 30%, #000, transparent 60%);
	        mask-image: radial-gradient(circle at 75% 30%, #000, transparent 60%);
	opacity: .6;
}

.ec-ph-inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
	min-height: 480px; padding-top: 40px; padding-bottom: 40px;
}

/* breadcrumb */
.ec-page-hero .ec-ph-crumbs { margin-bottom: 22px; }
.ec-ph-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ph-muted); }
.ec-ph-crumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.ec-ph-crumbs a { color: var(--ph-muted); transition: color .2s; }
.ec-ph-crumbs a:hover, .ec-ph-crumbs a:focus { color: var(--ph-orange); text-decoration: none; }
.ec-ph-crumbs [aria-current] { color: var(--ph-ink); font-weight: 700; }

/* eyebrow pill */
.ec-ph-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; margin-bottom: 22px;
	background: #fff; border: 1px solid #fbd5b5; border-radius: 999px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
	font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-ink);
}
.ec-ph-pill svg { width: 14px; height: 14px; fill: none; stroke: var(--ph-orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ec-page-hero .ec-ph-title {
	margin-bottom: 22px;
	font-family: var(--ec-font); font-size: clamp(36px, 4.6vw, 58px); font-weight: 900;
	line-height: 1.05; letter-spacing: -.02em; color: var(--ph-ink);
	text-wrap: balance;
}
.ec-ph-accent { color: var(--ph-orange); }
.ec-page-hero .ec-ph-lede {
	max-width: 520px; margin-bottom: 32px;
	font-size: 17px; line-height: 1.65; color: var(--ph-muted);
}

.ec-ph-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ec-page-hero .ec-btn, .ec-page-hero .ec-btn:hover, .ec-page-hero .ec-btn:focus { color: var(--ec-fg); background: var(--ec-bg); text-decoration: none; }
.ec-page-hero .ec-btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ec-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 26px;
	border: 1.5px solid var(--ph-line); border-radius: 999px;
	background: #fff; color: var(--ph-ink);
	font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: transform .35s var(--ec-ease), border-color .25s, color .25s;
}
.ec-page-hero .ec-btn-ghost:hover, .ec-page-hero .ec-btn-ghost:focus { border-color: var(--ph-orange); color: var(--ph-orange); transform: translate3d(0, -2px, 0); text-decoration: none; }
.ec-page-hero :focus-visible { outline: 2px solid var(--ph-orange); outline-offset: 3px; }

/* illustration */
.ec-ph-art { display: flex; align-items: center; justify-content: center; }
.ec-ph-art svg { display: block; width: 100%; max-width: 520px; height: auto; overflow: visible; }
.ec-ph-pop { animation: ecPhPop .7s var(--ec-ease) both; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.ec-ph-bob { animation: ecPhBob var(--dur, 4s) ease-in-out 1s infinite; }
.ec-ph-breathe { animation: ecPhBreathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ecPhPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ecPhBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ecPhBreathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .8; } }

@media (max-width: 900px) {
	.ec-ph-inner { grid-template-columns: 1fr; min-height: 0; gap: 16px; padding-top: 32px; }
	.ec-ph-art svg { max-width: 420px; }
}
@media (max-width: 560px) {
	.ec-ph-art { display: none; }
	.ec-ph-actions > a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ec-ph-pop, .ec-ph-bob, .ec-ph-breathe { animation: none; }
}
