/* Variablen kommen – falls vorhanden – vom Theme */
.mwhg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:1.5rem 0}
.mwhg-grid a{display:block;border-radius:10px;overflow:hidden;background:#222;aspect-ratio:4/3;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.mwhg-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s,opacity .2s}
.mwhg-grid a:hover img{transform:scale(1.06);opacity:.9}

.mwhg-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.4rem;margin:1.5rem 0}
.mwhg-card{display:block;background:#fff;color:#222;border-radius:14px;overflow:hidden;text-decoration:none;box-shadow:0 8px 28px rgba(0,0,0,.18);transition:transform .25s}
.mwhg-card:hover{transform:translateY(-6px);color:#222}
.mwhg-card-img{display:block;aspect-ratio:4/3;background:#ddd}
.mwhg-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.mwhg-card-body{display:block;padding:1rem 1.2rem}
.mwhg-card-body strong{display:block;font-size:1.1rem;line-height:1.3}
.mwhg-card-body small{color:#777}
.mwhg-more{text-align:center;margin-top:1.5rem}

.mwhg-year{margin:2.2rem 0 0;font-size:1.6rem;border-bottom:2px solid var(--mwh-accent,#e07a1f);padding-bottom:.3rem;display:inline-block}

/* eigene Galerie-Seiten */
.mwhg-hero{background:linear-gradient(135deg,var(--mwh-primary,#24452f),var(--mwh-dark,#161311));color:#fff;padding:4rem 0}
.mwhg-hero h1{color:#fff;margin:0}
.mwhg-hero p{margin:.5rem 0 0;opacity:.9}
.mwhg-wrap{width:min(100% - 2.5rem,1180px);margin-inline:auto}
.mwhg-page{padding:2.5rem 0 4rem}
.mwhg-desc{max-width:760px;font-size:1.1rem}
.mwhg-back{margin-top:2rem}

/* Lightbox */
.mwhg-lock{overflow:hidden}
.mwhg-lb{position:fixed;inset:0;z-index:99999;background:rgba(10,8,7,.94);display:none;align-items:center;justify-content:center}
.mwhg-lb.is-open{display:flex}
.mwhg-lb figure{margin:0;max-width:92vw;max-height:90vh;text-align:center}
.mwhg-lb img{max-width:92vw;max-height:82vh;object-fit:contain;border-radius:6px;box-shadow:0 10px 50px rgba(0,0,0,.6)}
.mwhg-lb figcaption{color:#ddd;margin-top:.7rem;font-size:.95rem}
.mwhg-lb button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;width:52px;height:52px;border-radius:50%;font-size:2rem;line-height:1;cursor:pointer;transition:background .2s}
.mwhg-lb button:hover,.mwhg-lb button:focus-visible{background:var(--mwh-accent,#e07a1f)}
.mwhg-x{top:16px;right:16px}.mwhg-p{left:16px;top:50%;transform:translateY(-50%)}.mwhg-n{right:16px;top:50%;transform:translateY(-50%)}
.mwhg-c{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#aaa;font-size:.9rem}
@media (max-width:600px){.mwhg-lb button{width:44px;height:44px}.mwhg-p{left:6px}.mwhg-n{right:6px}}
