/* Church single — matches /design/Church Single - Calvary.dc.html */
.edwtn-cvy {
	--cvy-ink: #17171b;
	--cvy-muted: #6b6b72;
	--cvy-soft: #5f5f66;
	--cvy-line: #e2e0d9;
	--cvy-paper: #f6f5f1;
	--cvy-navy: #0b2337;
	--cvy-blue: #005288;
	--cvy-blue-deep: #00365c;
	--cvy-gold: #fdcb57;
	--cvy-cream: #f6f4ee;
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cvy-ink);
	background: var(--cvy-paper);
	-webkit-font-smoothing: antialiased;
}

.edwtn-cvy *,
.edwtn-cvy *::before,
.edwtn-cvy *::after {
	box-sizing: border-box;
}

.edwtn-cvy a {
	color: var(--cvy-blue);
	text-decoration: none;
}

.edwtn-cvy a:hover {
	color: var(--cvy-blue-deep);
}

.edwtn-cvy :focus-visible {
	outline: 2px solid var(--cvy-blue);
	outline-offset: 2px;
}

/*
 * Elementor kit / Hello theme paint native <button> and headings site-wide
 * (blue pill chrome, dark heading ink, uppercase). Reset inside the shortcode
 * so component rules below can win.
 */
.edwtn-cvy button {
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit !important;
	letter-spacing: normal !important;
	line-height: inherit !important;
	margin: 0;
	padding: 0;
	text-align: inherit;
	text-shadow: none !important;
	text-transform: none !important;
}

.edwtn-cvy h1,
.edwtn-cvy h2,
.edwtn-cvy h3,
.edwtn-cvy h4,
.edwtn-cvy h5,
.edwtn-cvy h6 {
	background: none !important;
	box-shadow: none !important;
}

.edwtn-cvy-wrap {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Hero */
.edwtn-cvy-hero {
	position: relative;
	background-color: var(--cvy-navy);
	background-image:
		radial-gradient(46% 62% at 14% 22%, rgba(56, 124, 168, 0.85) 0%, rgba(56, 124, 168, 0) 68%),
		radial-gradient(38% 54% at 78% 12%, rgba(24, 74, 112, 0.9) 0%, rgba(24, 74, 112, 0) 70%),
		radial-gradient(58% 78% at 62% 88%, rgba(15, 52, 82, 0.95) 0%, rgba(15, 52, 82, 0) 72%),
		radial-gradient(34% 46% at 92% 64%, rgba(80, 152, 196, 0.55) 0%, rgba(80, 152, 196, 0) 66%),
		radial-gradient(30% 40% at 34% 74%, rgba(39, 97, 137, 0.7) 0%, rgba(39, 97, 137, 0) 70%);
	background-size: cover;
	color: var(--cvy-cream);
}

.edwtn-cvy-hero__inner {
	position: relative;
	width: 100%;
	min-height: clamp(320px, 46vh, 540px);
	display: flex;
	flex-direction: column;
}

.edwtn-cvy-hero__crumbs {
	max-width: 1440px;
	width: 100%;
	margin-inline: auto;
	padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.edwtn-cvy-hero__row {
	margin-top: auto;
	max-width: 1440px;
	width: 100%;
	margin-inline: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.6rem, 3.5vw, 2.6rem);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.edwtn-cvy-hero__copy {
	flex: 1 1 340px;
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

/* Rank Math + fallback breadcrumb chrome on navy hero. */
.edwtn-cvy .edwtn-cvy-crumbs,
.edwtn-cvy .rank-math-breadcrumb {
	margin: 0;
	padding: 0;
	font-family: "Hanken Grotesk", system-ui, sans-serif !important;
	font-size: 0.82rem !important;
	line-height: 1.4;
	color: rgba(246, 244, 238, 0.7) !important;
}

.edwtn-cvy .edwtn-cvy-crumbs p,
.edwtn-cvy .rank-math-breadcrumb p,
.edwtn-cvy .edwtn-cvy-crumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font: inherit;
	color: inherit;
}

.edwtn-cvy .edwtn-cvy-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.edwtn-cvy .edwtn-cvy-crumbs a,
.edwtn-cvy .rank-math-breadcrumb a {
	color: rgba(246, 244, 238, 0.85) !important;
	text-decoration: none !important;
}

.edwtn-cvy .edwtn-cvy-crumbs a:hover,
.edwtn-cvy .rank-math-breadcrumb a:hover {
	color: var(--cvy-gold) !important;
}

.edwtn-cvy .edwtn-cvy-crumbs .separator,
.edwtn-cvy .rank-math-breadcrumb .separator,
.edwtn-cvy .edwtn-cvy-crumbs .last,
.edwtn-cvy .rank-math-breadcrumb .last {
	color: rgba(246, 244, 238, 0.55) !important;
}

/* Beat Elementor/kit heading color (#282828) on the navy hero. */
.edwtn-cvy .edwtn-cvy-hero h1,
.edwtn-cvy .edwtn-cvy-hero__copy > h1 {
	margin: auto 0 0;
	padding-top: 1.5rem;
	font-family: Newsreader, Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.1rem, 5.4vw, 4.1rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #f6f4ee !important;
	max-width: 24ch;
}

.edwtn-cvy-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	margin-top: 0.9rem;
}

.edwtn-cvy .edwtn-cvy-hero__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.02rem;
	color: rgba(246, 244, 238, 0.85) !important;
}

.edwtn-cvy .edwtn-cvy-hero__meta a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	font-size: 1rem;
	color: #f6f4ee !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.edwtn-cvy .edwtn-cvy-hero__meta a:hover {
	color: var(--cvy-gold) !important;
	text-decoration: none !important;
}

.edwtn-cvy-hero__media {
	flex: 1 1 320px;
	min-width: 0;
	max-width: 560px;
}

.edwtn-cvy-hero__frame {
	position: relative;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Absolute fill beats theme img { height:auto } so cover actually crops. */
.edwtn-cvy .edwtn-cvy-hero__frame > img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.edwtn-cvy-hero__crest {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 2rem;
}

.edwtn-cvy-hero__crest img {
	width: min(42%, 180px);
	height: auto;
	opacity: 0.92;
}

/* Seasonal schedules */
.edwtn-cvy-schedules {
	padding-block: clamp(2.6rem, 5.2vw, 4.2rem);
}

.edwtn-cvy-schedules__head {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: flex-end;
	gap: 1rem clamp(1rem, 2vw, 1.5rem);
}

.edwtn-cvy-eyebrow,
.edwtn-cvy .edwtn-cvy-label,
.edwtn-cvy h4.edwtn-cvy-label {
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	line-height: 1.35 !important;
	color: #5f5f66 !important;
	background: none !important;
	margin: 0;
}

/*
 * Heading scale (subheads consistent by role, not by one-off selectors):
 *   h2 section  — Newsreader display
 *   h3 subhead  — Newsreader subsection (schedules, Worship, Leadership, CTA)
 *   h3/h4 item  — Newsreader card/person title
 *   h2 rail + .edwtn-cvy-label — mono eyebrow labels
 */
.edwtn-cvy-schedules h2,
.edwtn-cvy-about > h2,
.edwtn-cvy-gallery h2,
.edwtn-cvy-nearby h2 {
	font-family: Newsreader, Georgia, serif !important;
	font-weight: 300 !important;
	font-size: clamp(1.7rem, 3.2vw, 2.3rem) !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0.7rem 0 0;
	text-transform: none !important;
}

.edwtn-cvy-schedules h2,
.edwtn-cvy-about > h2,
.edwtn-cvy-nearby h2 {
	color: #17171b !important;
}

.edwtn-cvy-schedules h2 {
	max-width: 24ch;
}

.edwtn-cvy-sch-card h3,
.edwtn-cvy-rt > h3,
.edwtn-cvy-cta h3 {
	font-family: Newsreader, Georgia, serif !important;
	font-weight: 500 !important;
	font-size: 1.35rem !important;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: #17171b !important;
	text-transform: none !important;
}

.edwtn-cvy-leader__body h4,
.edwtn-cvy-near-card h3 {
	font-family: Newsreader, Georgia, serif !important;
	font-weight: 500 !important;
	font-size: 1.15rem !important;
	letter-spacing: -0.015em;
	line-height: 1.28;
	color: #17171b !important;
	text-transform: none !important;
}

.edwtn-cvy-schedules__lede {
	color: var(--cvy-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.edwtn-cvy-schedules__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-top: clamp(1.6rem, 3.2vw, 2.5rem);
}

.edwtn-cvy-sch-card {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--cvy-line);
	border-radius: 14px;
	padding: clamp(1.3rem, 2.2vw, 1.75rem);
}

.edwtn-cvy-sch-card h3 {
	margin: 0;
}

.edwtn-cvy-sch-card__note {
	color: var(--cvy-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0.55rem 0 0;
	max-width: 44ch;
}

.edwtn-cvy-sch-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 0;
	border-top: 1px solid #ebeae3;
}

.edwtn-cvy-sch-row:first-of-type {
	margin-top: 1rem;
}

.edwtn-cvy-sch-row__date {
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #3e3e45 !important;
}

.edwtn-cvy-sch-row__label {
	font-family: Newsreader, Georgia, serif !important;
	font-size: 1.05rem !important;
	font-weight: 500 !important;
	color: #17171b !important;
	margin-top: 0.25rem;
}

.edwtn-cvy-sch-row__time {
	flex: none;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cvy-blue);
	padding-top: 0.1rem;
}

/* Main + rail */
.edwtn-cvy-main {
	padding-block: clamp(2.6rem, 5.2vw, 4.2rem);
}

.edwtn-cvy-main__row {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: flex-start;
	justify-content: space-between;
}

.edwtn-cvy-main__row.is-rail-only {
	justify-content: flex-end;
}

.edwtn-cvy-rail {
	flex: 1 1 280px;
	max-width: 400px;
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

.edwtn-cvy-main__row.is-rail-only .edwtn-cvy-rail {
	max-width: 760px;
}

.edwtn-cvy-rail h2 {
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: #5f5f66 !important;
	margin: 0;
}

.edwtn-cvy-rail__address {
	font-size: 1.06rem;
	line-height: 1.55;
	margin: 0.6rem 0 0;
	color: var(--cvy-ink);
}

.edwtn-cvy-rail__access {
	margin: 0.75rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--cvy-muted);
}

.edwtn-cvy-map-wrap {
	position: relative;
	margin-top: 1rem;
	border: 1px solid var(--cvy-line);
	border-radius: 14px;
	overflow: hidden;
	background: #e8eef3;
	padding: 0;
}

.edwtn-cvy-map-wrap iframe {
	display: block;
	width: 100%;
	/* Taller + pulled up clips Google’s white place card under our CTA.
	   !important beats Elementor `.elementor iframe { margin: 0 }` (same specificity, later). */
	height: 286px !important;
	margin: -56px 0 0 !important;
	border: 0;
	border-radius: 0;
	max-width: none;
}

.edwtn-cvy-map-wrap .edwtn-cvy-btn-map {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 0.76rem;
	line-height: 1;
	padding: 0.55rem 0.85rem;
	border-radius: 999px !important;
	background: #005288 !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 8px 18px rgba(11, 35, 55, 0.28) !important;
	text-decoration: none !important;
}

.edwtn-cvy-map-wrap .edwtn-cvy-btn-map:hover {
	background: #00365c !important;
	color: #fff !important;
}

.edwtn-cvy-contact {
	border-top: 1px solid var(--cvy-line);
	padding-top: 1.4rem;
}

.edwtn-cvy-contact__phone,
.edwtn-cvy-contact__email {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	max-width: 100%;
	margin-top: 0.6rem;
	font-family: "Hanken Grotesk", system-ui, sans-serif !important;
	font-size: 1.06rem !important;
	font-weight: 700 !important;
	color: #17171b !important;
}

.edwtn-cvy-contact__phone:hover,
.edwtn-cvy-contact__email:hover {
	color: #005288 !important;
}

.edwtn-cvy-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.edwtn-cvy-social a {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--cvy-line);
	background: #fff;
	color: var(--cvy-blue);
	display: grid;
	place-items: center;
	font-size: 0.95rem;
}

.edwtn-cvy-social a:hover {
	background: var(--cvy-blue);
	color: #fff;
	border-color: var(--cvy-blue);
}

.edwtn-cvy-about {
	flex: 2 1 420px;
	min-width: 0;
}

.edwtn-cvy-about > h2 {
	margin: 0;
}

.edwtn-cvy-rt {
	max-width: none;
	margin-top: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	font-size: 1.06rem;
	line-height: 1.7;
	color: #3e3e45;
}

/* About body copy: one sans size — no serif lede / no wp-block drift. */
.edwtn-cvy .edwtn-cvy-rt > p,
.edwtn-cvy .edwtn-cvy-rt > p.wp-block-paragraph {
	font-family: "Hanken Grotesk", system-ui, sans-serif !important;
	font-size: 1.06rem !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
	color: #3e3e45 !important;
	margin: 0;
}

.edwtn-cvy-rt > h3 {
	margin: 1.1rem 0 0;
}

.edwtn-cvy-worship-box {
	background: #fff !important;
	border: 1px solid var(--cvy-line) !important;
	border-radius: 12px;
	padding: 1.15rem 1.3rem;
}

.edwtn-cvy-worship-box > .edwtn-cvy-label {
	margin: 0 0 0.4rem !important;
}

.edwtn-cvy-worship-row + .edwtn-cvy-worship-row {
	border-top: 1px solid #ebeae3;
}

.edwtn-cvy-worship-row > button {
	width: 100%;
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: left;
	cursor: pointer;
	font: inherit !important;
	text-transform: none !important;
	color: #17171b !important;
}

.edwtn-cvy-worship-row > button:hover,
.edwtn-cvy-worship-row > button:hover .edwtn-cvy-worship-row__label,
.edwtn-cvy-worship-row > button:hover .edwtn-cvy-worship-row__time {
	color: #005288 !important;
}

.edwtn-cvy-worship-row__label {
	flex: 1;
	font-size: 0.94rem !important;
	font-weight: 600 !important;
	color: #17171b !important;
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	text-transform: none !important;
}

.edwtn-cvy-worship-row__time {
	flex: none;
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 0.86rem !important;
	font-weight: 500 !important;
	color: #005288 !important;
	text-transform: none !important;
}

.edwtn-cvy-worship-row__body {
	display: none;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #6b6b72 !important;
	padding: 0 0 0.75rem 1.15rem;
	margin: 0;
}

.edwtn-cvy-worship-row.is-open .edwtn-cvy-worship-row__body {
	display: block;
}

.edwtn-cvy-cta {
	background: #fff;
	border: 1px solid var(--cvy-line);
	border-left: 4px solid var(--cvy-gold);
	border-radius: 4px 12px 12px 4px;
	padding: 1.3rem 1.4rem;
}

.edwtn-cvy-cta h3 {
	margin: 0;
}

.edwtn-cvy-cta p {
	font-size: 1rem;
	line-height: 1.65;
	margin: 0.5rem 0 0;
}

.edwtn-cvy-cta a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-weight: 800;
	font-size: 0.86rem;
	line-height: 1;
	padding: 0.8rem 1.2rem;
	border-radius: 999px;
	background: #005288 !important;
	color: #fff !important;
	text-decoration: none;
}

.edwtn-cvy-cta a:hover {
	background: #00365c !important;
	color: #fff !important;
}

.edwtn-cvy-leader {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.25rem;
	background: #fff;
	border: 1px solid var(--cvy-line);
	border-radius: 12px;
	padding: 1.25rem;
}

.edwtn-cvy-leader__photo {
	position: relative;
	flex: 0 0 160px;
	align-self: flex-start;
	width: 160px;
	height: 160px;
	min-width: 160px;
	min-height: 160px;
	max-width: 160px;
	max-height: 160px;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f0eb;
}

/* Absolute fill beats theme img { height:auto } so portraits stay square. */
.edwtn-cvy .edwtn-cvy-leader__photo img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center top;
	display: block;
}

.edwtn-cvy-leader__body {
	flex: 1 1 220px;
	min-width: 0;
}

.edwtn-cvy-leader__body h4 {
	margin: 0;
}

.edwtn-cvy-leader__role {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cvy-soft);
	margin-top: 0.3rem;
}

.edwtn-cvy-leader__bio {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0.55rem 0 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 3;
}

.edwtn-cvy-leader.is-open .edwtn-cvy-leader__bio {
	-webkit-line-clamp: unset;
	display: block;
}

.edwtn-cvy-leader__more {
	margin-top: 0.5rem;
	display: inline-flex !important;
	align-items: center;
	gap: 0.45rem;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	color: #005288 !important;
	font-family: inherit !important;
	text-transform: none !important;
}

.edwtn-cvy-leader__more:hover {
	color: #00365c !important;
}

.edwtn-cvy-leaders {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 0.25rem;
}

/* Gallery */
.edwtn-cvy-gallery {
	background-color: var(--cvy-navy);
	background-image:
		radial-gradient(46% 62% at 14% 22%, rgba(56, 124, 168, 0.85) 0%, rgba(56, 124, 168, 0) 68%),
		radial-gradient(38% 54% at 78% 12%, rgba(24, 74, 112, 0.9) 0%, rgba(24, 74, 112, 0) 70%),
		radial-gradient(58% 78% at 62% 88%, rgba(15, 52, 82, 0.95) 0%, rgba(15, 52, 82, 0) 72%);
	color: var(--cvy-cream);
	padding-block: clamp(2.4rem, 4.8vw, 3.8rem);
}

.edwtn-cvy-gallery__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem 2rem;
}

.edwtn-cvy-gallery h2 {
	color: #f6f4ee !important;
	margin: 0;
}

.edwtn-cvy-gallery__count {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(246, 244, 238, 0.6);
}

.edwtn-cvy-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
	gap: clamp(0.7rem, 1.4vw, 1rem);
	margin-top: clamp(1.3rem, 2.6vw, 1.9rem);
}

.edwtn-cvy-gallery figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.edwtn-cvy-gallery figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.edwtn-cvy-gallery figure button {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	width: 36px;
	height: 36px;
	border-radius: 999px !important;
	border: none !important;
	background: rgba(11, 35, 55, 0.72) !important;
	color: #fff !important;
	display: grid !important;
	place-items: center;
	font-size: 0.8rem !important;
	cursor: pointer;
	padding: 0 !important;
}

.edwtn-cvy-gallery figure button:hover {
	background: #0b2337 !important;
	color: #fff !important;
}

/* Nearby */
.edwtn-cvy-nearby {
	background: var(--cvy-paper);
	border-top: 1px solid var(--cvy-line);
	padding-block: clamp(2.4rem, 4.8vw, 3.8rem);
}

.edwtn-cvy-nearby__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem 2rem;
}

.edwtn-cvy-nearby h2 {
	margin: 0;
}

.edwtn-cvy-nearby__all {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cvy-blue);
}

.edwtn-cvy-nearby__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(1rem, 2vw, 1.4rem);
	margin-top: clamp(1.3rem, 2.6vw, 1.9rem);
}

@media (max-width: 900px) {
	.edwtn-cvy-nearby__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.edwtn-cvy-nearby__grid {
		grid-template-columns: 1fr;
	}
}

.edwtn-cvy-near-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--cvy-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
	color: inherit;
	text-decoration: none;
}

.edwtn-cvy-near-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
	color: inherit;
}

.edwtn-cvy-near-card__media {
	position: relative;
	/* Fixed frame — theme `img { height:auto }` was letting thumbs dictate height. */
	aspect-ratio: 16 / 10;
	flex: 0 0 auto;
	overflow: hidden;
	background: #f1f0eb;
}

.edwtn-cvy-near-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
}

.edwtn-cvy-near-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.05rem 1.15rem 1.2rem;
	flex: 1;
	min-height: 0;
}

.edwtn-cvy-near-card h3 {
	margin: 0;
	/* Reserve ~2 lines so city/CTA rows stay level across the grid. */
	min-height: calc(1.28em * 2);
}

.edwtn-cvy-near-card p {
	margin: 0;
	color: #5f5f66;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.35;
}

.edwtn-cvy-near-card__cta {
	margin-top: auto;
	padding-top: 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	font-size: 0.84rem;
	color: var(--cvy-blue);
}

/* Lightbox */
.edwtn-cvy-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(8, 20, 32, 0.94);
	display: none;
	flex-direction: column;
	padding: clamp(0.75rem, 2vw, 1.5rem);
	cursor: zoom-out;
}

.edwtn-cvy-lightbox.is-open {
	display: flex;
}

.edwtn-cvy-lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
	z-index: 2;
	cursor: default;
}

.edwtn-cvy-lightbox__count {
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 0.85rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f6f4ee !important;
}

/* Beat theme button chrome; keep controls visible above the site header. */
.edwtn-cvy-lightbox button.edwtn-cvy-lightbox__close,
.edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav,
body > .edwtn-cvy-lightbox button.edwtn-cvy-lightbox__close,
body > .edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav {
	width: auto !important;
	min-width: 52px !important;
	height: 52px !important;
	flex: none;
	border-radius: 999px !important;
	border: 1px solid rgba(246, 244, 238, 0.55) !important;
	background: #0b2337 !important;
	color: #f6f4ee !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	cursor: pointer;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 0 1rem !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
	text-transform: none !important;
	pointer-events: auto !important;
	position: relative;
	z-index: 3;
}

.edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav,
body > .edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav {
	width: 52px !important;
	padding: 0 !important;
}

.edwtn-cvy-lightbox button.edwtn-cvy-lightbox__close:hover,
.edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav:hover,
body > .edwtn-cvy-lightbox button.edwtn-cvy-lightbox__close:hover,
body > .edwtn-cvy-lightbox button.edwtn-cvy-lightbox__nav:hover {
	background: #00365c !important;
	border-color: #fdcb57 !important;
	color: #fdcb57 !important;
}

.edwtn-cvy-lightbox button i {
	pointer-events: none;
}

.edwtn-cvy-lightbox__close-label {
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.edwtn-cvy-lightbox__stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 2vw, 1.5rem);
	padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

.edwtn-cvy-lightbox__image {
	flex: 1;
	min-width: 0;
	height: 100%;
	display: grid;
	place-items: center;
}

.edwtn-cvy-lightbox__image img {
	max-width: 100%;
	max-height: min(72vh, 900px);
	object-fit: contain;
	border-radius: 8px;
}

.edwtn-cvy-lightbox__caption {
	text-align: center;
	font-family: "Hanken Grotesk", system-ui, sans-serif !important;
	font-size: 1rem !important;
	color: #f6f4ee !important;
	max-width: 60ch;
	margin: 0 auto;
}

@media (max-width: 720px) {
	.edwtn-cvy-rail {
		max-width: none;
	}

	.edwtn-cvy-hero__media {
		max-width: none;
	}
}
