/* Lions Club Diez – Bildergalerien im Frontend.
   Hält sich an die Farben des Themes, funktioniert aber auch ohne sie. */

.lcdga-zahl {
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--lions-gold-dark, #b58c00);
	margin: 0 0 1.2rem;
}

.lcdga-raster {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
}

@media (max-width: 900px) { .lcdga-raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lcdga-raster { grid-template-columns: 1fr; } }

.lcdga-album {
	background: #fff;
	border: 1px solid var(--lions-line, #e3e7ef);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 35, 102, .10);
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}

.lcdga-album:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 35, 102, .16);
}

.lcdga-album-bild {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #eef2f8;
	line-height: 0;
	cursor: zoom-in;
	overflow: hidden;
}

/* Feste Höhe, damit die Karten im Raster gleich aussehen. */
.lcdga-album-bild img,
.lcdga-album-bild .lcdga-kein-bild {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform .35s ease;
}

.lcdga-album-bild .lcdga-kein-bild { background: #dfe6f2; }

.lcdga-album-bild::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg,
		rgba(0, 51, 141, 0) 45%,
		rgba(0, 51, 141, .30) 75%,
		rgba(0, 51, 141, .70) 100%);
}

.lcdga-album:hover .lcdga-album-bild img { transform: scale(1.04); }

.lcdga-anzahl {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	background: var(--lions-gold, #ebb700);
	color: #1a1a1a;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1;
	padding: .45em .8em;
	border-radius: 999px;
}

.lcdga-album-text {
	padding: 1rem 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.lcdga-album-text h3 {
	margin: 0 0 .3rem;
	font-size: 1.02rem;
	line-height: 1.35;
	color: var(--lions-blue, #00338d);
}

.lcdga-album-text .lcdga-datum {
	margin: 0 0 .4rem;
	font-size: .85rem;
	font-weight: 600;
	color: var(--lions-grey, #6b7280);
}


/* ---------------- Diaschau ---------------- */
.lcdga-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(8, 26, 51, .95);
	display: none;
	justify-content: center;
	/* Die ganze Diaschau scrollt, nicht ein Kasten darin. So bleibt der
	   Kurztext unter dem Bild immer erreichbar, statt unter der
	   Fensterkante abgeschnitten zu werden. */
	align-items: flex-start;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 2rem 1rem 3rem;
	-webkit-overflow-scrolling: touch;
}

.lcdga-lb.is-open { display: flex; }

.lcdga-lb-inner {
	max-width: 1100px;
	width: 100%;
	max-height: none;
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.lcdga-lb-kopf { text-align: center; }

#lcdga-lb h2.lcdga-lb-titel {
	color: #fff;
	font-size: 1.3rem;
	line-height: 1.35;
	margin: 0;
}

#lcdga-lb .lcdga-lb-meta {
	color: var(--lions-gold, #ebb700);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin: .4rem 0 0;
}

.lcdga-lb-bild {
	max-width: 100%;
	max-height: 68vh;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}

/* Fest am Fenster – so bleiben sie erreichbar. */
.lcdga-lb button {
	position: fixed;
	z-index: 2;
	background: rgba(255, 255, 255, .92);
	color: var(--lions-blue, #00338d);
	border: 0;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	min-width: 0;
	padding: 0;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.lcdga-lb button:hover { background: var(--lions-gold, #ebb700); }

.lcdga-lb-zu { top: 20px; right: 20px; }
.lcdga-lb-vor { left: 20px; top: 50%; transform: translateY(-50%); }
.lcdga-lb-zurueck { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
	.lcdga-lb-vor { left: 8px; }
	.lcdga-lb-zurueck { right: 8px; }
	#lcdga-lb h2.lcdga-lb-titel { font-size: 1.05rem; }
	.lcdga-lb-bild { max-height: 60vh; }
}

/* Kurztext unter dem Bild */
#lcdga-lb .lcdga-lb-text {
	color: #dbe4f4;
	font-size: .98rem;
	line-height: 1.65;
	text-align: left;
	max-width: 780px;
	margin: 0;
}

/* ---------------- Miniaturstreifen unter dem Bild ---------------- */
.lcdga-lb-streifen {
	display: flex;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding: 2px 2px 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .35) transparent;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.lcdga-lb-streifen::-webkit-scrollbar { height: 8px; }
.lcdga-lb-streifen::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 4px; }
.lcdga-lb-streifen::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .32); border-radius: 4px; }

#lcdga-lb button.lcdga-mini {
	position: static;           /* die übrigen Knöpfe der Diaschau sind fixiert */
	flex: 0 0 auto;
	width: 86px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255, 255, 255, .10);
	box-shadow: none;
	cursor: pointer;
	opacity: .55;
	transition: opacity .15s ease, outline-color .15s ease;
	outline: 2px solid transparent;
	outline-offset: 1px;
}

#lcdga-lb button.lcdga-mini img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#lcdga-lb button.lcdga-mini:hover,
#lcdga-lb button.lcdga-mini:focus-visible { opacity: 1; background: transparent; }

#lcdga-lb button.lcdga-mini.ist-aktiv {
	opacity: 1;
	outline-color: var(--lions-gold, #ebb700);
}

@media (max-width: 600px) {
	#lcdga-lb button.lcdga-mini { width: 64px; height: 46px; }
}
