.kl-galerie .elementor-widget-image img {
	width: 100%;
	min-height: 150px;
    object-fit: cover;
    object-position: center center;
    transition-duration: 0.5s;
    border-radius: 10px 10px 10px 10px;
}

/***** Portfolia - Verkauf *****/
/* mobil */
.wrap-roomView-Gallery {
}

#portfolio-gallerie-1 .gallery {
	display: flex;
  	flex-wrap: wrap;
}

#portfolio-gallerie-1 .gallery-item {
	position: relative;
	max-width: 100%;
	width: 100%;
	height: 100%;
	display: flex;
  	flex-direction: column;
	align-items: center;
	margin-bottom: 3em;
}

@media (min-width: 767px) {
	#portfolio-gallerie-1 .gallery-item {
		flex-direction: row;
		width: 90%;
		margin-bottom: 3em;
	}
	#portfolio-gallerie-1 .gallery-item:nth-child(even) {
  		flex-direction: row-reverse;
		margin-left: 10%;
	}
	#portfolio-gallerie-1 .gallery-item .wp-caption-text {
		margin-top: 8em;
		margin-left: 2em;
		width: 30%;
    	min-width: 150px;
	}
	#portfolio-gallerie-1 .gallery-item:nth-child(even) .wp-caption-text {
		margin-right: 2em;
	}
}

@media (min-width: 910px) {
	#portfolio-gallerie-1 .gallery-item {
		flex-direction: row;
		width: 70%;
		margin-bottom: 4em;
	}
	#portfolio-gallerie-1 .gallery-item:nth-child(even) {
  		flex-direction: row-reverse;
		margin-left: 30%;
	}
	#portfolio-gallerie-1 .gallery-item .wp-caption-text {
		margin-top: 8em;
		margin-left: 2em;
	}
	#portfolio-gallerie-1 .gallery-item:nth-child(even) .wp-caption-text {
		margin-right: 2em;
	}
}

/*** mitlaufende Rahmenlinie ***/
/* Rahmenlinie (unsichtbar und horizontal zeichnend) */
@media (min-width: 767px) {
	.gallery-item::before {
	  content: "";
	  position: absolute;
	  top: 50%; /* Linie in der Mitte des Containers */
	  width: var(--widthPercentage, 0); /* Breite wird von JavaScript gesteuert */
	  height: 3px; /* Dicke der Linie */
	  background-color: #7bc1ac; /* Farbe der Linie */
	  transition: width 0.4s ease-out; /* Schneller Übergang */
	  pointer-events: none;
	  z-index: 10;
	  transform-origin: left;
	  max-width: 31%;
	}

	/* Linie an der linken Seite */
	.gallery-item.left::before {
	  left: 0; /* Linie startet vom linken Rand */
	}

	/* Linie an der rechten Seite */
	.gallery-item.right::before {
	  right: 0; /* Linie startet vom rechten Rand */
	}
}