/* Vorschaubilder im Fließtext */


body.lightbox-open {
    overflow: hidden;
    height: 100vh;
}

.element-befeld-lightbox {
    /* margin-bottom: 40px; */
    /* scroll-margin-top: 130px; */
}

.befeld-gallery {
	/* display: flex; */
	
	/* Die Galerie-Box und die Bilder werden unsichtbar und verbrauchen 0 Pixel Platz */
	display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none; /* Verhindert, dass man aus Versehen unsichtbare Bilder anklickt */

	/* gap: 15px;
	flex-wrap: wrap;
	margin: 20px 0; */
	}
.lightbox-trigger { cursor: pointer; transition: transform 0.2s; max-width: 100%; height: auto; }
.lightbox-trigger:hover { transform: scale(1.03); }

.lightbox-text-trigger {
    color: #176b31; /* Die normale, dunkle Textfarbe */
    
    /* Weicher, fließender Übergang für die Schriftfarbe und den Text-Schatten */
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.lightbox-text-trigger:hover,
.lightbox-text-trigger:hover * {
    color: #176b31; /* Das Befeld-Grün */
    
    /* Erzeugt den exakten, scharfen grünen Schatteneffekt direkt an den Buchstaben */
    text-shadow: 0.5px 0 0 #176b31, -0.5px 0 0 #176b31;
}


/* Das Popup-Overlay */
.lightbox-overlay {
    position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
    background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
    display: flex;
	align-items: center;
	justify-content: center;
	
	overflow-y: auto;
    padding: 20px 0;
}

/* Das große Bild */
.lightbox-content {
	position: relative;
	max-width: 85%;
	max-height: 80%;
	text-align: center;
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	
	}
#lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border: 3px solid #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
	}

#lightbox-title {
	color: #ffffff;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 5px;
	line-height: 1.2;
	font-family: sans-serif;
	}


/* Navigation & Info */
.lightbox-caption {
	color: #fff;
	margin-top: 5px;
	font-family: sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.2;
	}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 25px;
	color: #fff;
	background: none;
	border: none;
	font-size: 45px;
	transition: color 0.2s;
	cursor: pointer;
	z-index: 10004;

	}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	background: rgba(0,0,0,0.35); /* Sehr dezenter, dunkler Hintergrund-Kreis */
	border: none;
	font-size: 45px;
	/* font-weight: bold; */
    width: 70px;
    height: 100px;
	border-radius: 10%; /* Macht die Buttons rund */
	
	padding: 15px;
	cursor: pointer;

    display: flex;
    /* align-items: center; */
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
	z-index: 10000;
	}

.lightbox-nav.prev { left: calc(30vw - 100px);/* 20px; */ }
.lightbox-nav.next { right: calc(30vw - 100px); }
.lightbox-nav:hover, .lightbox-close:hover { color: #176b31; }


@media (max-width: 1000px) {

	.lightbox-nav.prev { left: calc(10vw - 0px);/* 20px; */ }
	.lightbox-nav.next { right: calc(10vw - 0px); }
}


@media (max-width: 780px) {
    .lightbox-nav {
		/* padding: 10px;
		font-size: 40px; */
		/position: absolute;
		top: 50%;
		transform: translateY(-50%);
        /* top: 0;
        bottom: 0; */
        width: 45vw;
        height: 45vh;

        border-radius: 0;
        background: transparent;
        color: transparent;
        z-index: 10002;

	}
	
	
    .lightbox-content { max-width: 95%; }
	
	.lightbox-nav.prev { left: 0; }
	.lightbox-nav.next { right: 0; }
	.lightbox-nav:hover, .lightbox-close:hover { color: transparent; }

}
