/* Bildnachweis Plugin */
.bildnachweis {
    padding: 1rem 0;
}
.bildnachweis__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 1.5rem 0;
}
.bildnachweis__group {
    margin-bottom: 1.5rem;
}
.bildnachweis__photographer {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bildnachweis__count {
    font-weight: 400;
    font-size: 0.85rem;
    color: #86868b;
}

/* ── Listen-Layout (list + compact) ──────────────────────────────── */

.bildnachweis__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bildnachweis__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: #3a3a3c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.bildnachweis__item:last-child {
    border-bottom: none;
}
.bildnachweis__thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f3;
}
.bildnachweis__desc {
    font-weight: 500;
}
.bildnachweis__desc-link {
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
}
.bildnachweis__desc-link:hover {
    color: #0066cc;
    text-decoration: underline;
}
.bildnachweis__file {
    color: #86868b;
    font-size: 0.8rem;
}
.bildnachweis__credit {
    color: #6e6e73;
    font-size: 0.8rem;
    font-style: italic;
}
.bildnachweis__credit::before {
    content: '\2014\00a0';
}
.bildnachweis-empty {
    font-style: italic;
}

/* ── Grid-Layout ─────────────────────────────────────────────────── */

.bildnachweis__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.bildnachweis__grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.bildnachweis__grid-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bildnachweis__grid-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.bildnachweis__grid-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f0f3;
    display: block;
}
.bildnachweis__grid-caption {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0;
}
.bildnachweis__grid-caption .bildnachweis__desc {
    font-size: 0.72rem;
    font-weight: 500;
    color: #3a3a3c;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bildnachweis__grid-caption .bildnachweis__file {
    font-size: 0.65rem;
    color: #86868b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bildnachweis__grid-caption .bildnachweis__credit {
    font-size: 0.65rem;
}

/* ── Compact-Layout (kein Bild) ──────────────────────────────────── */

.bildnachweis--compact .bildnachweis__item {
    padding: 0.25rem 0;
    gap: 0.4rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .bildnachweis__thumb {
        width: 24px;
        height: 24px;
    }
    .bildnachweis__item {
        font-size: 0.8rem;
    }
    .bildnachweis__grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
    }
}
