/* LBN Estate Journal — photographs keep their own shape (never cropped). */
.lbn-ej, .lbn-ej-box {
	--ej-ink: #0c0b0a;
	--ej-gold: #c4a16b;
	--ej-copper: #bc9064;
	--ej-cream: #ece6dc;
	--ej-text: #bdb7ae;
	--ej-muted: #8a847c;
	--ej-line: rgba(196, 161, 107, .25);
	--ej-serif: "Tenor Sans", Georgia, serif;
	--ej-italic: "Cormorant Garamond", Georgia, serif;
	--ej-sans: Poppins, "Helvetica Neue", Arial, sans-serif;
	--ej-ease: cubic-bezier(.2, .65, .2, 1);
}
.lbn-ej-box { font-family: Poppins, "Helvetica Neue", Arial, sans-serif; }
.lbn-ej-box *, .lbn-ej-box *::before, .lbn-ej-box *::after { box-sizing: border-box; }
.lbn-ej {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding-bottom: clamp(90px, 14vh, 150px);
	background: radial-gradient(1100px 520px at 50% 0%, rgba(196, 161, 107, .07), transparent 70%), var(--ej-ink);
	color: var(--ej-text);
	font-family: var(--ej-sans);
	overflow: hidden;
}
.lbn-ej *, .lbn-ej *::before, .lbn-ej *::after { box-sizing: border-box; }

/* remove the theme's column spacing around this page */
body:has(.lbn-ej) .elementor-widget-wrap:has(.lbn-ej) { padding: 0 !important; margin-top: 0 !important; }
body:has(.lbn-ej) .site-content { padding-top: 0 !important; padding-bottom: 0 !important; }
body:has(.lbn-ej) .entry-content:has(.lbn-ej) { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }

/* ---------- intro ---------- */
.lbn-ej__intro { padding: clamp(150px, 20vh, 200px) 24px clamp(44px, 6vh, 64px); text-align: center; }
.lbn-ej__eyebrow { display: inline-block; margin-bottom: 24px; font-size: 11.5px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--ej-copper); }
.lbn-ej__title {
	margin: 0 !important;
	font-family: var(--ej-serif) !important;
	font-size: clamp(42px, 6vw, 84px) !important;
	font-weight: 400 !important;
	line-height: 1.05 !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
	color: var(--ej-gold) !important;
}
.lbn-ej__orn { position: relative; display: block; width: 140px; height: 9px; margin: 28px auto; }
.lbn-ej__orn::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ej-gold) 30%, var(--ej-gold) 70%, transparent); opacity: .55; }
.lbn-ej__orn i { position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin-left: -4.5px; background: var(--ej-ink); border: 1px solid var(--ej-gold); transform: rotate(45deg); }
.lbn-ej__subtitle { margin: 0; font-family: var(--ej-italic); font-style: italic; font-size: clamp(21px, 2vw, 27px); color: var(--ej-cream); opacity: .88; }

/* All / Photographs / Videos switch */
.lbn-ej__switch { position: relative; display: inline-flex; margin-top: clamp(40px, 6vh, 56px); border-bottom: 1px solid rgba(236, 230, 220, .12); }
.lbn-ej__switch button {
	position: relative;
	padding: 14px clamp(18px, 3vw, 34px);
	border: 0;
	background: none !important;
	color: var(--ej-muted) !important;
	font-family: var(--ej-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .3s;
	-webkit-tap-highlight-color: transparent;
}
.lbn-ej__switch button small { margin-left: 6px; font-size: 10.5px; letter-spacing: .05em; color: var(--ej-copper); opacity: .75; }
.lbn-ej__switch button[aria-selected="true"], .lbn-ej__switch button:hover { color: var(--ej-cream) !important; }
.lbn-ej__switch button:focus-visible { outline: 1px solid var(--ej-gold); outline-offset: -4px; }
.lbn-ej__switch-bar { position: absolute; bottom: -1px; left: 0; height: 1px; width: 0; background: var(--ej-gold); transition: transform .45s var(--ej-ease), width .45s var(--ej-ease); }

/* ---------- panels ---------- */
.lbn-ej__panel { max-width: 1440px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 48px); }
.lbn-ej__panel[hidden] { display: none; }
.lbn-ej__panel.is-entering { animation: lbnEjIn .7s var(--ej-ease); }
@keyframes lbnEjIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lbn-ej__empty { padding: 60px 0; text-align: center; font-family: var(--ej-italic); font-style: italic; font-size: 22px; color: var(--ej-muted); }

/* Photographs: justified rows; each picture keeps its own proportions */
.lbn-ej__photos { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); margin: 0; padding: 0; list-style: none; }
.lbn-ej__photos::after { content: ""; flex-grow: 999; }
.lbn-ej__photo { position: relative; flex: calc(var(--r) * 100) 1 calc(var(--r) * 270px); margin: 0; }
.lbn-ej__open { display: block; width: 100%; padding: 0; border: 0; background: #171614; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.lbn-ej__open img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: contain; transition: transform 1.2s var(--ej-ease), filter .6s; filter: saturate(.94); }
.lbn-ej__open:hover img, .lbn-ej__open:focus-visible img { transform: scale(1.025); filter: saturate(1.05); }
.lbn-ej__open:focus-visible { outline: 1px solid var(--ej-gold); outline-offset: 3px; }
.lbn-ej__cap { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: var(--ej-muted); }


/* All: mixed photographs + videos in one justified stream */
.lbn-ej__mixed { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); margin: 0; padding: 0; list-style: none; align-items: flex-start; }
.lbn-ej__mixed::after { content: ""; flex-grow: 999; }
.lbn-ej__mixed > .lbn-ej__photo { flex: calc(var(--r) * 100) 1 calc(var(--r) * 270px); }
.lbn-ej__mixed > .lbn-ej__film { flex: 177.78 1 320px; margin: 0; min-width: min(100%, 280px); }
.lbn-ej__mixed > .lbn-ej__film .lbn-ej__film-title { margin-top: 10px; font-size: clamp(16px, 1.4vw, 20px); }
@media (max-width: 600px) {
	.lbn-ej__mixed > .lbn-ej__photo { flex-basis: calc(var(--r) * 105px); }
	.lbn-ej__mixed > .lbn-ej__film { flex-basis: 100%; }
	.lbn-ej__mixed { gap: 6px; }
}

/* Videos */
.lbn-ej__films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 2.4vw, 34px); max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; }
.lbn-ej__film { margin: 0; }
.lbn-ej__play { display: block; width: 100%; padding: 0; border: 0; background: none !important; text-align: left; cursor: pointer; color: inherit; }
.lbn-ej__film-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #171614; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.lbn-ej__film-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ej-ease), opacity .4s; opacity: .86; }
.lbn-ej__film-btn { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .4s var(--ej-ease); }
.lbn-ej__play:hover .lbn-ej__film-img img { transform: scale(1.04); opacity: 1; }
.lbn-ej__play:hover .lbn-ej__film-btn { transform: scale(1.08); }
.lbn-ej__play:focus-visible .lbn-ej__film-img { outline: 1px solid var(--ej-gold); outline-offset: 3px; }
.lbn-ej__film-title { display: block; margin-top: 16px; font-family: var(--ej-serif); font-size: clamp(18px, 1.6vw, 22px); color: var(--ej-cream); }

/* ---------- viewer (photos + videos) ---------- */
.lbn-ej-box { position: fixed; inset: 0; z-index: 3000002; display: grid; place-items: center; }
.lbn-ej-box[hidden] { display: none; }
.lbn-ej-box__bg { position: absolute; inset: 0; background: rgba(8, 7, 6, .96); animation: lbnEjFade .3s ease; }
@keyframes lbnEjFade { from { opacity: 0; } }
.lbn-ej-box__stage { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 150px); }
.lbn-ej-box__img { display: block; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; animation: lbnEjFade .35s ease; }
.lbn-ej-box__img[hidden], .lbn-ej-box__video[hidden] { display: none; }
.lbn-ej-box__video { width: min(1200px, calc(100vw - 150px)); aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); background: #000; }
.lbn-ej-box__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lbn-ej-box__cap { display: flex; gap: 18px; justify-content: space-between; width: 100%; margin-top: 14px; font-size: 12.5px; color: var(--ej-text); }
.lbn-ej-box__count { flex: none; letter-spacing: .14em; color: var(--ej-muted); }
.lbn-ej-box__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; border: 1px solid rgba(236,230,220,.25); border-radius: 50%; background: none; cursor: pointer; }
.lbn-ej-box__close span, .lbn-ej-box__close span::before { position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; margin-left: -9px; background: var(--ej-cream); transform: rotate(45deg); content: ""; }
.lbn-ej-box__close span::before { transform: rotate(90deg); left: 0; margin: 0; top: 0; }
.lbn-ej-box__nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(236,230,220,.22); border-radius: 50%; background: rgba(12,11,10,.4); color: var(--ej-cream); display: grid; place-items: center; cursor: pointer; transition: border-color .3s, background .3s; }
.lbn-ej-box__nav:hover, .lbn-ej-box__close:hover { border-color: var(--ej-gold); }
.lbn-ej-box__nav.is-prev { left: 22px; }
.lbn-ej-box__nav.is-next { right: 22px; }
.lbn-ej-box.is-video .lbn-ej-box__nav { display: none; }
html.lbn-ej-lock, html.lbn-ej-lock body { overflow: hidden; }
.lbn-ej-box.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(236,230,220,.18); border-top-color: var(--ej-gold); border-radius: 50%; animation: lbnEjSpin .9s linear infinite; }
.lbn-ej-box.is-loading .lbn-ej-box__img { opacity: 0; }
@keyframes lbnEjSpin { to { transform: rotate(360deg); } }

/* ---------- phone / tablet ---------- */
@media (max-width: 900px) {
	.lbn-ej__intro { padding-top: 64px; }
	.lbn-ej-box__stage { max-width: 100vw; }
	.lbn-ej-box__video { width: 100vw; }
	.lbn-ej-box__cap { padding: 0 16px; }
	.lbn-ej-box__nav { top: auto; bottom: 18px; margin-top: 0; width: 46px; height: 46px; }
	.lbn-ej-box__nav.is-prev { left: calc(50% - 58px); }
	.lbn-ej-box__nav.is-next { right: calc(50% - 58px); }
	.lbn-ej-box__img { max-height: calc(100svh - 190px); }
}
@media (max-width: 600px) {
	.lbn-ej__photo { flex-basis: calc(var(--r) * 105px); }
	.lbn-ej__photos { gap: 6px; }
	.lbn-ej__switch { display: flex; width: 100%; }
	.lbn-ej__switch button { flex: 1; padding: 14px 6px; letter-spacing: .18em; }
	.lbn-ej__orn { margin: 22px auto; }
}
@media (prefers-reduced-motion: reduce) {
	.lbn-ej *, .lbn-ej-box * { animation: none !important; transition: none !important; }
}
