/*
Theme Name: CheerUp Child
Theme URI: http://theme-sphere.com/
Description: A child theme of CheerUp
Author: ThemeSphere
Author URI: http://theme-sphere.com
Template: cheerup
Version: 1.1.1
*/

/*
 * fotocamp-herbstlicht.de, 16.11.2026:
 * Beschnittene Galerien (Core-Block "Galerie", Option "Bilder zuschneiden").
 * Die Bilder stecken in span.isc-source (Image Source Control) und picture (WebP Express).
 * Diese Huellen reichen die Kachelhoehe nicht an das Bild durch, dadurch entstanden
 * Luecken und ungleich hohe Kacheln (z. B. /rueckblick-2025/).
 */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image > .isc-source,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image picture {
	display: flex;
	flex: 1 0 0%;
	width: 100%;
	height: 100%;
	position: relative;
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image picture img {
	flex: 1 0 0%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Beitragsbild bis 1200 px: CheerUp zieht .image-link randlos auf 100vw.
 * Image Source Control legt span.isc-source dazwischen; ohne Korrektur blieb die Huelle
 * schmal und die Bildquelle (z. B. "(c) Philipp Zieger") hing gequetscht unter dem Bild.
 * Die Verbreiterung wird deshalb auf die Huelle verlagert.
 */
@media (max-width: 1200px) {
	.the-post-modern .featured > .isc-source {
		display: block;
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
	}

	.the-post-modern .featured > .isc-source .image-link {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}
}

/*
 * Kontrast (WCAG 2.1 AA, 4,5:1) - die Seite hat eine Barrierefreiheitserklaerung.
 * CheerUp-Vorgaben gemessen: Meta/Datum/Autor #b4b4b4 (2,07:1), Formulare #c0c0c0 (1,82:1),
 * "Nach oben" #999 (2,66:1). #6b6b6b ergibt auf Weiss 5,3:1, auf #f7f7f7 4,9:1.
 */
.post-meta,
.large-post-footer .author,
.back-to-top,
.back-to-top i {
	color: #6b6b6b;
}

/* Eingabefelder allgemein (Kommentare, Suche, Ninja Forms): Parent setzt input,textarea,select auf #b4b4b4.
   Knoepfe, Haekchen und Optionsfelder behalten ihre Theme-Farbe. */
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
	color: #555;
}

input::placeholder,
textarea::placeholder {
	color: #6b6b6b;
	opacity: 1;
}
