/* CSS-Datei aus dem Forum */

/* Hier auskommentiert, da im Zuge der CSS-Bereinigungen diese 	*/
/* Deklarationbereits in der Datei kmr-basics.css enthalten ist	*/
/* KMR/hp 20261202-130500																				*/
/* html,
body {
		height: 100%;
} */

/* Hier auskommentiert, da im Zuge der CSS-Bereinigungen diese 	*/
/* Deklarationbereits in der Datei kmr-basics.css enthalten ist	*/
/* KMR/hp 20261202-130500																				*/
/* body {
		margin: 0;
		position: relative;
} */

/* 'gallery' wird in kabl-convert_kabl-vorlage.php verwendet */
.gallery {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;		/* Optional: bricht in neue Zeile bei zu wenig Platz */
	gap: 0em;
	margin: 20px auto;		/* Abstand vor Gallery etwas erhöht, KMR/hp 20260822-092400 */
}

.gallery figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* width: 150px; */
	text-align: center;
	transition: all 1s linear;
	z-index: 100;
	margin-top: 0.25em;
	margin-bottom: 1.5em;
}

.gallery img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
	/*border-radius: 0.5em;*/
	border-radius: 5px;
	border: 2px solid cadetblue;
	/*box-shadow: 2px 2px 9px grey;*/
	display: block;
	width: 200px;
	height: auto;
}

.gallery figcaption {
	margin-top: 0.5em;
	font-size: 0.75em;
	font-weight: bolder;
	font-family: "Open Sans", sans-serif;
	color: #3d4449;
	line-height: 1.2em;
	word-wrap: break-word;	
	-webkit-hyphens: auto;		/* Aktiviert die automatische Silbentrennung Safari 5+ */
	-moz-hyphens: auto;		/* Aktiviert die automatische Silbentrennung Firefox 6+ */
	-ms-hyphens: auto;		/* Aktiviert die automatische Silbentrennung IE 10+ & iOS 4.2+ */
	-o-hyphens: auto;		/* Aktiviert die automatische Silbentrennung */
	hyphens: auto;			/* Aktiviert die automatische Silbentrennung */
}

@media (max-width: 1000px) {
	.gallery figure {
	margin: 15px;
	margin-top: 0.25em;
	margin-bottom: 1.5em;
	}
	/* .gallery img {
	width: 150px;
	} */
}

@media (max-width: 700px) {
	.gallery figure {
	margin: 5px;
	margin-top: 0.15em;
	margin-bottom: 1.0em;
	}
	.gallery img {
	width: 125px;
	}
} 

@media (max-width: 400px) {
	.gallery figure {
	margin: 5px;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	}
}

img.zoomsmall {
	display: block;
	width: 200px;
	height: auto;
	transform: translate(0, 0);
}

.zoom-bottomleft.large {
	position: relative;
	z-index: 999;
}

/* Folgende Sequenz vorher in Datei kmr-figcaption als einziger Eintrag dort. */
/* Daher diese Zeilen von "kmr-figcaption" in diese CSS-Datei übernommen.     */
/* KMR/hp/24.08.2024                                                          */

/* ex. Bylines */
figure figcaption {
	font-size: 0.75em;
	font-weight:bolder;
	/* font-family: "Roboto Slab", serif; */
	font-family: "Open Sans", sans-serif;
	color: #3d4449;
	word-wrap: break-word;	/* trennt auch an nicht-normalen (überlangen) Stellen */
	/* An diesen Stellen kein Blocksatz erwünscht, daher wieder deaktiviert */
	/* 24.08.2024 KMR/hp */
	/* text-align: justify;		/* Blocksatz für bessere Sichtbarkeit der Silbentrennung */ 
	-webkit-hyphens: auto;	/* Aktiviert die automatische Silbentrennung Safari 5+ */
	-moz-hyphens: auto;			/* Aktiviert die automatische Silbentrennung Firefox 6+ */
	-ms-hyphens: auto;			/* Aktiviert die automatische Silbentrennung IE 10+ & iOS 4.2+ */
	-o-hyphens: auto;				/* Aktiviert die automatische Silbentrennung */
	hyphens: auto;					/* Aktiviert die automatische Silbentrennung */
}

figure.ovl {
	margin: 0em;
	position: fixed;
	width: 0em;			/* vorher 0em */
	height: 0em;			/* vorher 0em */
	left: 50%;			/* gibt den Punkt an, aus welchem das Bild "hineinfliegt": 
											bei 50% beginnt das Aufzoomen in der Mitte, bei 90% aus der rechten, 
											unteren Ecke wenn "top" ebenfalls 90% */
	top: 50%;				/* vorher 50% */
	transform: translate(-50%, -50%);			/* vorher -50%, -50% */
	transition: all 1s linear;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

figure.ovl.large {
	/* position: absolute; */
	/* width: 80%; */
	/* height: 80%; */
	width: 60%;			/* vorher 60% */
	height: 90%;		/* vorher 90% */
	left: 50%;			/* vorher 50%, 50% */
	top: 50%;				/* vorher 50%, 50% */
	transform: translate(-50%, -50%);
}

figure.ovl img {
	width: auto;		/* vorher auto */
	height: 100%;		/* vorher 100% */
	border-radius: 0.7em;
}

/* neu hinzugefügt: 20240406 KMR/hp */
figure.ovl img.fitVertically {
	width: 90%;	/* vorher 100% */				/* bestimmt die Grösse/Höhe der Vergrösserung: 
																			/* 10% sehr niedrig, 100% max. Höhe, auch höher als Bildschirm */
	height: auto;	/* vorher auto */			/* sollte analog sein, also gleichen Werte haben unten,
																			/* unter figure.ovl img.fitHorizontally Wert für height,
																			/* sonst Resultat verzogenes Bild */
	border-radius: 0.7em;
}

figure.ovl img.fitHorizontally {
	height: 90%;	/* vorher 100%, und auf index.php-Seite 95 % */
	width: auto;	/* vorher auto */
}

img.zoomsmall:hover {
	cursor: zoom-in;
}

figure.large:hover {
	cursor: zoom-out;
}

figure.image.main.smaller05, figure.image.right.smaller05, figure.image.left.smaller05 {
	max-width: 5%;
}

figure.image.main.smaller10, figure.image.right.smaller10, figure.image.left.smaller10 {
	max-width: 10%;
	/* max-height: 10%; */
}

figure.image.main.smaller15, figure.image.right.smaller15, figure.image.left.smaller15 {
	max-width: 15%;
}

figure.image.main.smaller20, figure.image.right.smaller20, figure.image.left.smaller20 {
	max-width: 20%;
	/* max-height: 20%; */
}

figure.image.main.smaller25, figure.image.right.smaller25, figure.image.left.smaller25 {
	max-width: 25%;
}

figure.image.main.smaller30, figure.image.right.smaller30, figure.image.left.smaller30 {
	max-width: 30%;
}

figure.image.main.smaller35, figure.image.right.smaller35, figure.image.left.smaller35 {
	max-width: 35%;
}

figure.image.main.smaller40, figure.image.right.smaller40, figure.image.left.smaller40 {
	max-width: 40%;
}

figure.image.main.smaller45, figure.image.right.smaller45, figure.image.left.smaller45 {
	max-width: 45%;
}

figure.image.main.smaller50, figure.image.right.smaller50, figure.image.left.smaller50 {
	max-width: 50%;
}

figure.image.main.smaller55, figure.image.right.smaller55, figure.image.left.smaller55 {
	max-width: 55%;
}

figure.image.main.smaller60, figure.image.right.smaller60, figure.image.left.smaller60 {
	max-width: 60%;
}

figure.image.main.smaller65, figure.image.right.smaller65, figure.image.left.smaller65 {
	max-width: 65%;
}

figure.image.main.smaller70, figure.image.right.smaller70, figure.image.left.smaller70 {
	max-width: 70%;
}

figure.image.main.smaller75, figure.image.right.smaller75, figure.image.left.smaller75 {
	max-width: 75%;
}

figure.image.main.smaller80, figure.image.right.smaller80, figure.image.left.smaller80 {
	max-width: 80%;
}
