/* Fotobox Laubach – Hintergrund-Galerie (Farben passend zum Theme) */
.fblh {
	--h-ink: var(--wp--preset--color--ink, #2A1D15);
	--h-muted: var(--wp--preset--color--muted, #5E4A3B);
	--h-accent: var(--wp--preset--color--accent, #E2A062);
	--h-accent-dark: var(--wp--preset--color--accent-dark, #8C4E16);
	--h-cream: var(--wp--preset--color--cream, #F6EFE4);
	--h-paper: var(--wp--preset--color--paper, #FFFCF7);
	--h-line: var(--wp--preset--color--line, #E6D9C6);
	color: var(--h-ink);
}
.fblh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fblh-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fblh-search input {
	font: inherit; font-size: 1rem; width: min(320px, 100%); min-height: 48px; padding: 10px 16px;
	border: 1.5px solid var(--h-line); border-radius: 999px; background: #fff; color: var(--h-ink);
}
.fblh-search input:focus { outline: none; border-color: var(--h-accent-dark); box-shadow: 0 0 0 3px rgba(226, 160, 98, .3); }
.fblh-count { margin: 0; color: var(--h-muted); font-weight: 600; }
.fblh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.fblh-chip {
	font: inherit; font-weight: 600; font-size: .9375rem; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
	border: 1.5px solid var(--h-line); background: var(--h-paper); color: var(--h-ink);
}
.fblh-chip span { font-weight: 500; color: var(--h-muted); margin-left: 2px; }
.fblh-chip:hover { border-color: var(--h-accent); }
.fblh-chip[aria-pressed="true"] { background: var(--h-ink); border-color: var(--h-ink); color: var(--h-paper); }
.fblh-chip[aria-pressed="true"] span { color: var(--h-sand, #EFE4D3); }
.fblh-hint { margin: 0 0 20px; color: var(--h-muted); font-size: .9375rem; }

.fblh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fblh-item { position: relative; margin: 0; background: var(--h-paper); border: 1px solid var(--h-line); border-radius: 14px; overflow: hidden; }
.fblh-item[hidden] { display: none; }
.fblh-open { display: block; }
.fblh-open img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--h-cream); transition: transform .25s ease; }
.fblh-open:hover img, .fblh-open:focus-visible img { transform: scale(1.03); }
.fblh-open:focus-visible { outline: 3px solid var(--h-accent-dark); outline-offset: -3px; }
.fblh-nr { display: block; padding: 8px 12px; font-weight: 700; font-size: .9375rem; letter-spacing: .02em; }
.fblh-fav {
	position: absolute; right: 6px; bottom: 2px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center; color: var(--h-muted); border-radius: 999px;
}
.fblh-fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fblh-fav:hover { color: #B4232A; }
.fblh-item.is-fav { border-color: var(--h-accent); box-shadow: 0 0 0 2px var(--h-accent); }
.fblh-item.is-fav .fblh-fav { color: #B4232A; }
.fblh-item.is-fav .fblh-fav svg { fill: currentColor; }
.fblh-empty { margin: 24px 0; color: var(--h-muted); }

.fblh-merk { position: sticky; bottom: 12px; z-index: 20; margin-top: 20px; }
.fblh-merk-inner {
	display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 18px;
	background: var(--h-ink); color: var(--h-paper); border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.fblh-merk-label { font-weight: 700; }
.fblh-merk-list { flex: 1 1 200px; font-variant-numeric: tabular-nums; }
.fblh-merk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fblh-btn {
	font: inherit; font-weight: 700; font-size: .9375rem; min-height: 44px; padding: 10px 18px; border-radius: 999px;
	border: 0; cursor: pointer; background: var(--h-accent); color: var(--h-ink); text-decoration: none; display: inline-flex; align-items: center;
}
.fblh-btn--dark { background: var(--h-paper); color: var(--h-ink); }
.fblh-btn:hover { filter: brightness(1.05); }
.fblh-link { font: inherit; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 6px; }

.fblh-dialog { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.fblh-dialog::backdrop { background: rgba(20, 14, 10, .82); }
.fblh-dialog figure { margin: 0; background: var(--h-paper); border-radius: 16px; overflow: hidden; }
.fblh-dialog img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #111; }
.fblh-dialog figcaption { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.fblh-dlg-nr { font-size: 1.25rem; }
.fblh-dlg-actions { display: flex; gap: 8px; align-items: center; }
.fblh-dlg-fav[aria-pressed="true"] { background: var(--h-ink); color: var(--h-paper); }
.fblh-iconbtn {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--h-line); background: var(--h-cream);
	color: var(--h-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fblh-iconbtn:hover { background: #fff; }

@media (max-width: 600px) {
	.fblh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fblh-nr { padding: 6px 10px; font-size: .875rem; }
	.fblh-merk-inner { padding: 12px 14px; }
}
