/* Vereinsleben-Galerie (Shortcode [foev_vereinsleben]).
   Slider mit Crossfade, Caption, Zähler, Pfeilen und Thumbnails.
   Schriften kommen aus dem Theme (Roboto / Roboto Slab) mit Fallbacks. */
.foev-vl{
	--vg:#228541;--vink:#141413;--vpaper:#f6f4ef;--vr:16px;
	--vf-head:"Roboto Slab",Georgia,serif;
	--vf-body:"Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
	position:relative;outline:0;font-family:var(--vf-body)
}
.foev-vl__stage{position:relative;aspect-ratio:16/8;border-radius:var(--vr);overflow:hidden;
	background:var(--vink);touch-action:pan-y}
.foev-vl__stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;
	transform:scale(1.04);transition:opacity 800ms cubic-bezier(.2,.7,.3,1),transform 1.6s cubic-bezier(.16,1,.3,1)}
.foev-vl__stage img.is-active{opacity:1;transform:none}
.foev-vl__stage::after{content:"";position:absolute;inset:auto 0 0;height:40%;
	background:linear-gradient(0deg,rgba(12,16,14,.6),transparent);pointer-events:none}
.foev-vl__bar{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:flex-end;
	justify-content:space-between;gap:16px;padding:clamp(16px,2.4vw,28px)}
.foev-vl__cap{color:#fff;margin:0;min-width:0}
.foev-vl__cap b{display:block;font:700 clamp(1.05rem,1rem + .4vw,1.3rem)/1.3 var(--vf-head)}
.foev-vl__cap span{font-size:.8125rem;color:rgba(255,255,255,.75);letter-spacing:.07em;text-transform:uppercase}
.foev-vl__ctrl{display:flex;align-items:center;gap:10px;flex:none}
.foev-vl__count{min-width:4.5em;text-align:center;color:#fff;font-size:.9rem;font-variant-numeric:tabular-nums}
.foev-vl__ctrl button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;
	background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;
	cursor:pointer;transition:background-color .2s,color .2s}
.foev-vl__ctrl button:hover{background:#fff;color:var(--vink)}
.foev-vl__ctrl svg{width:18px;height:18px}
.foev-vl__thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:12px}
.foev-vl__thumbs button{position:relative;aspect-ratio:16/10;padding:0;border:0;border-radius:10px;
	overflow:hidden;cursor:pointer;background:var(--vpaper);opacity:.55;transition:opacity .2s}
.foev-vl__thumbs button:hover{opacity:.85}
.foev-vl__thumbs button.is-active{opacity:1}
.foev-vl__thumbs button::after{content:"";position:absolute;inset:0;border-radius:inherit;
	box-shadow:inset 0 0 0 0 var(--vg);transition:box-shadow .2s}
.foev-vl__thumbs button.is-active::after{box-shadow:inset 0 0 0 3px var(--vg)}
.foev-vl__thumbs img{width:100%;height:100%;object-fit:cover}

/* Nur ein Bild: Steuerung und Thumbnails ausblenden */
.foev-vl--single .foev-vl__ctrl,
.foev-vl--single .foev-vl__thumbs{display:none}

.foev-vl-empty{color:#74756f;font-style:italic}

@media (max-width:900px){
	.foev-vl__stage{aspect-ratio:4/3}
	.foev-vl__thumbs{grid-template-columns:repeat(6,96px);overflow-x:auto;scrollbar-width:none}
	.foev-vl__thumbs::-webkit-scrollbar{display:none}
}
@media (max-width:560px){
	.foev-vl__cap span{display:none}
	.foev-vl__ctrl button{width:40px;height:40px}
}
@media (prefers-reduced-motion:reduce){
	.foev-vl__stage img{transition:opacity 200ms linear}
}
