/* Mitglieder & Impressionen */

.mitglieder-head {
    text-align: center;
    margin-bottom: 40px;
}
.mitglieder-title {
    color: var(--msv-blue);
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.mitglieder-accent {
    height: 4px;
    width: 60px;
    background: var(--msv-yellow);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}
.mitglieder-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Unregelmäßiges Masonry-ähnliches Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense; /* schiebt kleinere Bilder automatisch in die Lücken */
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    background: var(--msv-blue);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* Größenvariationen: jedes 3. Bild breiter, jedes 5. Bild höher */
@media (min-width: 768px) {
    .gallery-item:nth-child(3n) {
        grid-column: span 2;
    }
    .gallery-item:nth-child(5n) {
        grid-row: span 2;
    }
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}
/* Dunkler Verlauf beim Hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Leere Galerie */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #888;
    border: 2px dashed #ddd;
}
.gallery-empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.gallery-empty h3 {
    color: var(--msv-blue);
}
