/* Shared presentation for the public block and its Gutenberg preview. */
.wp-block-lpd-expandable-project-list.expandable-project-list {
	--epl-accent: var(--wp--preset--color--black, #1b1212);
	--epl-text: var(--wp--preset--color--black, #1b1212);
	--epl-bg: var(--wp--preset--color--white, #fff);
	--epl-surface: var(--epl-bg);
	--epl-ink: var(--wp--preset--color--black, #1b1212);
	--epl-pink: var(--wp--preset--color--pink, #d50379);
	--epl-purple: var(--wp--preset--color--purple, #43358b);
	--epl-green: var(--wp--preset--color--green, #3aaa35);
	--epl-paper: var(--debrouillards-background-start, #e2edf2);
	position: relative;
	scroll-margin-block-start: 9rem;
	box-sizing: border-box;
	width: 100%;
	color: var(--epl-text);
	background: transparent;
	font-family: var(--wp--preset--font-family--roboto-condensed, "Roboto Condensed", sans-serif);
	counter-reset: epl-item;
}
.expandable-project-list *, .expandable-project-list *::before, .expandable-project-list *::after { box-sizing: border-box; }
.expandable-project-list .epl-track { width: 100%; }
.expandable-project-list .epl-item { min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-top: 2px solid var(--epl-ink); counter-increment: epl-item; }
.expandable-project-list .epl-item:last-child { border-bottom: 2px solid var(--epl-ink); }
.expandable-project-list .epl-item[open] { background: var(--epl-surface); box-shadow: inset 5px 0 var(--epl-green); }
.expandable-project-list .epl-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 24px; min-height: 112px; padding: 28px 32px; color: var(--epl-text); text-align: left; list-style: none; cursor: pointer; }
.expandable-project-list .epl-summary::-webkit-details-marker { display: none; }
.expandable-project-list .epl-summary::marker { content: ""; }
.expandable-project-list:not(.is-style-anchored-headings) .epl-summary { text-align: center; }
.expandable-project-list .epl-summary::before { content: counter(epl-item, decimal-leading-zero); grid-column: 1; color: var(--epl-purple); font-size: 20px; font-weight: 700; }
.expandable-project-list .epl-summary::after { content: "+"; grid-area: 1 / 3; display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid var(--epl-pink); color: var(--epl-pink); font-size: 32px; font-weight: 300; line-height: 1; }
.expandable-project-list .epl-item[open] > .epl-summary::after { content: "−"; color: #fff; background: var(--epl-pink); }
.expandable-project-list .epl-title { grid-area: 1 / 2; min-width: 0; max-width: 100%; margin: 0; color: var(--epl-accent); font-size: var(--wp--preset--font-size--x-large, 32px); font-weight: 700; line-height: 1.15; text-align: center; text-transform: none; overflow-wrap: anywhere; }
.wp-block-lpd-expandable-project-list.expandable-project-list.is-style-anchored-headings h2.epl-title { color: var(--epl-accent); font-family: inherit; font-size: clamp(30px, 2.7vw, var(--wp--preset--font-size--xx-large, 48px)); font-weight: 900; line-height: 1.08; text-align: left; }
.expandable-project-list .epl-preview { display: none; }
.expandable-project-list .epl-body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; padding: 0 100px 28px; }
.expandable-project-list .epl-body > * { min-width: 0; }
.expandable-project-list.is-style-anchored-headings .epl-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.expandable-project-list .epl-overview { width: 100%; margin: 0; text-align: center; }
.expandable-project-list.is-style-anchored-headings .epl-overview { text-align: left; }
.expandable-project-list .epl-description { margin: 0; font-size: var(--wp--preset--font-size--medium, 24px); font-weight: 300; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.expandable-project-list .epl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px; width: 100%; margin: 0; padding: 24px; background: var(--epl-paper); font-size: 22px; font-weight: 300; line-height: 1.35; text-align: left; }
.expandable-project-list.is-style-anchored-headings .epl-meta { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.expandable-project-list .epl-meta > :only-child { grid-column: 1 / -1; }
.expandable-project-list .epl-meta p, .expandable-project-list .epl-meta-entry { min-width: 0; margin: 0; font-size: inherit; font-weight: 300; line-height: inherit; white-space: pre-line; overflow-wrap: anywhere; }
.expandable-project-list .epl-meta strong { display: block; margin: 0 0 8px; color: var(--epl-purple); font-size: 16px; font-weight: 700; text-transform: none; }
.expandable-project-list .epl-meta-list { margin: 0; padding-inline-start: 1em; text-align: left; }
.expandable-project-list .epl-meta-list li { margin: 0; }
.expandable-project-list .epl-meta-list li + li { margin-top: 3px; }
.expandable-project-list .epl-meta:empty { display: none; }
.expandable-project-list .epl-project-image { width: min(100%, 240px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; }
.expandable-project-list .epl-project-image__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.expandable-project-list.is-style-anchored-headings .epl-project-image { grid-column: 1; margin-inline: 0; }
.expandable-project-list.is-style-anchored-headings .epl-body:has(> .epl-project-image) .epl-overview { grid-column: 1; }
.expandable-project-list.is-style-anchored-headings .epl-body:has(> .epl-project-image) .epl-meta { grid-column: 2; grid-row: 1 / span 2; }
.expandable-project-list.is-style-anchored-headings .epl-body:not(:has(> .epl-meta:not(:empty))) { grid-template-columns: minmax(0, 1fr); }
.expandable-project-list .epl-content { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; padding: 0 100px 36px; }
.expandable-project-list.is-style-anchored-headings .epl-content { justify-content: flex-start; }
.expandable-project-list .epl-content:empty, .expandable-project-list .epl-content--empty { display: none; }
.expandable-project-list .epl-link, .expandable-project-list .epl-link:visited { display: inline; margin: 0; color: var(--epl-pink); font-size: var(--wp--preset--font-size--button, 24px); font-weight: 700; line-height: 1.3; text-align: left; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.expandable-project-list .epl-link::after { content: " →"; }
.expandable-project-list .epl-link:hover { text-decoration-thickness: 2px; }
.expandable-project-list .epl-summary:focus-visible { outline: 3px solid var(--epl-purple); outline-offset: -5px; }
.expandable-project-list .epl-link:focus-visible { outline: 3px solid var(--epl-purple); outline-offset: 5px; }
.expandable-project-list .epl-mobile-nav, .expandable-project-list .epl-pagination, .expandable-project-list .epl-position { display: none; }

@media (max-width: 1200px) {
	.wp-block-lpd-expandable-project-list.expandable-project-list[data-epl-enhanced="true"], .expandable-project-list--editor .epl-editor-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 0; width: calc(100% - 16px); margin-inline: 8px; padding-block: 16px 12px; border: 2px solid var(--epl-ink); background: var(--epl-surface); box-shadow: 6px 6px 0 var(--epl-ink); overflow: visible; }
	.expandable-project-list .epl-track { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.expandable-project-list .epl-track::-webkit-scrollbar { display: none; }
	.expandable-project-list .epl-item, .expandable-project-list .epl-item[open] { flex: 0 0 100%; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; box-shadow: none; scroll-snap-align: start; scroll-snap-stop: always; }
	.expandable-project-list .epl-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; padding: 28px 32px 0; }
	.expandable-project-list .epl-summary::before { grid-area: 1 / 1; font-size: 16px; }
	.expandable-project-list .epl-summary::after { display: none; }
	.expandable-project-list .epl-title { grid-area: 2 / 1; font-size: 28px; scroll-margin-block-start: 16rem; }
	.wp-block-lpd-expandable-project-list.expandable-project-list.is-style-anchored-headings h2.epl-title { font-size: 32px; }
	.expandable-project-list .epl-body, .expandable-project-list.is-style-anchored-headings .epl-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 32px; }
	.expandable-project-list .epl-description { font-size: 22px; }
	.expandable-project-list .epl-meta { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; font-size: 20px; }
	.expandable-project-list.is-style-anchored-headings .epl-body:has(> .epl-project-image) .epl-meta { grid-column: 1; grid-row: auto; }
	.expandable-project-list .epl-content { padding: 0 32px 24px; }
	.expandable-project-list .epl-link { font-size: 22px; }
	.expandable-project-list .epl-mobile-nav { grid-area: 2 / 1 / 3 / -1; position: relative; z-index: 2; display: block; align-self: stretch; margin-inline: -24px; pointer-events: none; }
	.expandable-project-list .epl-nav-button { position: absolute; top: 50%; display: flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 2px solid var(--epl-ink); border-radius: 0; color: #fff; background: var(--epl-pink); box-shadow: 3px 3px 0 var(--epl-ink); font-size: 0; line-height: 0; cursor: pointer; transform: translateY(-50%); pointer-events: auto; }
	.expandable-project-list .epl-nav-button svg { display: block; flex: none; width: 20px; height: 20px; }
	.expandable-project-list .epl-nav-button--previous { left: 0; }
	.expandable-project-list .epl-nav-button--next { right: 0; }
	.expandable-project-list .epl-nav-button:not(:disabled):hover { background: var(--epl-purple); }
	.expandable-project-list .epl-nav-button:disabled { color: var(--epl-purple); background: var(--epl-paper); opacity: .4; box-shadow: none; cursor: default; }
	.expandable-project-list .epl-nav-button:focus-visible { outline: 3px solid var(--epl-purple); outline-offset: 4px; }
	.expandable-project-list .epl-position { display: block; grid-area: 1 / 1; align-self: center; color: var(--epl-purple); font-size: 18px; font-weight: 700; text-align: center; }
	.expandable-project-list .epl-pagination { grid-area: 3 / 1 / 4 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-height: 44px; padding: 0; }
	.expandable-project-list .epl-pagination__dot { display: grid; width: 24px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
	.expandable-project-list .epl-pagination__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #777; }
	.expandable-project-list .epl-pagination__dot[aria-current="true"]::before { width: 10px; height: 10px; background: var(--epl-pink); }
	.expandable-project-list .epl-pagination__dot:focus-visible { outline: 3px solid var(--epl-purple); outline-offset: -3px; }
}
@media (max-width: 480px) { .expandable-project-list .epl-pagination__dot { width: 19px; } }
@media (prefers-reduced-motion: reduce) { .expandable-project-list .epl-track { scroll-behavior: auto; } }
