/* Slideshow: normale WordPress-Galerie (Mediathek), automatisch durchblätternd. */

.ibm-slideshow {
	position: relative;
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 0 !important;
}

/* Querformat-Rahmen: Jedes Bild sitzt in einem 3:2-Kasten und wird
   vollstaendig gezeigt (object-fit: contain). Hochformate bekommen
   seitliche Balken, sprengen aber nicht mehr die Hoehe. */
.ibm-slideshow > .wp-block-image,
.ibm-slideshow > li {
	grid-area: 1 / 1 !important;
	margin: 0 !important;
	width: 100% !important;
	aspect-ratio: 3 / 2;
	background: #101a2c;
	border-radius: 4px;
	overflow: hidden;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}

.ibm-slideshow > .wp-block-image.is-active,
.ibm-slideshow > li.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ibm-slideshow img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	display: block;
	border-radius: 0;
}

.ibm-slideshow__dots {
	grid-column: 1 / -1;
	display: flex;
	gap: .55rem;
	justify-content: center;
	margin-top: 1rem;
}

.ibm-slideshow__dots button {
	width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%;
	background: #c9ced8; cursor: pointer; transition: background .2s ease, transform .2s ease;
}

.ibm-slideshow__dots button:hover { transform: scale( 1.2 ); }
.ibm-slideshow__dots button.is-active { background: var(--wp--preset--color--blue, #0e428a); }

.ibm-slideshow.is-static > .wp-block-image,
.ibm-slideshow.is-static > li {
	grid-area: auto !important; opacity: 1; pointer-events: auto; margin-bottom: 1rem !important;
	aspect-ratio: auto;
	background: none;
	overflow: visible;
}

.ibm-slideshow.is-static img { height: auto; object-fit: none; border-radius: 4px; }

@media (max-width: 780px) { .ibm-slideshow__dots button { width: 13px; height: 13px; } }
