/**
 * Dateiname: ausstellung-gallery.css
 * Beschreibung: Modernes Galerie-Layout für Bildzeile in ausstellung.php
 * 
 * @version 2.3.3
 * @author Wilhelm Goertz
 * @date 2025-01-28
 * 
 * Überschreibt das Dia-Rähmchen-Design der picture-gallery mit dem
 * modernen Galerie-Layout (abgerundete Ecken, Schatten, eingerückter Text)
 * 
 * Feature-Bild (split-image) bleibt unverändert!
 * 
 * Änderungshistorie:
 * v2.3.3 - 2025-01-28 - "Read More" Button für Einleitungstext (nur Mobile, 3 Zeilen)
 * v2.0.0 - 2025-01-19 - MAJOR: Providerwechsel, einheitliche Versionierung
 * v1.0.0 - 2025-01-12 - Initiale Version
 */

/* ============================================================================
   EINLEITUNGSTEXT: "Read More" nur auf Mobile
   ============================================================================ */

/* Desktop: Normales Verhalten */
.einleitungstext-wrapper {
    position: relative;
}

.einleitungstext-content {
    transition: max-height 0.3s ease;
}

.read-more-btn {
    display: none; /* Standard: versteckt */
    margin-top: var(--space-sm);
    padding: 8px 16px;
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.read-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Mobile: 3 Zeilen + Read More Button */
@media (max-width: 768px) {
    .einleitungstext-wrapper {
        position: relative;
    }
    
    .einleitungstext-content {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.6;
        max-height: calc(1.6em * 3); /* 3 Zeilen */
        transition: max-height 0.3s ease, -webkit-line-clamp 0.3s ease;
    }
    
    .einleitungstext-content.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
    
    .read-more-btn {
        display: inline-block; /* Nur auf Mobile sichtbar */
    }
    
    .read-more-btn.hidden {
        display: none;
    }
}

/* ============================================================================
   PICTURE-GALLERY: Modernes Layout (wie Galerie)
   ============================================================================ */

.picture-item {
    background-color: var(--bg-medium);
    display: flex;
    flex-direction: column;
    max-width: 350px;
    margin: 0 auto;
    
    /* Moderne Karte statt Dia-Rähmchen */
    border: 1px solid rgba(255, 255, 255, 0.1);  /* Dünne Umrandung */
    border-radius: 8px;  /* Abgerundete Ecken */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);  /* Verstärkter Schatten */
    padding: 10px 6px 12px 6px;  /* Oben 10px, Seiten 6px, Unten 12px */
    overflow: hidden;  /* Für abgerundete Ecken */
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-item:hover {
    transform: translateY(-8px);  /* Schwebt höher */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);  /* Noch stärkerer Schatten */
}

.picture-image {
    width: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    /* KEIN aspect-ratio mehr - Bild bestimmt Höhe */
}

.picture-image img {
    width: 100%;
    height: auto;  /* Statt max-height: 100% */
    object-fit: contain;
    display: block;
    cursor: pointer;
    /* KEINE Rundung und Schatten mehr auf dem Bild selbst */
    transition: transform 0.3s ease;
}

.picture-image img:hover {
    transform: scale(1.02);  /* Leichter Zoom */
}

.picture-info {
    padding-left: 12px;  /* Text einrücken (Standard für Landscape) */
    padding-top: var(--space-sm);
    width: 100%;
    text-align: left;  /* Linksbündig statt center */
}

.picture-info h4 {
    font-size: 1.125rem;
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-light);
}

.picture-info p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}
