/* =============================================================================
   Epic Caribbean - public theme styles
   Wirecutter-style affiliate review layout. Tokens come from theme.json
   (--wp--preset--*). This file is intentionally framework-free.
   ========================================================================== */

/* ---- Layout primitives --------------------------------------------------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { transition: color .15s ease, background-color .15s ease, transform .15s ease; }

::selection { background: var(--wp--preset--color--coral-500); color: #fff; }

/* ---- Buttons ------------------------------------------------------------- */

.ec-button {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .9rem 1.65rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--md);
	text-decoration: none;
	letter-spacing: .005em;
	transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
	border: 1px solid transparent;
	line-height: 1.1;
	white-space: nowrap;
}
.ec-button--primary {
	background: var(--wp--preset--color--blue-700);
	color: #fff;
}
.ec-button--primary:hover {
	background: var(--wp--preset--color--blue-900);
	color: #fff;
}
.ec-button--secondary {
	background: var(--wp--preset--color--blue-900);
	color: #fff;
}
.ec-button--secondary:hover { background: var(--wp--preset--color--blue-700); color: #fff; }
.ec-button--ghost {
	background: transparent;
	border-color: var(--wp--preset--color--ink-200);
	color: var(--wp--preset--color--ink-900);
}
.ec-button--ghost:hover {
	border-color: var(--wp--preset--color--ink-900);
	background: var(--wp--preset--color--sand-100);
}

/* WP core button defaults - keep them sane in editorial contexts */
.wp-block-button .wp-block-button__link {
	border-radius: 999px;
	font-weight: 700;
	padding: .9rem 1.65rem;
	letter-spacing: .005em;
}

/* ---- Site header --------------------------------------------------------- */

.ec-site-header { border-bottom: 1px solid var(--wp--preset--color--ink-200); }
.ec-site-header .wp-block-site-title a { text-decoration: none; }
.ec-site-header .wp-block-navigation { font-weight: 600; }
.ec-site-header .wp-block-navigation a {
	text-decoration: none;
	padding: .35rem .15rem;
	border-bottom: 2px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}
.ec-site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--coral-500);
	border-bottom-color: var(--wp--preset--color--coral-500);
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(12, 27, 34, .18);
	border: 1px solid var(--wp--preset--color--ink-200);
	min-width: 300px;
	padding: .4rem 0 .65rem;
	background: var(--wp--preset--color--white);
	overflow: hidden;
}
/* Core navigation block ships its own min-width: 200px !important on the
   visible submenu state, with this exact triple selector. We have to match
   that specificity (and !important) to widen our dropdown. */
.ec-site-header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container,
.ec-site-header .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.ec-site-header .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
	min-width: 300px !important;
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: .6rem 1.25rem;
	border: 0;
	font-weight: 500;
	color: var(--wp--preset--color--ink-700);
	white-space: normal;
	line-height: 1.35;
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background: var(--wp--preset--color--sand-50);
	color: var(--wp--preset--color--coral-500);
	border: 0;
}

/* Affiliate CTA item rendered inside a submenu — visually a pill button.
   Markup: <li class="wp-block-navigation-item ec-nav-cta ec-nav-cta--<brand>">
              <a class="wp-block-navigation-item__content">…</a>
           </li> */
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.ec-nav-cta {
	margin: .55rem .85rem 0;
	padding-top: .75rem;
	border-top: 1px solid var(--wp--preset--color--ink-200);
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.ec-nav-cta a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: .7rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-700);
	color: #fff;
	font-weight: 700;
	font-size: .875rem;
	letter-spacing: .015em;
	text-align: center;
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.ec-nav-cta a:hover {
	background: var(--wp--preset--color--blue-900);
	color: #fff;
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.ec-nav-cta--beaches a {
	background: var(--wp--preset--color--coral-500);
}
.ec-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.ec-nav-cta--beaches a:hover {
	background: var(--wp--preset--color--ink-900);
}

/* ---- Site footer --------------------------------------------------------- */

.ec-site-footer { font-feature-settings: "ss01"; }
.ec-site-footer a { color: #fff !important; text-decoration: none; }
.ec-site-footer a:hover { color: var(--wp--preset--color--sand-200) !important; text-decoration: underline; }
.ec-site-footer .wp-block-site-title a { color: #fff !important; }
.ec-site-footer .ec-footer-copy {
	margin: 0;
	text-align: center;
	font-size: .8125rem;
	letter-spacing: .02em;
	color: var(--wp--preset--color--sand-200);
}

/* ---- Pill / chip --------------------------------------------------------- */
/* Calm .ec-eyebrow lives in the Editorial section near the bottom of this file. */

.ec-pill {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sand-100);
	color: var(--wp--preset--color--ink-900);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ec-brand-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--wp--preset--color--ink-900);
	font-size: .8125rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
.ec-brand-chip strong {
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: .75rem;
}
.ec-brand-chip--sandals strong { color: var(--wp--preset--color--blue-900); }
.ec-brand-chip--beaches strong { color: var(--wp--preset--color--coral-500); }

/* ---- Trust strip --------------------------------------------------------- */

.ec-trust-strip {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--wp--preset--color--ink-200);
	border-bottom: 1px solid var(--wp--preset--color--ink-200);
}
.ec-trust-strip li {
	padding: 1.25rem 1rem;
	text-align: center;
	border-right: 1px solid var(--wp--preset--color--ink-200);
}
.ec-trust-strip li:last-child { border-right: 0; }
.ec-trust-strip strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
	line-height: 1;
}
.ec-trust-strip span {
	display: block;
	margin-top: .35rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-500);
}
@media (max-width: 800px) {
	.ec-trust-strip { grid-template-columns: 1fr 1fr; }
	.ec-trust-strip li:nth-child(2) { border-right: 0; }
	.ec-trust-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--wp--preset--color--ink-200); }
}

/* ---- Resort cards / grid ------------------------------------------------- */

.ec-resort-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
	margin-top: var(--wp--preset--spacing--40);
}
.ec-resort-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border-radius: 18px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(12,27,34,.04), 0 8px 24px rgba(12,27,34,.06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ec-resort-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(12,27,34,.06), 0 18px 36px rgba(12,27,34,.10);
}
.ec-resort-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--blue-100);
	overflow: hidden;
}
.ec-resort-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.ec-resort-card:hover .ec-resort-card__media img { transform: scale(1.04); }
.ec-resort-card__badges {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.ec-resort-card__badges li {
	background: rgba(255,255,255,.95);
	color: var(--wp--preset--color--ink-900);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 4px;
}
.ec-resort-card__body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ec-resort-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
}
.ec-resort-card__meta { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--ink-500); }
.ec-resort-card__price { color: var(--wp--preset--color--blue-700); font-weight: 700; }
.ec-resort-card__excerpt {
	margin: 4px 0 0;
	font-size: .9375rem;
	color: var(--wp--preset--color--ink-700);
	line-height: 1.55;
}
.ec-resort-card__status {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--ink-900);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ec-resort-card--coming-soon .ec-resort-card__media { opacity: .85; }
.ec-resort-card--coming-soon .ec-resort-card__media:not(:has(img)) {
	background: linear-gradient(135deg, var(--wp--preset--color--blue-100), var(--wp--preset--color--sand-100));
	min-height: 200px;
}

/* ---- Coming-soon resort treatment ---------------------------------------- */

/* Notice panel above the post-content on planned resorts */
.ec-coming-soon-panel {
	background: var(--wp--preset--color--sand-100);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-left: 4px solid var(--wp--preset--color--blue-700);
	border-radius: 14px;
	padding: 22px 26px 24px;
	margin: 0 0 28px;
}
.ec-coming-soon-panel__eyebrow {
	margin: 0 0 .5rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue-700);
}
.ec-coming-soon-panel__title {
	margin: 0 0 .5rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.ec-coming-soon-panel__copy {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-700);
}
.ec-coming-soon-panel__cta { margin: 0; }

/* Hide the live-resort sections (photos / dining / rooms / amenities) on
   coming-soon single pages -- they have no real data to show. The
   factbox + post content carry the page on its own. */
body.ec-is-coming-soon .ec-resort-sections,
body.ec-is-coming-soon .ec-keyfacts { display: none !important; }

/* ---- Sticky resort sidebar (desktop) ------------------------------------ */
/* For position:sticky to actually pin we need the sidebar's containing
   column to be TALLER than the sidebar -- which means we want the default
   flex stretch behaviour on the columns (NOT align-items:flex-start) so the
   right column matches the (much taller) left column's height. The sticky
   declaration then lives on the visible factbox card itself. */
.ec-single-resort .wp-block-columns { align-items: stretch; }
.ec-single-resort .wp-block-column > .wp-block-template-part,
.ec-single-resort .wp-block-column > .ec-resort-sidebar {
	height: 100%;
}
.ec-resort-sidebar {
	position: sticky;
	top: 24px;
	align-self: flex-start;
}
.ec-resort-sidebar .ec-factbox {
	position: sticky;
	top: 24px;
}
@media (max-width: 880px) {
	.ec-resort-sidebar,
	.ec-resort-sidebar .ec-factbox { position: static; top: auto; }
}

/* ---- Resort hero (slim title band + image showcase) --------------------
   The single-resort hero used to be a 560px full-bleed cover with the
   featured image behind the H1. Now it's a compact title strip followed by
   the [ec_resort_showcase] gallery so the real property photos dominate the
   top of the page. */
.ec-resort-hero {
	display: grid;
	gap: 0;
	align-items: start;
}
.ec-resort-hero .ec-brand-chip { margin-bottom: 0; }
.ec-resort-hero .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink-900);
}
.ec-resort-hero .ec-showcase { margin: 0; }
@media (max-width: 700px) {
	.ec-resort-hero { padding-top: var(--wp--preset--spacing--40); }
}

/* Soften the factbox CTA when the resort isn't bookable yet */
.ec-factbox--coming-soon .ec-factbox__row dd strong {
	color: var(--wp--preset--color--blue-700);
	font-weight: 700;
}

/* Single-resort body content - keep paragraphs flush with the column gutter
   (no inset). The column is already constrained, so we don't need a second
   constrained wrapper around the post content. */
.ec-single-resort .wp-block-column .wp-block-post-content > * { max-width: none; }
.ec-single-resort .wp-block-column .wp-block-post-content { padding: 0; }
.ec-single-resort .wp-block-column .wp-block-post-content > p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-900);
	margin: 0 0 1.1rem;
}
.ec-single-resort .wp-block-column .wp-block-post-content > p:last-child { margin-bottom: 0; }

/* The article-stack sections (Photos / Dining / Rooms / What's Included) sit
   below post-content in the same column, no extra inset. */
.ec-resort-sections { padding: 0; margin-top: var(--wp--preset--spacing--50); }
.ec-resort-sections > h2 { margin-top: 2rem; }
.ec-resort-sections > h2:first-child { margin-top: 0; }

/* ---- Ranked list (homepage + listicles) --------------------------------- */

.ec-rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
	counter-reset: ec-rank;
}
.ec-rank-item { counter-increment: ec-rank; }
.ec-rank-item__link {
	display: grid;
	grid-template-columns: 64px 200px 1fr auto;
	align-items: center;
	gap: 22px;
	padding: 18px 22px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ec-rank-item__link:hover {
	border-color: var(--wp--preset--color--coral-500);
	box-shadow: 0 8px 24px rgba(12,27,34,.08);
	transform: translateY(-1px);
}
.ec-rank-item__number {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--coral-500);
	line-height: 1;
	letter-spacing: -0.02em;
	text-align: center;
}
.ec-rank-item__media {
	display: block;
	width: 200px;
	height: 130px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-color: var(--wp--preset--color--blue-100);
}
.ec-rank-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ec-rank-item__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.ec-rank-item__loc { font-size: .8125rem; font-weight: 600; color: var(--wp--preset--color--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.ec-rank-item__tag { font-size: .9375rem; color: var(--wp--preset--color--ink-700); font-style: italic; }
.ec-rank-item__price { font-size: .8125rem; color: var(--wp--preset--color--blue-700); font-weight: 700; margin-top: 2px; }
.ec-rank-item__cta {
	font-size: .8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--coral-500);
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
@media (max-width: 800px) {
	.ec-rank-item__link {
		grid-template-columns: 48px 1fr;
		grid-template-areas:
			"num title"
			"media media"
			"body body"
			"cta cta";
		gap: 12px;
		padding: 14px 16px;
	}
	.ec-rank-item__number { grid-area: num; font-size: 2rem; text-align: left; }
	.ec-rank-item__title { grid-area: title; font-size: 1.125rem; align-self: center; }
	.ec-rank-item__media { grid-area: media; width: 100%; height: 180px; }
	.ec-rank-item__body { grid-area: body; }
	.ec-rank-item__body .ec-rank-item__title { display: none; }
	.ec-rank-item__cta { grid-area: cta; text-align: right; }
}

/* ---- Destination cards --------------------------------------------------- */

.ec-destination-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin-top: var(--wp--preset--spacing--40);
}
.ec-destination-card {
	display: block;
	color: inherit;
	text-decoration: none;
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--blue-100);
	box-shadow: 0 1px 2px rgba(12,27,34,.04), 0 6px 18px rgba(12,27,34,.05);
	transition: transform .2s ease, box-shadow .2s ease;
	position: relative;
}
.ec-destination-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(12,27,34,.06), 0 14px 28px rgba(12,27,34,.10); }
.ec-destination-card__media {
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	transition: transform .4s ease;
}
.ec-destination-card:hover .ec-destination-card__media { transform: scale(1.04); }
.ec-destination-card__title {
	margin: 0;
	padding: 14px 18px 18px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.005em;
}

/* ---- Compare table ------------------------------------------------------- */

.ec-compare-wrap {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
}
.ec-compare {
	width: 100%;
	border-collapse: collapse;
	font-size: .9375rem;
}
.ec-compare th, .ec-compare td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--ink-200);
	white-space: nowrap;
}
.ec-compare thead th {
	background: var(--wp--preset--color--sand-100);
	color: var(--wp--preset--color--ink-700);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ec-compare tbody tr:last-child td { border-bottom: 0; }
.ec-compare tbody tr:hover { background: var(--wp--preset--color--sand-50); }
.ec-compare a { color: var(--wp--preset--color--ink-900); font-weight: 600; text-decoration: none; }
.ec-compare a:hover { color: var(--wp--preset--color--coral-500); text-decoration: underline; }
.ec-compare__cta {
	color: var(--wp--preset--color--coral-500) !important;
	font-weight: 700 !important;
	font-size: .8125rem;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.ec-compare__cta:hover { color: var(--wp--preset--color--coral-500) !important; }

/* ---- Single-resort key facts -------------------------------------------- */

.ec-keyfacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(12,27,34,.06);
}
.ec-keyfacts__cell {
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-right: 1px solid var(--wp--preset--color--ink-200);
}
.ec-keyfacts__cell:last-child { border-right: 0; }
.ec-keyfacts__label {
	display: block;
	margin-bottom: 4px;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-500);
}
.ec-keyfacts__value {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
	line-height: 1.15;
}
@media (max-width: 800px) {
	.ec-keyfacts { grid-template-columns: 1fr 1fr; }
	.ec-keyfacts__cell { border-right: 1px solid var(--wp--preset--color--ink-200); border-bottom: 1px solid var(--wp--preset--color--ink-200); }
	.ec-keyfacts__cell:nth-child(2n) { border-right: 0; }
}

/* ---- Single resort layout ----------------------------------------------- */

.ec-single-resort { background: var(--wp--preset--color--sand-50); }

.ec-resort-hero { position: relative; }
.ec-resort-hero .ec-brand-chip { margin-bottom: 1rem; }

.ec-factbox {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 16px;
	padding: 22px 22px 24px;
	font-size: .9375rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}
.ec-factbox__title {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--wp--preset--color--ink-500);
}
.ec-factbox__list {
	margin: 0 0 18px;
	display: grid;
	gap: 10px;
}
.ec-factbox__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	border-bottom: 1px dashed var(--wp--preset--color--ink-200);
	padding-bottom: 8px;
}
.ec-factbox__row:last-of-type { border-bottom: none; padding-bottom: 0; }
.ec-factbox__row dt {
	color: var(--wp--preset--color--ink-500);
	font-weight: 600;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.ec-factbox__row dd {
	margin: 0;
	color: var(--wp--preset--color--ink-900);
	font-weight: 700;
	text-align: right;
	font-size: .9375rem;
}
.ec-factbox .ec-button {
	display: flex;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	justify-content: center;
	margin-top: 12px;
	padding: .85rem 1rem;
	font-size: .9375rem;
	white-space: normal;
	text-align: center;
	line-height: 1.2;
}

/* ---- Amenities / dining / rooms ----------------------------------------- */

.ec-amenities {
	columns: 2;
	column-gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ec-amenities li {
	break-inside: avoid;
	padding: 8px 0 8px 26px;
	position: relative;
	font-size: .9375rem;
	color: var(--wp--preset--color--ink-700);
}
.ec-amenities li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--coral-500);
	border-radius: 50%;
	box-shadow: inset 0 0 0 3px #fff;
}

.ec-dining { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.ec-dining h3 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	text-transform: none;
	letter-spacing: -0.005em;
}
.ec-dining ul { list-style: none; margin: 0; padding: 0; }
.ec-dining li {
	padding: 10px 0;
	border-bottom: 1px solid var(--wp--preset--color--ink-200);
	font-size: .9375rem;
}
.ec-dining li:last-child { border-bottom: 0; }
.ec-dining__meta {
	display: block;
	font-size: .8125rem;
	color: var(--wp--preset--color--ink-500);
	margin-top: 2px;
}

.ec-rooms { display: grid; gap: 0; }
.ec-rooms__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--ink-200);
	align-items: center;
}
.ec-rooms__row:last-child { border-bottom: 0; }
.ec-rooms__name { font-weight: 700; color: var(--wp--preset--color--ink-900); }
.ec-rooms__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-rooms__tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-100);
	color: var(--wp--preset--color--blue-700);
}

/* ---- Gallery ------------------------------------------------------------- */

.ec-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.ec-gallery__item { display: block; border-radius: 12px; overflow: hidden; }
.ec-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4/3;
	transition: transform .4s ease;
}
.ec-gallery__item:hover img { transform: scale(1.05); }

/* ---- Sticky table of contents ------------------------------------------- */

.ec-toc {
	background: var(--wp--preset--color--sand-100);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 14px;
	padding: 18px 20px;
	font-size: .875rem;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}
.ec-toc__title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: .6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--wp--preset--color--ink-500);
	margin-bottom: 12px;
}
.ec-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ec-toc;
	display: grid;
	gap: 4px;
}
.ec-toc__list li { counter-increment: ec-toc; }
.ec-toc__list a {
	display: flex;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--wp--preset--color--ink-700);
	text-decoration: none;
	line-height: 1.35;
	transition: background-color .15s ease, color .15s ease;
}
.ec-toc__list a:before {
	content: counter(ec-toc);
	flex: 0 0 22px;
	color: var(--wp--preset--color--coral-500);
	font-weight: 700;
	text-align: right;
}
.ec-toc__list a:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink-900);
}
.ec-toc__list a.is-active {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink-900);
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(12,27,34,.06);
}

/* ---- Editorial post body (single.html + single-resorts.html) ----------- */

.ec-post-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 760px) 1fr;
	gap: 48px;
	align-items: start;
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--60);
}
.ec-post-layout__rail--left { position: sticky; top: 24px; }
.ec-post-layout__main { min-width: 0; }
.ec-post-layout__rail--right { position: sticky; top: 24px; }
@media (max-width: 1180px) {
	.ec-post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ec-post-layout__rail--left { position: static; }
	.ec-post-layout__rail--right { display: none; }
	.ec-post-layout .ec-toc { position: static; max-height: none; }
}

/* Hero / meta inside .ec-post-layout */
.ec-post-hero { margin-bottom: var(--wp--preset--spacing--40); }
.ec-post-hero h1 { margin: 0 0 .75rem; }
.ec-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: .8125rem;
	color: var(--wp--preset--color--ink-500);
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* Lead paragraph */
.entry-content > p:first-of-type,
.wp-block-post-content > p:first-of-type {
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-700);
}

/* Body type rhythm - editorial, no Wirecutter chrome */
.wp-block-post-content { color: var(--wp--preset--color--ink-900); }
.wp-block-post-content > p, .wp-block-post-content > ul, .wp-block-post-content > ol { font-size: 1.0625rem; line-height: 1.75; }
.wp-block-post-content h2 { scroll-margin-top: 100px; }
.wp-block-post-content h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.01em;
	margin-top: 2rem;
	margin-bottom: .5rem;
	text-transform: none;
}
.wp-block-post-content h4 {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.005em;
	margin-top: 1.75rem;
	margin-bottom: .5rem;
}

/* Body images */
.wp-block-post-content figure.wp-block-image { margin: 2rem 0; }
.wp-block-post-content figure.wp-block-image img { border-radius: 12px; }
.wp-block-post-content figure.wp-block-image figcaption {
	font-size: .8125rem;
	color: var(--wp--preset--color--ink-500);
	text-align: center;
	margin-top: .5rem;
}

/* Blockquote (Pro Tip rows) */
.wp-block-post-content blockquote, .wp-block-post-content .wp-block-quote {
	background: var(--wp--preset--color--sand-100);
	border-left: 3px solid var(--wp--preset--color--coral-500);
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--ink-700);
}
.wp-block-post-content blockquote p, .wp-block-post-content .wp-block-quote p { margin: 0; }

/* Buttons in post body - never let them be 50% squeezed */
.wp-block-post-content .wp-block-buttons,
.wp-block-post-content .wp-block-button {
	margin: 1.5rem 0;
}
.wp-block-post-content .wp-block-buttons > .wp-block-button.has-custom-width {
	max-width: none;
	width: auto;
}
.wp-block-post-content .wp-block-buttons > .wp-block-button.wp-block-button__width-50 .wp-block-button__link,
.wp-block-post-content .wp-block-buttons > .wp-block-button.wp-block-button__width-25 .wp-block-button__link,
.wp-block-post-content .wp-block-buttons > .wp-block-button.wp-block-button__width-75 .wp-block-button__link,
.wp-block-post-content .wp-block-buttons > .wp-block-button.wp-block-button__width-100 .wp-block-button__link {
	width: auto;
	max-width: none;
}
.wp-block-post-content .wp-block-button .wp-block-button__link {
	display: inline-block;
	background: var(--wp--preset--color--blue-700);
	color: #fff;
	padding: .9rem 1.65rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	font-size: 1rem;
}
.wp-block-post-content .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--blue-900); color: #fff; }

/* Lists inside body */
.wp-block-post-content ul, .wp-block-post-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.wp-block-post-content li { margin-bottom: .5rem; line-height: 1.65; }
.wp-block-post-content li > strong { color: var(--wp--preset--color--ink-900); }

/* Carousel (legacy cb/carousel-v2) - reasonable sizing */
.wp-block-post-content .wp-block-cb-carousel-v2 {
	margin: 1.75rem 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--ink-200);
}
.wp-block-post-content .wp-block-cb-carousel-v2 .wp-block-image,
.wp-block-post-content .wp-block-cb-carousel-v2 figure { margin: 0; border-radius: 0; }
.wp-block-post-content .wp-block-cb-carousel-v2 .wp-block-image img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; }

/* Legacy generateblocks containers - tame them so they don't break our layout */
.wp-block-post-content .gb-container {
	margin: 1.5rem 0;
	max-width: 100% !important;
}
.wp-block-post-content .gb-container > .gb-inside-container { padding: 0 !important; max-width: 100% !important; }

/* Separator inside post body */
.wp-block-post-content hr.wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--wp--preset--color--ink-200);
	margin: 2.5rem auto;
	max-width: 240px;
}

/* ---- Archive cards (post grid) ------------------------------------------ */

/* Neutralise legacy GP-Premium / GenerateBlocks column classes that get
   appended to <li.wp-block-post> via post_class. They apply float-based
   widths (grid-33 / grid-66 / featured-column) and clobber the
   wp-block-post-template CSS grid -- making the first card 2x wider and
   the rest crammed. Reset everything inside our query templates. */
.wp-block-post-template.is-layout-grid > li,
.wp-block-post-template.is-layout-grid > li.featured-column,
.wp-block-post-template.is-layout-grid > li.grid-33,
.wp-block-post-template.is-layout-grid > li.grid-66,
.wp-block-post-template.is-layout-grid > li.tablet-grid-50,
.wp-block-post-template.is-layout-grid > li.mobile-grid-100 {
	width: auto !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ec-archive-card {
	background: var(--wp--preset--color--white);
	border-radius: 14px;
	overflow: hidden;
	padding: 0;
	box-shadow: 0 1px 2px rgba(12,27,34,.04), 0 8px 22px rgba(12,27,34,.06);
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.ec-archive-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(12,27,34,.06), 0 14px 30px rgba(12,27,34,.10); }
.ec-archive-card .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--sand-100);
}
.ec-archive-card .wp-block-post-featured-image a,
.ec-archive-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ec-archive-card .wp-block-post-title {
	padding: 18px 20px 0;
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--ink-900);
	text-transform: none; /* defeat theme.json h3 uppercase + letter-spacing */
}
.ec-archive-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.ec-archive-card .wp-block-post-title a:hover { color: var(--wp--preset--color--coral-500); }
.ec-archive-card .wp-block-post-excerpt {
	padding: 0 20px 18px;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-700);
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.ec-archive-card .wp-block-post-excerpt__excerpt {
	margin: 0 0 .65rem;
	flex: 1 1 auto;
}
.ec-archive-card .wp-block-post-excerpt__more-text { margin: 0; }
.ec-archive-card .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--coral-500);
	font-weight: 700;
	text-decoration: none;
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* The post-template grid emits a 3-col layout. On tablet collapse to 2 cols,
   on mobile collapse to 1 col so cards never crush. Use the wp-container hash
   to win specificity over the inline grid-template-columns rule. */
@media (max-width: 1024px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 640px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Pagination */
.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60);
	gap: 8px !important;
	justify-content: center;
}
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	color: var(--wp--preset--color--ink-700);
	text-decoration: none;
	font-weight: 600;
}
.wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--coral-500); color: var(--wp--preset--color--coral-500); }
.wp-block-query-pagination .current {
	background: var(--wp--preset--color--ink-900);
	color: #fff;
	border-color: var(--wp--preset--color--ink-900);
}

/* ---- FAQ ----------------------------------------------------------------- */

.ec-faq__item {
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 12px;
	padding: 16px 20px;
	margin: 10px 0;
	background: var(--wp--preset--color--white);
}
.ec-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	list-style: none;
}
.ec-faq__item summary::-webkit-details-marker { display: none; }
.ec-faq__item[open] summary { color: var(--wp--preset--color--coral-500); }
.ec-faq__item summary:after { content: " +"; float: right; font-weight: 400; }
.ec-faq__item[open] summary:after { content: " -"; }

/* ---- Section / page rhythm helpers -------------------------------------- */

.ec-section { padding: var(--wp--preset--spacing--70) 0; }
.ec-section__head { text-align: center; max-width: 720px; margin: 0 auto var(--wp--preset--spacing--50); }
.ec-section__head h2 { margin: 0 0 .75rem; }
.ec-section__head p { color: var(--wp--preset--color--ink-500); font-size: 1.125rem; }

/* ---- Filter chips (archives) -------------------------------------------- */

.ec-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--wp--preset--spacing--40) 0; }
.ec-chips a {
	display: inline-flex;
	align-items: center;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	color: var(--wp--preset--color--ink-700);
	text-decoration: none;
	font-weight: 600;
	font-size: .875rem;
}
.ec-chips a:hover { border-color: var(--wp--preset--color--ink-900); color: var(--wp--preset--color--ink-900); }
.ec-chips a.is-active { background: var(--wp--preset--color--ink-900); color: #fff; border-color: var(--wp--preset--color--ink-900); }

/* ---- Scroll snap horizontal row ----------------------------------------- */

.ec-scroll-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 280px);
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 1rem;
	padding: 4px 0 16px;
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}
.ec-scroll-row > * { scroll-snap-align: start; }

/* ---- Responsive collapses ----------------------------------------------- */

@media (max-width: 880px) {
	.ec-amenities { columns: 1; }
	.ec-dining { grid-template-columns: 1fr; gap: 24px; }
	.ec-factbox { position: static; }
}

@media (max-width: 640px) {
	.ec-resort-grid { grid-template-columns: 1fr; gap: 16px; }
	.ec-destination-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ==========================================================================
   Editorial single-post header  (single.html)
   ========================================================================== */

.ec-single-post .ec-post-hero { margin-bottom: var(--wp--preset--spacing--30); }

.wp-block-post-title,
.ec-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-900);
}

.ec-post-meta {
	display: flex !important;
	align-items: center;
	gap: .5rem;
	flex-wrap: nowrap;
	font-size: .875rem;
	color: var(--wp--preset--color--ink-500);
	font-family: var(--wp--preset--font-family--sans);
}
.ec-post-meta > * { margin: 0; padding: 0; font-size: inherit; color: inherit; line-height: 1; }
.ec-post-meta .wp-block-post-author-name,
.ec-post-meta .wp-block-post-date,
.ec-post-meta .ec-post-date { display: inline-block; }
.ec-post-meta .wp-block-post-author-name a,
.ec-post-meta .wp-block-post-date a { color: inherit; text-decoration: none; }
.ec-post-meta__sep { opacity: .6; }
.ec-post-date__label {
	display: inline-block;
	margin-right: .35em;
	padding: 2px 7px;
	background: var(--wp--preset--color--coral-200);
	color: var(--wp--preset--color--coral-500);
	border-radius: 999px;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	vertical-align: middle;
	line-height: 1.4;
}

.ec-post-hero__image .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	max-height: 520px;
}
.ec-post-hero__image .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
	border-radius: 14px;
}

/* Reading column body padding so the 760px column never bumps the viewport */
.ec-single-post {
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}
@media (max-width: 600px) {
	.ec-single-post { padding-left: var(--wp--preset--spacing--30); padding-right: var(--wp--preset--spacing--30); }
}

/* ==========================================================================
   Advisor credit block
   ========================================================================== */

.ec-advisor-credit {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	padding: 18px 22px;
	border-top: 1px solid var(--wp--preset--color--ink-200);
	border-bottom: 1px solid var(--wp--preset--color--ink-200);
	background: var(--wp--preset--color--sand-50);
	border-radius: 12px;
}
.ec-advisor-credit__label {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-500);
	white-space: nowrap;
}
.ec-advisor-credit__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-advisor-credit__body strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink-900);
	letter-spacing: -0.005em;
}
.ec-advisor-credit__body span {
	font-size: .875rem;
	color: var(--wp--preset--color--ink-700);
	line-height: 1.5;
}
@media (max-width: 600px) {
	.ec-advisor-credit { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
}

/* ==========================================================================
   Hub category pages  (category-sandals-resorts.html / category-beaches-resorts.html)
   ========================================================================== */

.ec-hub-hero { background: var(--wp--preset--color--sand-50); }
.ec-hub-hero h1 { color: var(--wp--preset--color--ink-900); }
.ec-hub-hero .ec-eyebrow { color: var(--wp--preset--color--ink-500); }

.ec-term-description {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--wp--preset--color--ink-700);
	max-width: 720px;
}
.ec-term-description p { margin: 0 0 .85rem; }
.ec-term-description p:last-child { margin-bottom: 0; }

.ec-hub-section { padding-left: var(--wp--preset--spacing--40); padding-right: var(--wp--preset--spacing--40); }
.ec-hub-section .ec-eyebrow { color: var(--wp--preset--color--ink-500); }
.ec-hub-section h2 { color: var(--wp--preset--color--ink-900); }
@media (max-width: 600px) {
	.ec-hub-section, .ec-hub-hero { padding-left: var(--wp--preset--spacing--30); padding-right: var(--wp--preset--spacing--30); }
}

/* ==========================================================================
   Eyebrow rebalance  (calmer than the original coral all-caps)
   ========================================================================== */

.ec-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-500);
	margin: 0 0 .75rem;
}

/* ==========================================================================
   Resort showcase  ([ec_resort_showcase] shortcode + ec-lightbox overlay)
   ========================================================================== */

.ec-showcase {
	margin: 1.5rem 0 2.25rem;
	display: grid;
	gap: 14px;
}
.ec-showcase__cta {
	display: flex;
	justify-content: center;
}
.ec-showcase__button {
	min-width: 260px;
	text-align: center;
}
.ec-showcase__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 1fr;
}
@media (min-width: 700px) {
	.ec-showcase__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
	.ec-showcase__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.ec-showcase__tile {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--ink-100, #e8ecef);
}
.ec-showcase__tile a {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none;
	outline: none;
}
.ec-showcase__tile a:focus-visible {
	box-shadow: 0 0 0 3px var(--wp--preset--color--blue-500, #0066cc);
	border-radius: 12px;
}
.ec-showcase__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.ec-showcase__tile:hover img { transform: scale(1.04); }
.ec-showcase__tile--hero {
	grid-column: span 2;
	grid-row:    span 2;
	aspect-ratio: auto;
}
@media (max-width: 699px) {
	.ec-showcase__tile--hero {
		grid-column: span 2;
		grid-row:    span 1;
		aspect-ratio: 16 / 9;
	}
}
.ec-showcase__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(13, 32, 57, .55);
	color: #fff;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .01em;
	backdrop-filter: blur(1px);
}
/* Per-viewport overlay visibility. Default: only desktop overlay shows; the
   mobile overlay is rendered into the HTML so the count is correct but kept
   hidden until the mobile breakpoint. */
.ec-showcase__more--mobile { display: none; }
@media (max-width: 699px) {
	.ec-showcase__tile--desktop-only { display: none; }
	.ec-showcase__more--desktop     { display: none; }
	.ec-showcase__more--mobile      { display: flex; }
	.ec-showcase__cta               { width: 100%; }
	.ec-showcase__button            { width: 100%; min-width: 0; }
	.ec-showcase__grid              { gap: 8px; }
}
.ec-showcase__footer {
	text-align: center;
	margin: 0;
	font-size: .9375rem;
}
.ec-showcase__footer a {
	color: var(--wp--preset--color--ink-700, #3d4a5b);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Lightbox overlay ---------------------------------------------------- */

html.ec-lightbox-open,
html.ec-lightbox-open body {
	overflow: hidden;
}
.ec-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(7, 15, 28, .94);
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: 1fr auto;
	align-items: center;
	justify-items: center;
	padding: clamp(12px, 3vw, 32px);
	animation: ec-lightbox-fade .2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
	.ec-lightbox { animation: none; }
	.ec-showcase__tile img { transition: none; }
}
@keyframes ec-lightbox-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.ec-lightbox[hidden] { display: none; }
.ec-lightbox__figure {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
	display: grid;
	gap: 10px;
	place-items: center;
	max-width: min(1200px, 92vw);
	max-height: calc(100vh - 120px);
}
.ec-lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 160px);
	object-fit: contain;
	border-radius: 6px;
	background: #000;
	transition: opacity .2s ease;
}
.ec-lightbox__img.is-loading { opacity: .4; }
.ec-lightbox__caption {
	color: #e9eef6;
	font-size: .9375rem;
	line-height: 1.4;
	text-align: center;
	max-width: 800px;
	padding: 0 8px;
}
.ec-lightbox__caption[hidden] { display: none; }
.ec-lightbox__close,
.ec-lightbox__nav {
	position: absolute;
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	transition: background-color .15s ease, transform .15s ease;
}
.ec-lightbox__close:hover,
.ec-lightbox__nav:hover {
	background: rgba(255, 255, 255, .22);
}
.ec-lightbox__close:focus-visible,
.ec-lightbox__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.ec-lightbox__close {
	top: 14px;
	right: 14px;
	font-size: 28px;
}
.ec-lightbox__nav--prev { left:  14px; top: 50%; transform: translateY(-50%); }
.ec-lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.ec-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.ec-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }
.ec-lightbox__counter {
	grid-column: 1 / -1;
	grid-row: 2;
	color: rgba(255, 255, 255, .75);
	font-size: .8125rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding-top: 6px;
}
@media (max-width: 600px) {
	.ec-lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
	.ec-lightbox__nav--prev { left: 8px; }
	.ec-lightbox__nav--next { right: 8px; }
	.ec-lightbox__close    { top: 10px; right: 10px; }
}
