/* Jenapart Galerie 1.0.0 – Wittstockdesign
   Galerie (Ersatz Master Slider) und Wohnungs-Karussell (Ersatz Divi Carousel).
   Werte von der Live-Seite übernommen: Blau #002d78, Bühne 1000 × 667 (3:2), Beschriftung Robot-Light-neu 18 px,
   Kartentitel Neutra Text Bold 29 px. Selektoren mit zwei Klassen, damit Divis .entry-content ul/li nicht greift. */

.jg-galerie,
.jg-wohnungen {
	--jg-blau: #002d78;
	--jg-text: #333;
	position: relative;
}

.jg-galerie *,
.jg-wohnungen * {
	box-sizing: border-box;
}

.jg-galerie ul.jg-spur,
.jg-galerie ul.jg-vorschau,
.jg-wohnungen ul.jg-spur {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: normal;
}

.jg-galerie li,
.jg-wohnungen li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.jg-galerie ul.jg-spur,
.jg-wohnungen ul.jg-spur {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.jg-galerie ul.jg-spur::-webkit-scrollbar,
.jg-wohnungen ul.jg-spur::-webkit-scrollbar {
	display: none;
}

/* ---------- Galerie ---------- */

.jg-galerie {
	max-width: 1000px;
	margin: 0 auto;
}

.jg-galerie .jg-buehne {
	position: relative;
}

.jg-galerie .jg-spur:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: 3px;
}

.jg-galerie li.jg-folie {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.jg-galerie figure {
	margin: 0;
	padding: 0;
}

.jg-galerie img.jg-folie-bild {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	background: #fff;
}

.jg-galerie figcaption {
	font-family: "Robot-Light-neu", Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
	color: #000;
	text-align: center;
	min-height: 40px;
	margin: 0;
	padding: 10px 8px;
}

.jg-galerie .jg-pfeil {
	position: absolute;
	top: calc(50% - 20px);
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--jg-blau);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	z-index: 2;
}

.jg-galerie .jg-pfeil svg {
	width: 22px;
	height: 22px;
}

.jg-galerie .jg-zurueck {
	left: 14px;
}

.jg-galerie .jg-weiter {
	right: 14px;
}

.jg-galerie .jg-buehne:hover .jg-pfeil,
.jg-galerie .jg-pfeil:focus-visible {
	opacity: 1;
}

.jg-galerie .jg-pfeil:hover {
	background: #fff;
}

.jg-galerie .jg-pfeil:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: 2px;
}

@media (hover: none) {
	.jg-galerie .jg-pfeil {
		opacity: 1;
		width: 40px;
		height: 40px;
	}
}

.jg-galerie ul.jg-vorschau {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 4px !important;
}

.jg-galerie .jg-vorschau li {
	flex: 0 0 auto;
}

.jg-galerie button.jg-daumen {
	display: block;
	width: 127px;
	height: 95px;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.jg-galerie button.jg-daumen:hover,
.jg-galerie button.jg-daumen[aria-current="true"] {
	opacity: 1;
}

.jg-galerie button.jg-daumen[aria-current="true"] {
	border-bottom-color: var(--jg-blau);
}

.jg-galerie button.jg-daumen:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: 1px;
}

.jg-galerie img.jg-daumen-bild {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.jg-galerie figcaption {
		font-size: 16px;
		min-height: 36px;
		padding: 8px;
	}

	.jg-galerie button.jg-daumen {
		width: 84px;
		height: 63px;
	}
}

/* ---------- Wohnungs-Karussell ---------- */

.jg-wohnungen {
	--jg-n: 4;
}

@media (max-width: 980px) {
	.jg-wohnungen {
		--jg-n: 3;
	}
}

@media (max-width: 767px) {
	.jg-wohnungen {
		--jg-n: 1;
	}
}

.jg-wohnungen li.jg-karte {
	flex: 0 0 calc(100% / var(--jg-n));
	scroll-snap-align: start;
	text-align: center;
	padding: 0 20px;
}

.jg-wohnungen a.jg-karte-bildlink {
	display: block;
	margin: 0 0 20px;
}

.jg-wohnungen img.jg-karte-bild {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.jg-wohnungen a.jg-karte-bildlink:hover img.jg-karte-bild {
	opacity: 0.88;
}

.jg-wohnungen h3.jg-karte-titel {
	font-family: "Neutra Text Bold", Helvetica, Arial, Lucida, sans-serif;
	font-size: 29px;
	font-weight: 500;
	line-height: 1;
	color: var(--jg-text);
	margin: 0 0 10px;
	padding: 0 0 10px;
}

.jg-wohnungen h3.jg-karte-titel a {
	color: inherit;
	text-decoration: none;
}

.jg-wohnungen h3.jg-karte-titel a:hover {
	color: var(--jg-blau);
}

.jg-wohnungen h3.jg-karte-titel a:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: 3px;
}

.jg-wohnungen p.jg-karte-unter {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--jg-text);
	margin: 0 0 10px;
	padding: 0 0 15px;
}

.jg-wohnungen .jg-steuerung {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.jg-wohnungen button.jg-k-pfeil {
	width: 53px;
	height: 53px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--jg-blau);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform 0.2s ease;
}

.jg-wohnungen button.jg-k-pfeil svg {
	width: 34px;
	height: 34px;
}

.jg-wohnungen button.jg-zurueck:hover {
	transform: translateX(-3px);
}

.jg-wohnungen button.jg-weiter:hover {
	transform: translateX(3px);
}

.jg-wohnungen button.jg-k-pfeil:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: 2px;
}

.jg-wohnungen .jg-punkte {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.jg-wohnungen button.jg-punkt {
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.jg-wohnungen button.jg-punkt::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jg-blau);
	opacity: 0.3;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jg-wohnungen button.jg-punkt[aria-current="true"]::before {
	opacity: 1;
	transform: scale(1.25);
}

.jg-wohnungen button.jg-punkt:focus-visible {
	outline: 2px solid var(--jg-blau);
	outline-offset: -2px;
	border-radius: 50%;
}

@media (max-width: 767px) {
	.jg-wohnungen h3.jg-karte-titel {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jg-galerie ul.jg-spur,
	.jg-wohnungen ul.jg-spur {
		scroll-behavior: auto;
	}

	.jg-galerie *,
	.jg-wohnungen * {
		transition: none !important;
	}
}
