/* la'Seine front end only: hero slideshow, photo strip, masonry gallery, lightbox, reveal, parallax. */

/* ---------- Hero (full screen) ---------- */
.lsn-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding-bottom: clamp(4.5rem, 9vh, 6.5rem) !important;
}
.lsn-hero .wp-block-gallery.lsn-hero-slides { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; display: block !important; }
.lsn-hero .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn) {
	position: absolute; inset: 0; width: 100% !important; height: 100%; margin: 0; opacity: 0; transition: opacity 1.6s ease;
}
.lsn-hero .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn) img {
	width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 10s ease-out;
}
.lsn-hero .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn):first-child { opacity: 1; }
.lsn-hero.is-ready .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn) { opacity: 0; }
.lsn-hero.is-ready .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image.is-active:not(#lsn) { opacity: 1; }
.lsn-hero.is-ready .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image.is-active:not(#lsn) img { transform: scale(1); }
.lsn-hero .wp-block-gallery.lsn-hero-slides figcaption { display: none; }
.lsn-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(0deg, rgba(21, 18, 15, 0.95) 0%, rgba(21, 18, 15, 0.72) 34%, rgba(21, 18, 15, 0.25) 62%, rgba(21, 18, 15, 0.1) 100%),
		linear-gradient(90deg, rgba(21, 18, 15, 0.55) 0%, rgba(21, 18, 15, 0) 60%),
		linear-gradient(180deg, rgba(21, 18, 15, 0.6) 0%, rgba(21, 18, 15, 0) 24%);
}
.lsn-hero__content { position: relative; width: 100%; }
.lsn-hero__content > * { margin-left: 0 !important; }
.lsn-hero__title { font-size: clamp(3.25rem, 8vw, 7.5rem) !important; min-height: 1em; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3); }
.lsn-hero__lead { color: rgba(245, 239, 230, 0.86); max-width: 36rem; }

/* Slide text swap (main.js) */
.lsn-hero__title, .lsn-hero__lead { transition: opacity 0.9s cubic-bezier(.22, .61, .36, 1), transform 0.9s cubic-bezier(.22, .61, .36, 1); }
.lsn-hero__lead { transition-delay: 0.15s; }
.lsn-hero.is-swapping .lsn-hero__title { opacity: 0; transform: translateY(16px); transition-duration: 0.8s; transition-timing-function: ease-in; transition-delay: 0s; }
.lsn-hero.is-swapping .lsn-hero__lead { opacity: 0; transform: translateY(12px); transition-duration: 0.7s; transition-timing-function: ease-in; transition-delay: 0s; }

/* Slide indicators with progress bars (added by main.js) */
.lsn-hero__controls {
	position: absolute; right: max(clamp(1rem, 4vw, 1.5rem), calc((100vw - 1320px) / 2)); bottom: clamp(4.5rem, 9vh, 6.5rem);
	display: flex; align-items: center; gap: 0.25rem;
}
.lsn-hero__dot { position: relative; width: 56px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; --lsn-bar: 28px; }
.lsn-hero__dot[aria-current="true"] { --lsn-bar: 48px; }
.lsn-hero__dot::before, .lsn-hero__dot::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: var(--lsn-bar); height: 2px;
	margin: -1px 0 0 calc(var(--lsn-bar) / -2); transition: width 0.4s ease, margin 0.4s ease;
}
.lsn-hero__dot::before { background: rgba(245, 239, 230, 0.35); }
.lsn-hero__dot:hover::before { background: rgba(245, 239, 230, 0.6); }
.lsn-hero__dot::after { background: var(--wp--preset--color--ivory); transform-origin: left center; transform: scaleX(0); }
.lsn-hero__dot[aria-current="true"]::after { animation: lsn-progress var(--lsn-slide-dur, 9s) linear forwards; }
.lsn-hero.is-paused .lsn-hero__dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
@keyframes lsn-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lsn-hero__pause {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(245, 239, 230, 0.4); background: transparent; color: var(--wp--preset--color--ivory);
	cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: 0.5rem;
}
.lsn-hero__pause:hover { background: rgba(245, 239, 230, 0.15); }
.lsn-hero__pause svg { width: 13px; height: 13px; }

/* ---------- Photo strip (scrolls sideways) ---------- */
.wp-block-gallery.has-nested-images.lsn-strip {
	display: flex !important; flex-wrap: nowrap !important; gap: 8px !important;
	overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
	margin: 0 !important;
}
.wp-block-gallery.lsn-strip::-webkit-scrollbar { display: none; }
.wp-block-gallery.lsn-strip.is-dragging { cursor: grabbing; }
.wp-block-gallery.has-nested-images.lsn-strip figure.wp-block-image:not(#lsn) {
	flex: 0 0 auto !important; width: auto !important; height: clamp(320px, 52vh, 480px); margin: 0 !important; position: relative; overflow: hidden;
}
.wp-block-gallery.has-nested-images.lsn-strip figure.wp-block-image:not(#lsn) img {
	height: 100% !important; width: auto !important; max-width: none; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 0.9s ease;
}
.wp-block-gallery.lsn-strip figure:hover img { transform: scale(1.04); }
.wp-block-gallery.lsn-strip figcaption { opacity: 0; transition: opacity 0.35s ease; }
.wp-block-gallery.lsn-strip figure:hover figcaption, .wp-block-gallery.lsn-strip figure:focus-within figcaption { opacity: 1; }
@media (hover: none) { .wp-block-gallery.lsn-strip figcaption { opacity: 1; } }

/* ---------- Masonry gallery ---------- */
.lsn-gallery-section .lsn-section-head { margin-bottom: 2.5rem; }
.lsn-gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 2rem; max-width: 1320px; }
.lsn-gallery__filters button {
	min-height: 44px; padding: 0 1.15rem; border: 1px solid var(--wp--preset--color--line); background: transparent; color: var(--wp--preset--color--ivory);
	font: inherit; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.lsn-gallery__filters button:hover { border-color: var(--wp--preset--color--sand); }
.lsn-gallery__filters button[aria-pressed="true"] { background: var(--wp--preset--color--ivory); border-color: var(--wp--preset--color--ivory); color: var(--wp--preset--color--night); }
.lsn-masonry { columns: 4 260px; column-gap: 8px; }
.lsn-masonry__item { margin: 0 0 8px; break-inside: avoid; overflow: hidden; background: var(--wp--preset--color--umber); }
.lsn-masonry__item[hidden] { display: none; }
.lsn-masonry__item a { display: block; cursor: zoom-in; }
.lsn-masonry__item img { display: block; width: 100%; height: auto; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.4s ease; }
.lsn-masonry__item a:hover img { transform: scale(1.04); opacity: 0.92; }
.lsn-gallery__more { text-align: center; margin-top: 2.5rem; }
.lsn-gallery__more a { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--ivory); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--gold); padding-bottom: 0.35rem; }
.lsn-gallery__more a:hover { color: var(--wp--preset--color--gold); }
.lsn-gallery__notice { max-width: 1320px; margin: 0 auto 1rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--wp--preset--color--gold); color: var(--wp--preset--color--sand); font-size: 0.9rem; }

/* ---------- Lightbox ---------- */
.lsn-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 8, 0.96); color: var(--wp--preset--color--ivory); }
.lsn-lightbox::backdrop { background: rgba(12, 10, 8, 0.96); }
.lsn-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lsn-lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lsn-lightbox__btn {
	position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(245, 239, 230, 0.3);
	background: rgba(21, 18, 15, 0.5); color: var(--wp--preset--color--ivory); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lsn-lightbox__btn:hover { background: rgba(245, 239, 230, 0.15); }
.lsn-lightbox__btn svg { width: 22px; height: 22px; }
.lsn-lightbox__close { top: 20px; right: 20px; }
.lsn-lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lsn-lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.lsn-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--wp--preset--color--sand); }

/* ---------- Parallax band + reveal ---------- */
html.lenis { scroll-behavior: auto !important; }
.lsn-hero .lsn-hero-slides, .lsn-hero__content { will-change: transform; }
.lsn-parallax-band { overflow: hidden; }
.lsn-parallax-band.has-parallax .wp-block-cover__image-background { will-change: transform; transform: scale(1.18); }
.lsn-parallax-band .wp-block-cover__inner-container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
	.lsn-js .lsn-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1); }
	.lsn-js .lsn-reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.lsn-hero { padding-bottom: 7rem !important; }
	.lsn-hero__controls { right: auto; left: clamp(1rem, 4vw, 1.5rem); bottom: 2.5rem; }
	.lsn-hero__dot { width: 36px; --lsn-bar: 20px; }
	.lsn-hero__dot[aria-current="true"] { --lsn-bar: 32px; }
	.lsn-masonry { columns: 2; }
	.lsn-lightbox__prev, .lsn-lightbox__next { top: auto; bottom: 16px; margin-top: 0; }
	.lsn-lightbox__count { bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.lsn-hero .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn),
	.lsn-hero .wp-block-gallery.has-nested-images.lsn-hero-slides figure.wp-block-image:not(#lsn) img { transition: none; transform: none; }
	.lsn-hero__title, .lsn-hero__lead { transition: none; }
	.lsn-hero__dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
	.lsn-hero .lsn-hero-slides, .lsn-hero__content, .lsn-parallax-band .wp-block-cover__image-background { transform: none !important; opacity: 1 !important; }
}
