/* Les Souris Dansent: gallery template additions on top of ClaPat Niran.
   Mood colours come from mood.js as --mood-dark / --mood-light / --mood-accent. */

/* Visitors can copy an address, a phone number, a price. */
html, body { -webkit-user-select: auto; user-select: auto; }

/* Text wordmark instead of the image logo, with Niran's light/dark swap rules (#logo img). */
#logo a { text-decoration: none; }
#logo .logo-word {
	display: block;
	font-family: 'Bebas Neue', cursive;
	font-size: 26px;
	line-height: 50px;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: opacity 0.15s ease-in-out 0s;
}
#logo .logo-word.black-logo { color: #000; opacity: 1; }
#logo .logo-word.white-logo { color: #fff; position: absolute; top: 0; left: 0; opacity: 0; }
.light-content #logo .logo-word.black-logo { opacity: 0; }
.light-content #logo .logo-word.white-logo { opacity: 1; }
.white-header #logo .logo-word.black-logo { opacity: 0; }
.white-header #logo .logo-word.white-logo { opacity: 1; }
.light-content .white-header #logo .logo-word.black-logo { opacity: 1; }
.light-content .white-header #logo .logo-word.white-logo { opacity: 0; }
.light-content .white-header.over-white-section #logo .logo-word.black-logo,
.show-loader .light-content .white-header #logo .logo-word.black-logo { opacity: 0; }
.light-content .white-header.over-white-section #logo .logo-word.white-logo,
.show-loader .light-content .white-header #logo .logo-word.white-logo { opacity: 1; }

/* Shared bits. */
span.lsd-label { display: block; }
.lsd-label { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.lsd-note { font-size: 14px; opacity: 0.6; }
.lsd-tag { display: inline-block; margin-left: 10px; padding: 1px 10px; border: 1px solid var(--mood-accent, currentColor); border-radius: 20px; color: var(--mood-accent, inherit); font-family: 'Poppins', sans-serif; font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: 0.12em; line-height: 18px; text-transform: uppercase; vertical-align: middle; }
.lsd-rows { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid rgba(0,0,0,0.15); }
.lsd-rows li { color: inherit; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.15); font-size: 16px; }
.lsd-rows li span:last-child { white-space: nowrap; opacity: 0.6; }
.light-section .lsd-rows, .light-section .lsd-label { color: #000; }
.dark-section .lsd-rows, .dark-section .lsd-label { color: #fff; }
.dark-section .lsd-rows, .dark-section .lsd-rows li { border-color: rgba(255,255,255,0.15); }
.lsd-rows strong { color: inherit; font-weight: 600; }
#message { display: none; margin-bottom: 30px; }
#message.is-shown { display: block; animation: lsd-rise 300ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes lsd-rise { from { opacity: 0; transform: translateY(8px); } }

/* Footer: the Accrochage switch. */
.mood-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; pointer-events: auto; transition: transform 160ms ease-out; }
.mood-switch:active { transform: scale(0.97); }
.mood-switch .mood-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mood-accent, #e2462c); transition: background 0.4s ease; }
.mood-switch .mood-when { opacity: 0.55; }
main, .light-section-wrapper, .dark-section-wrapper { transition: background-color 0.6s ease; }

/* ---------------------------------------------------------------------------------------------
   Accueil: the Karioca showcase (fullscreen frames that grow, vertical lines, numbered nav).
   --------------------------------------------------------------------------------------------- */
.lsd-home footer { position: fixed; }
.lsd-home #backtotop { display: none; }
.expo-showcase { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: var(--mood-dark, #0c0c0c); color: #fff; }
.expo-track { position: absolute; inset: 0; will-change: transform; }
.expo-slide { position: relative; width: 100%; height: 100%; overflow: hidden; }
.expo-frame { position: absolute; inset: 0; overflow: hidden; transform: scale(0.6); will-change: transform; }
.expo-image { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.3); will-change: transform; }
/* Karioca's .overlay: keeps white type readable on light works (paper, white walls). */
.expo-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.12) 25%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.2) 100%); }
.expo-gradient { position: absolute; left: 0; right: 0; bottom: -1px; height: 55%; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%); }
.expo-caption { position: absolute; left: 140px; right: 200px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; z-index: 2; pointer-events: none; }
.expo-kicker { overflow: hidden; margin-bottom: 18px; font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.expo-kicker span, .expo-line > span { display: block; will-change: transform; }
.expo-title { margin: 0; font-family: 'Bebas Neue', cursive; font-size: clamp(64px, 11vw, 190px); font-weight: 400; line-height: 0.88; color: #fff; }
/* Each line is a mask for the reveal; the extra top room keeps É, È, Ê inside it, the negative
   margin keeps the tight Bebas line spacing. */
.expo-line { display: block; overflow: hidden; padding-top: 0.18em; margin-top: -0.14em; }
.expo-info { --line: 0; position: absolute; left: 0; bottom: 110px; max-width: 560px; margin: 0; font-size: 14px; line-height: 22px; color: #fff; }
.expo-info::before { content: ""; position: absolute; left: 0; top: -30px; width: 60px; height: 3px; background: var(--mood-accent, #fff); transform: scaleX(var(--line)); transform-origin: left center; }
.expo-work { font-weight: 600; }
.expo-meta { opacity: 0.75; }
.expo-pagination { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); z-index: 3; margin: 0; padding: 0; list-style: none; }
.expo-pagination li { margin: 0; }
.expo-pagination button { position: relative; display: block; padding: 8px 0 8px 34px; border: 0; background: none; color: #fff; font: 500 12px/18px 'Poppins', sans-serif; opacity: 0.6; text-shadow: 0 0 12px rgba(0,0,0,0.45); cursor: pointer; transition: opacity 200ms ease; }
.expo-pagination button::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.expo-pagination button.active { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .expo-pagination button:hover { opacity: 1; } }
.expo-pagination button.active::before { transform: scaleX(1); }
.expo-arrows { position: absolute; left: 120px; bottom: 34px; z-index: 950; display: flex; gap: 6px; }
.expo-arrows button { width: 50px; height: 50px; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; transition: transform 160ms ease-out; }
.expo-arrows button:active { transform: scale(0.94); }
.expo-showcase button:focus { outline: none; }
.expo-showcase button:focus-visible, .mood-switch:focus-visible { outline: 1px solid rgba(255,255,255,0.7); outline-offset: 4px; border-radius: 2px; }
.expo-arrows button span { display: block; }
.expo-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.expo-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.08); }
.expo-lines span:nth-child(1) { left: 20%; }
.expo-lines span:nth-child(2) { left: 50%; }
.expo-lines span:nth-child(3) { left: 80%; }

/* ---------------------------------------------------------------------------------------------
   Artistes: Niran mixed list, speciality always readable on the right.
   --------------------------------------------------------------------------------------------- */
.showcase-list-holder .sl-subtitle { opacity: 0.45; top: auto; bottom: 22px; transition: opacity 200ms ease; }
.showcase-list-holder .slide-list:hover .sl-subtitle { opacity: 1; }
.showcase-list-holder .slide-list.disable .sl-subtitle { opacity: 0.15; }

/* Artist page: the same overlay as the Accueil frames, so white type holds on works on paper. */
#hero-bg-image::after, .next-project-image-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.5) 100%); }
/* ---------------------------------------------------------------------------------------------
   La galerie
   --------------------------------------------------------------------------------------------- */
.hero-tagline { max-width: 640px; margin-top: 30px; font-family: 'Poppins', sans-serif; font-size: 22px; line-height: 32px; font-weight: 300; text-transform: none; letter-spacing: 0; }
.hero-tagline span { display: block; }

/* Team list, two people per row; exhibitions use the same hover list one per row. */
#team-members-list.lsd-two-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 25px; }
#team-members-list.lsd-two-cols li { padding-bottom: 0; }
.lsd-hover-list { position: relative; margin: 0 0 60px; padding: 0; pointer-events: none; }
.lsd-hover-list li { list-style: none; position: relative; margin: 0; padding: 0 0 22px; cursor: default; pointer-events: initial; }
.lsd-hover-list .team-member, #team-members-list .team-member { transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) {
	.lsd-hover-list:hover li .team-member { opacity: 0.3; }
	.lsd-hover-list li:hover .team-member { opacity: 1; }
}
.lsd-hover-list .team-member small { display: block; margin-top: 4px; font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 22px; opacity: 0.6; }
.lsd-hover-list .team-member small .lsd-tag { opacity: 1; }
.lsd-hover-list .team-member > span { position: absolute; right: 0; top: 0; }
.lsd-hover-list .hover-reveal, #team-members-list .hover-reveal { position: fixed; width: 300px; height: 380px; pointer-events: none; opacity: 0; }
.lsd-hover-list .hover-reveal__inner, .lsd-hover-list .hover-reveal__img { width: 100%; height: 100%; position: relative; }
.lsd-hover-list .hover-reveal__img { background-size: cover; background-position: 50% 50%; }
#team-members-list .hover-reveal__img { filter: grayscale(1); }
.lsd-shows + .lsd-shows { margin-top: 20px; }

.lsd-space { margin: 0; }
.lsd-space img { display: block; width: 100%; height: 520px; object-fit: cover; }
.lsd-space figcaption { position: static; display: flex; justify-content: space-between; gap: 20px; width: auto; margin: 0; padding: 16px 0 0; background: none; font-size: 14px; text-align: left; }
.lsd-space figcaption span { opacity: 0.6; }
.lsd-space-full { width: 100%; clear: both; }
.lsd-space-full .lsd-space img { height: 640px; }

/* ---------------------------------------------------------------------------------------------
   Infos pratiques: Manifesto blocks (shortcodes.css) in Niran's type.
   --------------------------------------------------------------------------------------------- */
.pinned-section { position: relative; display: table !important; width: 100%; margin: 0 auto; }
.pinned-section .pin-spacer { width: 50% !important; }
.pinned-element { position: relative; display: block; float: left; width: 50%; margin: 0; padding-right: 30px; box-sizing: border-box; }
.scrolling-element { position: relative; float: left; width: 50%; margin: 0; padding-left: 30px; box-sizing: border-box; }

.big-title { font-family: 'Bebas Neue', cursive; font-size: 12vw; line-height: 0.9; font-weight: 400; margin: 0; }
.title-moving-outer { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; max-width: 1000% !important; width: 100vw !important; overflow: hidden; }
.title-moving-forward, .title-moving-backward { clear: both; display: inline-block; white-space: nowrap; padding: 0 6vw; box-sizing: border-box; }

.clipped-image-wrapper { position: relative; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; max-width: 1000% !important; width: 100vw !important; overflow: hidden; }
.clipped-image-pin { position: relative; display: block; }
.clipped-image { position: relative; z-index: 0; width: 100%; height: 100vh; display: block; overflow: hidden; clip-path: inset(0% 30% 0% 30%); transform: scale(0.8); }
.clipped-image img { width: 100%; height: 100% !important; display: block; object-fit: cover; object-position: center; }
.clipped-image-gradient { position: absolute; height: 30%; width: 100%; bottom: 0; opacity: 0; background-color: #000; z-index: 10; -webkit-mask-image: linear-gradient(transparent, black 85%); mask-image: linear-gradient(transparent, black 85%); }
.clipped-image-content { position: relative; width: 100%; padding-bottom: 40px; margin: 0 auto; z-index: 10; }

.has-opacity span { opacity: 0.2; }
p.bigger { font-size: 22px; line-height: 34px; }

/* ---------------------------------------------------------------------------------------------
   Smaller screens
   --------------------------------------------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
	.expo-caption { left: 40px; right: 40px; }
	.expo-pagination { right: 30px; }
	.expo-arrows { left: 30px; }
	.clipped-image { clip-path: inset(0% 15% 0% 15%); }
}
@media only screen and (max-width: 767px) {
	.expo-caption { left: 24px; right: 24px; }
	.expo-info { bottom: 120px; right: 0; }
	.expo-pagination { display: none; }
	.expo-arrows { left: 14px; bottom: 20px; }
	.lsd-home .socials-wrap { display: none; }
	#team-members-list.lsd-two-cols { grid-template-columns: 1fr; }
	.team-member { font-size: 30px; line-height: 34px; }
	.lsd-hover-list .team-member > span { position: static; float: none; display: block; margin-top: 2px; }
	.lsd-space img { height: 340px; }
	.hero-tagline { font-size: 18px; line-height: 27px; }
	.clipped-image { clip-path: inset(0% 10% 0% 10%); }
	.lsd-rows li { flex-direction: column; gap: 4px; }
}
@media only screen and (max-width: 479px) {
	.pinned-section .pin-spacer { width: 100% !important; }
	.pinned-element, .scrolling-element { float: none; width: 100%; padding: 0; }
	.pinned-element { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.expo-frame, .expo-image { transform: none !important; }
}

/* People block: a team without portraits (associations, collectives). Same rhythm as "Le lieu". */
.lsd-team-intro { margin-bottom: 0; }
.lsd-people { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 50px 0 0; padding: 0; }
.lsd-people li { margin: 0; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,0.16); }
.dark-section .lsd-people li, .dark-section .lsd-people strong, .dark-section .lsd-people span { color: #fff; }
.light-section .lsd-people li, .light-section .lsd-people strong, .light-section .lsd-people span { color: #000; }
.light-section .lsd-people li { border-top-color: rgba(0,0,0,0.15); }
.lsd-people strong { display: block; font-family: 'Bebas Neue', cursive; font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; color: inherit; }
.lsd-people span { display: block; margin-top: 10px; font-size: 14px; line-height: 22px; opacity: 0.6; }
@media only screen and (max-width: 767px) {
	.lsd-people { grid-template-columns: 1fr; margin-top: 30px; }
	.lsd-people strong { font-size: 28px; }
}

/* Veil under the parallax statement (La galerie): white type stays readable on light rooms (Dirk's rule:
   a veil on any text over a photo). */
figure.has-parallax .parallax-image-content { background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.5) 100%); }

/* Words on the work (La galerie / About): short quotes, author, full text behind an accordion. */
.lsd-words { list-style: none; margin: 30px 0 0; padding: 0; }
.lsd-words > li { margin: 0; padding: 44px 0 40px; border-top: 1px solid rgba(255,255,255,0.16); }
.lsd-words blockquote, .lsd-word-by { margin: 0; padding: 0; border: 0; text-align: left; }
.lsd-word-quote { max-width: 880px; margin: 0 0 22px; font-size: 26px; line-height: 38px; font-weight: 300; color: #fff; }
.lsd-word-by strong { display: block; font-family: 'Bebas Neue', cursive; font-size: 24px; line-height: 28px; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.lsd-word-by span { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; color: #fff; opacity: 0.6; }
.lsd-word-full { margin-top: 26px; max-width: 880px; }
.lsd-word-full dt .link { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.lsd-word-full dd p { font-size: 15px; line-height: 26px; opacity: 0.8; }
@media only screen and (max-width: 767px) {
	.lsd-word-quote { font-size: 20px; line-height: 30px; }
	.lsd-words > li { padding: 32px 0 28px; }
}
