.duszpasterze-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.duszpasterz-item {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.duszpasterz-item img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.duszpasterz-item h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.duszpasterz-item p {
    margin: 5px 0;
}

.duszpasterze-list {
    display: flex;
    flex-wrap: wrap;
    margin-top:15px;
}

.duszpasterz {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px;
    width: calc(33.333% - 40px);
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.duszpasterz h2 {
    margin-top: 0;
}

.duszpasterz img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.duszpasterz p {
    margin: 5px 0;
}

/* Compact table styles */
.dusz-compact {
    table-layout: fixed;
    width: 100%;
}
.dusz-compact th,
.dusz-compact td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dusz-compact .col-photo { width: 44px; }
.dusz-compact .col-name { width: 30%; }
.dusz-compact .col-role { width: 25%; }
.dusz-compact .col-funkcja { width: 25%; }
.dusz-compact .col-email { width: 20%; }

.dusz-compact .dusz-thumb { width: 36px; height: auto; border-radius: 4px; }

/* Pokazuj pelny tekst funkcji w dekanacie (bez przecinania) */
.dusz-compact tbody td:nth-child(4) {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

/* Front cards grid */
.dusz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.dusz-front-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 16px;
}
.dusz-front-card .dusz-photo {
    display: block;
    width: 120px;
    height: auto;
    border-radius: 6px;
    margin: 0 auto 12px;
}
.dusz-front-card .dusz-name {
    text-align: center;
    margin: 0 0 10px;
}
.dusz-meta {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dusz-meta li { margin: 6px 0; white-space: normal; }

/* Notka o maskowaniu e-maili */
.dusz-email-note {
    text-align: center;
    font-size: 13px;
    color: #8a4600;
    background: #fff4e5;
    border: 1px solid #ffd399;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0 16px;
}
.dusz-meta strong { display: inline-block; min-width: 140px; }