/* ----------- Galerie ----------- */

.gallery-albums {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.album {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.album-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    cursor: pointer;
}

.album-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.album-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.album-title {
    flex: 1;
    font-size: 22px;
    color: #000;
}

.album-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.album-toggle:hover,
.album-toggle:focus-visible {
    background: #555;
}

.album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

/* damit das hidden-Attribut trotz display:grid funktioniert */
.album-photos[hidden] {
    display: none;
}

.album-photo {
    margin: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.album-photo img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.album-photo figcaption {
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

@media (max-width: 767px) {
    .album-thumb {
        width: 80px;
        height: 80px;
    }

    .album-title {
        font-size: 18px;
    }

    .album-photos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .album-photo img {
        height: 130px;
    }
}
