.odyssee-peinture {
	position: relative;
	width: min(100%, 980px);
	margin: 2.5rem auto 5rem;
}

.odyssee-peinture__map-wrap {
	position: relative;
	overflow-x: auto;
	padding: 0.75rem;
	border-radius: 8px;
	background: #111;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
	scrollbar-width: thin;
}

.odyssee-peinture__map {
	position: relative;
	width: 100%;
	min-width: 720px;
}

.odyssee-peinture__map-image {
	display: block;
	width: 100%;
	height: auto;
}

.odyssee-peinture__marker {
	position: absolute;
	left: var(--x);
	top: var(--y);
	z-index: 1;
	width: var(--w);
	height: var(--h);
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: transparent;
	cursor: pointer;
	touch-action: manipulation;
	transform: translate(-50%, -50%);
}

.odyssee-peinture__marker:focus-visible {
	outline: 2px solid rgba(0, 111, 158, 0.72);
	outline-offset: 2px;
}

.odyssee-peinture__mobile-picker {
	display: none;
}

.odyssee-peinture__dialog[hidden] {
	display: none;
}

.odyssee-peinture__dialog {
	position: absolute;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: clamp(0.75rem, 3vw, 1.5rem);
}

.odyssee-peinture__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
}

.odyssee-peinture__card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(300px, 1.18fr) minmax(230px, 0.82fr);
	width: min(100%, 820px);
	height: min(calc(100% - 3rem), 620px);
	max-height: min(calc(100% - 3rem), 620px);
	overflow: hidden;
	border-radius: 8px;
	background: #f8f4eb;
	color: #2d2620;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

body.odyssee-dialog-open {
	overflow: hidden;
}

.odyssee-peinture__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	cursor: pointer;
}

.odyssee-peinture__close:hover,
.odyssee-peinture__close:focus-visible {
	background: #000;
	outline: none;
}

.odyssee-peinture__art {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 310px;
	object-fit: cover;
	background: #17110c;
}

.odyssee-peinture__art--light {
	box-sizing: border-box;
	object-fit: contain;
	padding: 1rem;
	background: #fff;
}

.odyssee-peinture__body {
	display: grid;
	align-items: center;
	min-height: 0;
	overflow: hidden;
	padding: clamp(1.15rem, 3vw, 1.8rem);
	text-align: left;
}

.odyssee-peinture__content {
	position: relative;
	display: grid;
	justify-items: start;
	gap: 0.75rem;
	width: min(100%, 21rem);
	max-height: min(100%, 60vh, 27rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding-right: 0.25rem;
}

.odyssee-peinture__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	height: 2.35rem;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(248, 244, 235, 0), #f8f4eb 82%);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.odyssee-peinture__content.is-scrollable.is-scroll-start:not(.is-scroll-end)::after {
	opacity: 1;
}

.odyssee-peinture__title {
	margin: 0;
	color: #2d2620;
	font-size: clamp(1.18rem, 3vw, 1.55rem);
	line-height: 1.12;
}

.odyssee-peinture__text {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: #4f453c;
	font-size: 0.86rem;
	line-height: 1.42;
	text-align: left !important;
	text-indent: 0 !important;
}

.odyssee-peinture__text p {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 0.58rem !important;
	padding: 0 !important;
	font: inherit !important;
	line-height: inherit !important;
	text-align: left !important;
	text-indent: 0 !important;
}

.odyssee-peinture__text p:last-child {
	margin-bottom: 0;
}

.odyssee-peinture__link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.42rem 0.68rem;
	border-radius: 5px;
	background: #26343d;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.odyssee-peinture__link:hover,
.odyssee-peinture__link:focus-visible {
	background: #111;
	color: #fff;
	outline: none;
}

html[data-theme="dark"] .odyssee-peinture__map-wrap {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .odyssee-peinture__marker:focus-visible {
	outline-color: rgba(0, 136, 191, 0.86);
}

html[data-theme="dark"] .odyssee-peinture__card {
	background: #171717;
	color: #f4f4f4;
}

html[data-theme="dark"] .odyssee-peinture__content::after {
	background: linear-gradient(to bottom, rgba(23, 23, 23, 0), #171717 82%);
}

html[data-theme="dark"] .odyssee-peinture__title,
html[data-theme="dark"] .odyssee-peinture__text {
	color: #f4f4f4;
}

@media (max-width: 760px) {
	.odyssee-peinture {
		margin: 2rem auto 3.5rem;
	}

	.odyssee-peinture__map-wrap {
		overflow: hidden;
		padding: clamp(0.3rem, 1.8vw, 0.5rem);
		border-radius: 6px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
	}

	.odyssee-peinture__map {
		width: 100%;
		min-width: 0;
	}

	.odyssee-peinture__marker {
		width: max(var(--w), 2rem);
		height: max(var(--h), 2rem);
	}

	.odyssee-peinture__mobile-picker {
		display: flex;
		justify-content: center;
		margin: 0.45rem 0.15rem 0.1rem;
		color: #fff;
	}

	.odyssee-peinture__mobile-picker label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.odyssee-peinture__mobile-picker select {
		box-sizing: border-box;
		width: min(100%, 12rem);
		min-height: 38px;
		padding: 0.35rem 1.8rem 0.35rem 0.55rem;
		border: 0;
		background: transparent;
		color: #eee;
		color-scheme: dark;
		font: inherit;
		font-size: 0.86rem;
	}

	.odyssee-peinture__mobile-picker select:focus-visible {
		outline: 2px solid #49b7df;
		outline-offset: 2px;
	}

	.odyssee-peinture__dialog {
		position: fixed;
		padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
	}

	.odyssee-peinture__card {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		width: 100%;
		height: auto;
		max-height: calc(100vh - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
		overflow: hidden;
	}

	.odyssee-peinture__art {
		height: min(32vh, 220px);
		min-height: 0;
	}

	.odyssee-peinture__close {
		top: 0.6rem;
		right: 0.6rem;
		width: 2.75rem;
		height: 2.75rem;
	}

	.odyssee-peinture__body {
		align-items: start;
		padding: 1rem;
	}

	.odyssee-peinture__content {
		width: 100%;
		min-height: 0;
		max-height: 100%;
	}

	.odyssee-peinture__title {
		font-size: clamp(1.2rem, 6vw, 1.45rem);
	}

	.odyssee-peinture__text {
		font-size: 0.92rem;
	}
}

@media (max-width: 760px) and (max-height: 560px) {
	.odyssee-peinture__art {
		height: 25vh;
	}
}
