/* JayBnB Carousel - Stufe 1: reines CSS macht die Galerie zum Snap-Scroller.
   Die !important-Regeln uebersteuern gezielt das width-calc()-Grid des
   Gallery-Blocks; ohne sie gewinnt Core. */

.wp-block-gallery.jaybnb-carousel {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 0 !important;
	scrollbar-width: none;
}

.wp-block-gallery.jaybnb-carousel::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.jaybnb-carousel > figure.wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Einheitliche Hoehe ueber alle Slides. 16/9 entspricht dem Jimdo-Original;
   Hochformate werden beschnitten - das Vollbild (Klick/Lightbox) zeigt sie ganz. */
.wp-block-gallery.jaybnb-carousel img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Stufe 2: vom JS erzeugte Huelle mit Pfeilen.
   Pfeile im selben dunklen Chip-Stil wie der Buchen-Button -
   eine Bediensprache fuer die ganze Karte. */

.jaybnb-shell {
	position: relative;
}

.jaybnb-shell .jaybnb-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(40, 44, 52, 0.65);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0 0 4px;
	z-index: 2;
	transition: background 0.15s ease;
}

.jaybnb-shell .jaybnb-arrow:hover {
	background: rgba(40, 44, 52, 0.9);
}

.jaybnb-shell .jaybnb-prev { left: 10px; }
.jaybnb-shell .jaybnb-next { right: 10px; }

/* Thumbnail-Leiste: linksbuendig auf der Fluchtlinie der Bildspalte */

.jaybnb-thumbs {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.jaybnb-thumbs button {
	padding: 0;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.jaybnb-thumbs button:hover {
	opacity: 0.85;
}

.jaybnb-thumbs button img {
	display: block;
	width: 76px;
	height: 57px;
	object-fit: cover;
}

.jaybnb-thumbs button[aria-current="true"] {
	opacity: 1;
	border-color: currentColor;
}
