/* Vereinshomepage v0.4 TEST 2.2: einheitliche Albenkacheln und Lightbox */
.hp-album-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hp-album-tile{margin:0;min-width:0}.hp-album-tile button{display:block;width:100%;padding:0;border:0;border-radius:14px;overflow:hidden;background:#eee;cursor:zoom-in;box-shadow:0 5px 22px #00000012}
.hp-album-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .2s ease}
.hp-album-tile button:hover img{transform:scale(1.035)}.hp-album-tile figcaption{margin-top:7px;font-size:.92rem;color:var(--hp-muted,#666);overflow-wrap:anywhere}
.hp-album-list-cover{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:12px}
.hp-lightbox[hidden]{display:none!important}.hp-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(15,12,20,.91);display:flex;align-items:center;justify-content:center;padding:55px 70px 60px}
.hp-lightbox-main{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;max-height:100%;gap:10px}
.hp-lightbox-image{display:block;max-width:100%;max-height:calc(100dvh - 155px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 10px 45px #0008}
.hp-lightbox-caption{color:#fff;text-align:center;max-width:90vw;line-height:1.4}.hp-lightbox-count{font-size:.82rem;opacity:.75}
.hp-lightbox-control{position:absolute;border:0;border-radius:50%;width:44px;height:44px;background:#ffffff25;color:white;font-size:27px;line-height:1;cursor:pointer;display:grid;place-items:center}
.hp-lightbox-control:hover,.hp-lightbox-control:focus-visible{background:#ffffff50;outline:2px solid white;outline-offset:2px}
.hp-lightbox-close{right:18px;top:18px}.hp-lightbox-prev{left:15px;top:50%;transform:translateY(-50%)}.hp-lightbox-next{right:15px;top:50%;transform:translateY(-50%)}
body.hp-lightbox-open{overflow:hidden}
@media(max-width:800px){.hp-album-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hp-lightbox{padding:65px 45px 65px}.hp-lightbox-control{width:36px;height:36px}.hp-lightbox-prev{left:5px}.hp-lightbox-next{right:5px}}
@media(max-width:450px){.hp-album-tiles{grid-template-columns:1fr 1fr;gap:9px}.hp-album-tile figcaption{font-size:.8rem}.hp-lightbox{padding:60px 35px 60px}}
@media(prefers-reduced-motion:reduce){.hp-album-tile img{transition:none}}

/* TEST 2.3: bestehende globale figure/img-Regeln überschreiben */
.hp-article .hp-album-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hp-article .hp-album-tile{margin:0;min-width:0}
.hp-article .hp-album-tile button{width:100%;display:block;line-height:0;overflow:hidden;padding:0;border:0;background:transparent;cursor:zoom-in}
.hp-article .hp-album-tile button img,.hp-article .hp-content-block .hp-album-tile img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;max-width:none;border-radius:12px}
.hp-article .hp-album-tile figcaption{line-height:1.4;margin-top:6px}
@media(max-width:750px){.hp-article .hp-album-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
