/* ==========================================================================
   La Marginella — theme styles
   Palette from the estate: olive-grove green, olive-leaf silver, the gold of
   the sign. Type: Cormorant Garamond (display), Jost (text). Both self-hosted.
   ========================================================================== */

:root {
	--ink: #1f241b;
	--ink-soft: #4a5243;
	--olive: #283021;
	--olive-2: #333d2a;
	--leaf: #e8eae0;
	--paper: #f4f5ef;
	--line: #c9cdbb;
	--gold: #c6a466;
	--gold-ink: #7a5d2c;
	--sage: #6f7d5e;
	--white: #fbfbf8;

	--serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--sans: Jost, "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 5vw, 64px);
	--section: clamp(72px, 11vw, 150px);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--leaf);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.85rem); line-height: 1.15; }
ul { padding-left: 1.2em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.lm-skip {
	position: fixed; left: 12px; top: -100px; z-index: 1000;
	background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 2px;
}
.lm-skip:focus { top: 12px; }

/* --------------------------------------------------------------- buttons */
.lm-btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .7em 1.6em;
	font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .04em;
	text-decoration: none; border: 1px solid transparent; border-radius: 999px;
	background: var(--olive); color: var(--white);
	transition: background-color .25s, color .25s, border-color .25s;
	cursor: pointer;
}
.lm-btn:hover, .wp-block-button__link:hover { background: var(--olive-2); color: var(--white); }
.lm-btn--gold { background: var(--gold); color: var(--olive); }
.lm-btn--gold:hover { background: #d6b77c; color: var(--olive); }
.lm-btn--light { background: rgba(251, 251, 248, .96); color: var(--olive); }
.lm-btn--light:hover { background: var(--white); color: var(--olive); }
.lm-btn--outline,
.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--olive); border-color: currentColor;
}
.lm-btn--outline:hover,
.is-style-outline > .wp-block-button__link:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.is-style-text > .wp-block-button__link {
	background: none; color: var(--olive); padding: 0; min-height: 0; border: 0; border-radius: 0;
	border-bottom: 1px solid var(--gold); padding-bottom: 4px; letter-spacing: .02em;
}
.is-style-text > .wp-block-button__link:hover { color: var(--gold-ink); background: none; }
.wp-block-buttons { margin-top: 1.75rem; }

/* ---------------------------------------------------------------- header */
.lm-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	color: var(--white);
	transition: background-color .35s var(--ease), box-shadow .35s;
}
.lm-header__bar {
	display: flex; align-items: center; gap: 28px;
	height: var(--header-h); padding: 0 var(--gutter);
	max-width: 1560px; margin: 0 auto;
}
body:not(.has-hero) .lm-header,
.lm-header.is-scrolled,
.lm-header.is-open { background: var(--olive); box-shadow: 0 1px 0 rgba(198, 164, 102, .25); }
body.has-hero .lm-header:not(.is-scrolled):not(.is-open) {
	background: linear-gradient(to bottom, rgba(20, 24, 16, .55), rgba(20, 24, 16, 0));
}
.lm-logo { display: block; flex: none; margin-right: auto; }
.lm-logo img { width: auto; height: 62px; }

.lm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 30px); }
.lm-nav__list > li { position: relative; display: flex; align-items: center; }
.lm-nav__list a {
	color: var(--white); text-decoration: none;
	font-size: .95rem; letter-spacing: .03em; padding: 8px 0;
	border-bottom: 1px solid transparent;
}
.lm-nav__list > li > a:hover,
.lm-nav__list > .current-menu-item > a,
.lm-nav__list > .current-menu-ancestor > a,
.lm-nav__list > .current-page-ancestor > a { border-bottom-color: var(--gold); color: var(--white); }
.lm-subtoggle {
	width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
	position: relative;
}
.lm-subtoggle::before {
	content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.lm-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px 0;
	position: absolute; top: 100%; left: -18px; min-width: 220px;
	background: var(--paper); color: var(--ink);
	border-top: 2px solid var(--gold);
	box-shadow: 0 18px 40px -18px rgba(31, 36, 27, .45);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.lm-nav .sub-menu a { display: block; color: var(--ink); padding: 8px 20px; border: 0; }
.lm-nav .sub-menu a:hover, .lm-nav .sub-menu .current-menu-item > a { color: var(--gold-ink); background: var(--leaf); }
.lm-nav__list > li:hover > .sub-menu,
.lm-nav__list > li:focus-within > .sub-menu,
.lm-nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lm-nav__mobile-contact { display: none; }
.lm-header__cta { flex: none; min-height: 44px; padding: .55em 1.4em; }

.lm-burger { display: none; width: 48px; height: 48px; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
.lm-burger__lines, .lm-burger__lines::before, .lm-burger__lines::after {
	display: block; width: 24px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative;
	transition: transform .3s var(--ease), background-color .2s;
}
.lm-burger__lines::before, .lm-burger__lines::after { content: ""; position: absolute; left: 0; }
.lm-burger__lines::before { top: -8px; }
.lm-burger__lines::after { top: 8px; }
.is-open .lm-burger__lines { background: transparent; }
.is-open .lm-burger__lines::before { transform: translateY(8px) rotate(45deg); }
.is-open .lm-burger__lines::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
	:root { --header-h: 72px; }
	.lm-logo img { height: 50px; }
	.lm-burger { display: block; order: 3; }
	.lm-header__cta { order: 2; }
	.lm-nav {
		position: fixed; inset: var(--header-h) 0 0; background: var(--olive);
		padding: 28px var(--gutter) 40px; overflow-y: auto;
		display: flex; flex-direction: column; justify-content: space-between;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.is-open .lm-nav { opacity: 1; visibility: visible; transform: none; }
	.lm-nav__list { flex-direction: column; gap: 0; }
	.lm-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid rgba(198, 164, 102, .22); }
	.lm-nav__list > li > a { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0; padding: 12px 0; flex: 1; border: 0; }
	.lm-subtoggle { width: 48px; height: 48px; }
	.lm-subtoggle::before { left: 19px; top: 17px; width: 9px; height: 9px; transition: transform .25s; }
	.is-open-sub > .lm-subtoggle::before, .lm-nav__list > li.is-open > .lm-subtoggle::before { transform: rotate(-135deg); top: 22px; }
	.lm-nav .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; background: none; border: 0; box-shadow: none;
		padding: 0 0 14px 2px; display: none; opacity: 1; visibility: visible; transform: none;
	}
	.lm-nav__list > li.is-open > .sub-menu { display: block; }
	.lm-nav__list > li:hover > .sub-menu { display: none; }
	.lm-nav__list > li.is-open:hover > .sub-menu { display: block; }
	.lm-nav .sub-menu a { color: var(--leaf); padding: 7px 0; font-size: 1.05rem; }
	.lm-nav .sub-menu a:hover { background: none; color: var(--gold); }
	.lm-nav__mobile-contact { display: block; margin-top: 32px; color: var(--leaf); line-height: 2; }
	.lm-nav__mobile-contact a { color: var(--gold); text-decoration: none; }
	body.lm-noscroll { overflow: hidden; }
}
@media (max-width: 480px) {
	.lm-header__cta { display: none; }
}

/* ------------------------------------------------------------------ hero */
.lm-hero {
	position: relative; min-height: 78svh; display: grid; align-items: end;
	color: var(--white); background: var(--olive); overflow: hidden; isolation: isolate;
}
.lm-hero--home { min-height: 100svh; }
.lm-hero__media { position: absolute; inset: 0; z-index: -1; }
.lm-hero__img { width: 100%; height: 100%; object-fit: cover; }
.lm-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(20, 24, 16, .78) 0%, rgba(20, 24, 16, .35) 38%, rgba(20, 24, 16, 0) 62%),
		linear-gradient(to bottom, rgba(20, 24, 16, .3), rgba(20, 24, 16, 0) 22%);
}
.lm-hero__inner {
	width: 100%; max-width: 1560px; margin: 0 auto;
	padding: calc(var(--header-h) + 40px) var(--gutter) clamp(48px, 8vw, 96px);
}
.lm-hero__kicker { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin: 0 0 .25em; }
.lm-hero__title {
	font-size: clamp(3rem, 1.8rem + 5.6vw, 7.25rem);
	font-weight: 400; line-height: .95; margin: 0; max-width: 14ch;
}
.lm-hero--home .lm-hero__title {
	font-style: italic; font-size: clamp(3.6rem, 1.4rem + 9vw, 10.5rem); max-width: 9ch; letter-spacing: -.02em;
}
.lm-hero__subtitle {
	font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); font-style: italic;
	max-width: 36ch; margin: .8em 0 0; color: #f0eee6; line-height: 1.3;
}
.lm-hero__actions { margin: 2rem 0 0; }
.lm-hero--home .lm-hero__inner { padding-bottom: clamp(150px, 16vw, 210px); }
.lm-hero__search {
	position: absolute; left: 50%; bottom: clamp(24px, 4vw, 48px); transform: translateX(-50%);
	width: min(1000px, calc(100% - 2 * var(--gutter)));
}
.lm-search { background: rgba(244, 245, 239, .97); border-radius: 999px; padding: 10px 14px; color: var(--ink); min-height: 70px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
@media (max-width: 760px) {
	.lm-hero--home .lm-hero__inner { padding-bottom: 48px; }
	.lm-hero--home { display: flex; flex-direction: column; justify-content: flex-end; }
	.lm-hero__search { position: relative; left: auto; bottom: auto; transform: none; width: auto; align-self: stretch; margin: 0 var(--gutter) 28px; }
	.lm-search { border-radius: 16px; }
}

/* one orchestrated moment: the hero settles as the page opens */
@media (prefers-reduced-motion: no-preference) {
	.lm-hero__img { animation: lm-settle 2.2s var(--ease) both; }
	.lm-hero__inner > * { animation: lm-rise 1s var(--ease) both; }
	.lm-hero__inner > :nth-child(2) { animation-delay: .12s; }
	.lm-hero__inner > :nth-child(3) { animation-delay: .24s; }
	.lm-hero__search { animation: lm-rise-c 1s .36s var(--ease) both; }
}
@keyframes lm-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes lm-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lm-rise-c { from { opacity: 0; transform: translate(-50%, 22px); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 760px) {
	@keyframes lm-rise-c { from { opacity: 0; } to { opacity: 1; } }
}

.lm-pagehead { padding: calc(var(--header-h) + 72px) var(--gutter) 40px; max-width: 1240px; margin: 0 auto; }
.lm-pagehead h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); font-weight: 400; }
.lm-content--plain { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) var(--section); }

/* --------------------------------------------------------------- sections */
.lm-content > .lm-section,
.lm-section {
	padding: var(--section) var(--gutter);
	margin: 0 !important;
}
.lm-section.is-paper { background: var(--paper); }
.lm-section.is-olive { background: var(--olive); color: var(--leaf); }
.lm-section.is-olive h2 { color: var(--white); }
.lm-section.is-olive a { color: var(--white); }
.lm-section.is-olive .lm-kicker { color: var(--gold); }
.lm-section.is-olive .is-style-text > .wp-block-button__link { color: var(--white); }
.lm-section:not(.is-paper):not(.is-olive):not(.lm-section--cover) + .lm-section:not(.is-paper):not(.is-olive):not(.lm-section--cover) { padding-top: 0; }
.lm-section.is-paper + .lm-section.is-paper { padding-top: 0; }

.lm-kicker {
	font-family: var(--serif); font-style: italic; font-weight: 500;
	font-size: 1.4rem; line-height: 1.2; color: var(--gold-ink); margin: 0 0 .5rem !important;
}
.lm-section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px) !important; }
.lm-section-head > p:not(.lm-kicker) { color: var(--ink-soft); }
.lm-lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.45; color: var(--ink); }
.lm-statement {
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.15; text-align: center;
	max-width: 24ch !important; margin: clamp(56px, 8vw, 110px) auto 0 !important; text-wrap: balance;
}
.lm-section-head .lm-statement { margin-top: 1.25em !important; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }

/* intro: heading left, text right */
.wp-block-columns.lm-intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.lm-intro h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.2rem); margin: 0; }
.lm-intro__body p:first-child::first-letter {
	font-family: var(--serif); float: left; font-size: 4.6em; line-height: .78; padding: .06em .08em 0 0; color: var(--gold-ink);
}

/* ------------------------------------------------------------- apartments */
.lm-units {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.lm-units > * { margin: 0 !important; }
.lm-unit { display: flex; flex-direction: column; }
.lm-unit .wp-block-image { margin: 0 0 22px; overflow: hidden; }
.lm-unit .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.lm-unit:hover .wp-block-image img { transform: scale(1.03); }
.lm-unit__name { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin: 0 0 .35rem; }
.lm-unit__facts {
	list-style: none; padding: 0; margin: 0 0 1rem !important;
	display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); letter-spacing: .02em;
}
.lm-unit__facts li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--line); margin: 0 .8em; vertical-align: -1px; }
.lm-unit__facts li:first-child { color: var(--gold-ink); font-weight: 500; }
.lm-unit__body { display: flex; flex-direction: column; flex: 1; }
.lm-unit__body > p { max-width: 46ch; }
.lm-unit__body .wp-block-buttons { margin-top: auto; padding-top: .5rem; }
.lm-unit.is-wide {
	grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr;
	background: var(--olive); color: var(--leaf);
}
.lm-unit.is-wide .wp-block-image { margin: 0; position: relative; min-height: 460px; }
.lm-unit.is-wide .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.lm-unit.is-wide .lm-unit__body { padding: clamp(32px, 4vw, 56px); justify-content: center; }
.lm-unit.is-wide .lm-unit__name { color: var(--white); }
.lm-unit.is-wide .lm-unit__facts { color: var(--leaf); }
.lm-unit.is-wide .lm-unit__facts li:first-child { color: var(--gold); }
.lm-unit.is-wide .lm-unit__facts li + li::before { background: rgba(232, 234, 224, .3); }
.lm-unit.is-wide .wp-block-buttons { margin-top: 1.5rem; }
.lm-unit.is-wide .is-style-outline > .wp-block-button__link { color: var(--gold); }
.lm-unit.is-wide .is-style-outline > .wp-block-button__link:hover { background: var(--gold); color: var(--olive); border-color: var(--gold); }
@media (max-width: 760px) {
	.lm-units { grid-template-columns: 1fr; }
	.lm-unit.is-wide { grid-template-columns: 1fr; }
	.lm-unit.is-wide .wp-block-image { min-height: 0; }
	.lm-unit.is-wide .wp-block-image img { position: static; height: auto; aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------- cover (pool on home) */
.lm-section--cover {
	position: relative; padding: 0 !important; display: grid; grid-template-columns: repeat(12, 1fr);
	min-height: min(92vh, 900px); background: var(--olive);
}
.lm-section--cover > * { max-width: none !important; margin: 0 !important; }
.lm-section--cover > .lm-cover-image { grid-column: 1 / -1; grid-row: 1; }
.lm-section--cover > .lm-cover-image img { width: 100%; height: 100%; object-fit: cover; }
.lm-section--cover > .lm-cover-text {
	grid-column: 7 / span 5; grid-row: 1; align-self: end; z-index: 1; padding: 0 0 clamp(40px, 6vw, 80px);
}
.lm-panel { background: var(--paper); padding: clamp(32px, 4vw, 60px); }
.lm-panel h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.lm-panel p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
	.lm-section--cover { display: block; min-height: 0; }
	.lm-section--cover > .lm-cover-image img { aspect-ratio: 4 / 3; height: auto; }
	.lm-section--cover > .lm-cover-text { padding: 0; }
	.lm-panel { padding: 40px var(--gutter) 64px; }
}

/* ------------------------------------------------------- feature rows */
.wp-block-columns.lm-feature {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 110px); align-items: center;
}
.wp-block-columns.lm-feature.is-reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lm-feature + .lm-feature { margin-top: clamp(72px, 10vw, 140px) !important; }
.lm-feature__media .wp-block-image { margin: 0; }
.lm-feature__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.lm-feature.is-tall .lm-feature__media img { aspect-ratio: 4 / 5; }
.lm-feature.is-tall { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lm-feature.is-tall.is-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lm-feature__text > :last-child { margin-bottom: 0; }
.lm-feature__text p { max-width: 58ch; }
.lm-distances { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; font-style: italic; }
.is-olive .lm-distances { color: var(--gold); }
.lm-drive { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-ink); margin-top: -.25em; }
.lm-place h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (max-width: 900px) {
	.wp-block-columns.lm-feature,
	.wp-block-columns.lm-feature.is-reverse,
	.lm-feature.is-tall,
	.lm-feature.is-tall.is-reverse { grid-template-columns: 1fr; gap: 28px; }
	.lm-feature__media { order: -1; }
	.wp-block-columns.lm-intro { grid-template-columns: 1fr; gap: 20px; }
}

/* -------------------------------------------------------------- amenities */
.lm-amenities {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(24px, 4vw, 56px);
}
.lm-amenities > * { margin: 0 !important; }
.lm-amenity { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.lm-amenity h3 { font-size: 1.45rem; margin: 0 0 .3rem; }
.lm-amenity p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) { .lm-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lm-amenities { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ video */
.lm-video { margin-top: clamp(64px, 8vw, 110px) !important; aspect-ratio: 16 / 9; background: var(--olive); }
.lm-video__btn, .lm-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.lm-video__btn { position: relative; cursor: pointer; background: center / cover no-repeat; padding: 0; }
.lm-video__btn::before { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 16, .25); transition: background .3s; }
.lm-video__btn:hover::before { background: rgba(20, 24, 16, .1); }
.lm-video__play {
	position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
	border-radius: 50%; background: rgba(244, 245, 239, .95); transition: transform .3s var(--ease);
}
.lm-video__play::after {
	content: ""; position: absolute; left: 38px; top: 31px;
	border-left: 22px solid var(--olive); border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.lm-video__btn:hover .lm-video__play { transform: scale(1.06); }

/* ------------------------------------------------------ apartment detail */
.wp-block-columns.lm-stay {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
	gap: clamp(40px, 6vw, 100px); align-items: start;
}
.lm-stay__text > h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); margin-top: 2.2em; }
.lm-stay__text > h2:first-of-type { margin-top: .4em; }
.lm-stay__text > h3 { margin-top: 2em; }
.lm-stay__text > p { max-width: 62ch; }
.lm-stay__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.lm-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.lm-chips li {
	border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .9rem; letter-spacing: .02em; color: var(--ink-soft);
}
.lm-chips li:last-child { border-color: var(--gold-ink); color: var(--gold-ink); }
.lm-ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.lm-ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.lm-ticks li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 14px; height: 1px; background: var(--gold-ink); }
.lm-split-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-split-list li { background: var(--paper); padding: 14px 18px; font-family: var(--serif); font-size: 1.3rem; }

.lm-bookbox { background: var(--paper); border-top: 3px solid var(--gold); padding: 26px 24px 22px; }
.lm-bookbox__title { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: 0 0 14px; }
.lm-bookbox [id^="lodgify"] { min-height: 230px; }
.lm-bookbox__contact { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.8; }
.lm-bookbox__contact a { text-decoration: none; }
@media (max-width: 960px) {
	.wp-block-columns.lm-stay { grid-template-columns: 1fr; }
	.lm-stay__aside { position: static; order: -1; }
}
@media (max-width: 560px) { .lm-split-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- gallery */
.wp-block-gallery.lm-gallery {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important;
	max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important;
}
.wp-block-gallery.lm-gallery > .wp-block-image { width: auto !important; margin: 0 !important; }
.wp-block-gallery.lm-gallery > .wp-block-image img { width: 100%; height: 100% !important; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-gallery.lm-gallery > .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.lm-gallery a { display: block; height: 100%; cursor: zoom-in; overflow: hidden; }
.wp-block-gallery.lm-gallery a img { transition: transform .9s var(--ease), opacity .3s; }
.wp-block-gallery.lm-gallery a:hover img { transform: scale(1.03); }
.wp-block-gallery.lm-gallery.is-masonry { display: block !important; columns: 3 300px; column-gap: 10px; }
.wp-block-gallery.lm-gallery.is-masonry > .wp-block-image { break-inside: avoid; margin: 0 0 10px !important; display: block; }
.wp-block-gallery.lm-gallery.is-masonry > .wp-block-image img { aspect-ratio: auto; height: auto !important; }
.lm-section--gallery { padding-top: clamp(56px, 7vw, 100px) !important; padding-bottom: clamp(56px, 7vw, 100px) !important; }
@media (max-width: 760px) {
	.wp-block-gallery.lm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; }
}

/* ------------------------------------------------------------------ story */
.wp-block-columns.lm-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.lm-story__media { position: relative; padding-bottom: 18%; }
.lm-story__media .wp-block-image { margin: 0; }
.lm-story__media .wp-block-image:first-child img { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; }
.lm-story__media .is-offset { position: absolute; right: 0; bottom: 0; width: 46%; border: 8px solid var(--paper); }
.lm-story__media .is-offset img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .wp-block-columns.lm-story { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- footer */
.lm-footer {
	background: var(--olive) url("../img/contours.svg") right -120px top -60px / 900px auto no-repeat;
	color: var(--leaf); font-size: .95rem;
}
.lm-footer a { color: var(--leaf); text-decoration: none; }
.lm-footer a:hover { color: var(--gold); }
.lm-footer .lm-btn--gold, .lm-footer .lm-btn--gold:hover { color: var(--olive); }
.lm-footer__top { padding: clamp(72px, 9vw, 120px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.lm-footer__tagline {
	font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem);
	line-height: 1.02; color: var(--white); margin: 0; max-width: 16ch;
}
.lm-footer__grid {
	max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter);
	display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr 1fr; gap: 40px;
}
.lm-footer__logo img { width: 200px; height: auto; }
.lm-footer__head {
	font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--gold); margin: 0 0 14px;
}
.lm-footer__list { list-style: none; margin: 0; padding: 0; }
.lm-footer__list li { margin: 0 0 8px; line-height: 1.5; }
.lm-footer__legal {
	max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter) 28px;
	border-top: 1px solid rgba(198, 164, 102, .25);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
	font-size: .85rem; color: rgba(232, 234, 224, .75);
}
.lm-footer__legal p { margin: 0; }
.lm-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 1000px) {
	.lm-footer__grid { grid-template-columns: 1fr 1fr; }
	.lm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.lm-footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- lightbox */
.lm-lightbox {
	position: fixed; inset: 0; z-index: 500; background: rgba(20, 24, 16, .96);
	display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
}
.lm-lightbox[hidden] { display: none; }
.lm-lightbox__figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lm-lightbox__figure img { max-height: 84vh; width: auto; max-width: 100%; }
.lm-lightbox__figure figcaption { color: var(--leaf); font-size: .9rem; text-align: center; }
.lm-lightbox button { width: 56px; height: 56px; border: 0; background: none; color: var(--white); cursor: pointer; position: relative; justify-self: center; }
.lm-lightbox__close { position: absolute !important; top: 16px; right: 16px; }
.lm-lightbox__close::before, .lm-lightbox__close::after { content: ""; position: absolute; left: 14px; top: 27px; width: 28px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lm-lightbox__close::after { transform: rotate(-45deg); }
.lm-lightbox__prev::before, .lm-lightbox__next::before {
	content: ""; position: absolute; top: 21px; width: 14px; height: 14px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
}
.lm-lightbox__prev::before { left: 23px; transform: rotate(45deg); }
.lm-lightbox__next::before { left: 17px; transform: rotate(-135deg); }
@media (max-width: 600px) {
	.lm-lightbox { grid-template-columns: 1fr; }
	.lm-lightbox__figure { grid-column: 1; grid-row: 1; }
	.lm-lightbox__prev, .lm-lightbox__next { position: absolute !important; bottom: 20px; }
	.lm-lightbox__prev { left: 20px; }
	.lm-lightbox__next { right: 20px; }
}

/* WordPress core bits used in content */
.lm-content .wp-block-image figcaption { font-size: .85rem; color: var(--ink-soft); }
.lm-content > :not(.alignfull):not(.lm-section) { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
