/* Xinthie Galerie – Darstellung. Fotos in Zeilen gleicher Höhe, Logo als Überlage. */
.xg-galerie { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.5em 0; }
.xg-galerie figure { position: relative; margin: 0; flex-grow: 1; cursor: zoom-in; overflow: hidden; }
.xg-galerie img:not(.xg-logo) { display: block; width: 100%; height: var(--xg-zeile, 260px); object-fit: cover; }
/* Hat ein Foto sein echtes Seitenverhältnis (aspect-ratio), wird es nie beschnitten */
.xg-galerie figure[style*="aspect-ratio"] img:not(.xg-logo) { height: 100%; }
/* Breite je Foto kommt aus dem Seitenverhältnis (style="flex-basis") – siehe galerie.js */
/* Logo: echtes Bild, Breite = eingestellte % der Bildbreite, Höhe folgt dem Logo. Die Ecke setzt das Plugin aus den Einstellungen. */
.xg-logo { position: absolute; width: var(--xg-logo-breite, 12%); height: auto; margin: 2.5%; pointer-events: none; }
/* Großansicht */
.xg-gross { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.xg-gross figure { position: relative; margin: 0; max-width: 94vw; max-height: 92vh; }
.xg-gross img:not(.xg-logo) { display: block; max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.xg-gross button { position: absolute; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; padding: 12px 18px; }
.xg-gross .xg-zu { top: 0; right: 0; } .xg-gross .xg-zurueck { left: 0; top: 50%; } .xg-gross .xg-weiter { right: 0; top: 50%; }
@media (max-width: 600px) { .xg-galerie { --xg-zeile: 180px; } }

/* Herz */
.xg-herz-zahl { position: absolute; bottom: 8px; padding: 2px 8px; font-size: 13px; line-height: 1.5; color: #fff; background: rgba(0,0,0,.45); border-radius: 12px; pointer-events: none; }
.xg-gross .xg-unten { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: flex-end; gap: 8px; max-width: calc(100vw - 32px); }
.xg-gross .xg-herz { position: static; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 44px; text-align: center; background: rgba(0,0,0,.45); color: #fff; }
.xg-gross .xg-herz-n { flex: none; height: 44px; line-height: 44px; font-size: 22px; color: #fff; }
.xg-gross .xg-herz-n:empty { display: none; }
.xg-gross .xg-herz.an { color: #ff5a73; }
.xg-gross figure { margin-bottom: 40px; }

.xg-gross .xg-exif {  color: #fff; font-size: 13px; line-height: 1.55; text-align: left; background: rgba(0,0,0,.45); padding: 8px 12px; border-radius: 4px; max-width: 46vw; }
.xg-gross .xg-exif:empty { display: none; }
@media (max-width: 600px) { .xg-gross .xg-exif { font-size: 11px; padding: 6px 8px; } }

/* Tierseite ohne Foto */
.xg-leer-tier { text-align: center; padding: 80px 20px; border: 2px dashed rgba(110,96,88,.45); color: #6e6058; font-size: 24px; font-weight: 300; }
