.dubei-ft {
    overflow-x: scroll;
}

#tree {
    padding: 1.8rem 2rem;
    line-height: 1.4;
    color: #000000;
    tab-size: 4;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    white-space: pre;
}

#tree a {
    color: #000000;
    text-decoration: none;
}

#tree a strong {
    font-weight: 700;
}
#tree .pedigree-divider {
    font-size: 0.8rem;
}

#tree .pperson {
    font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1rem;
}

#tree .pperson.brother-sister {
    font-size: .9rem;
    color: grey;
}

.pp-id {
    font-weight: 700;
    color: #C0392B;
}

.pp-id {
    font-weight: 700;
    color: #C0392B;
}

.pp-relation {
    font-weight: 700;
    color: #00d084;
    margin-left: -10px;
}

.has-relative-info {
    font-weight: 700;
    color: #074a8c;
}

.has-relative-info .pp-id {
    color: #074a8c;
}

.has-relative-info:hover {
    cursor: pointer;
    text-decoration: underline;
}

#family-tree-person-result .relative-info h2 {
    text-align: center;
    font-size: 2rem;
}

.page-title-bar {
    display: none;
}

#family-tree-person-result {
    width: calc(100% - 24px);
}

.single-relatives {
    .entry-header.custom-pill-green {
        text-align: center;
    }

    .numizmat-entry-content {
        /*text-align: justify;*/
        word-break: break-word;
    }

    :where(.wp-block-image figcaption) {
        color: #000000;
        font-weight: 600;
        margin-top: -10px;
    }

    .custom-pill-green.entry-header {
        border: none;
    }
}

.dubei-family-done {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 1.5rem 0;
}

.dubei-family-done-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dubei-family-done-person img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    display: block;
    margin: 0 auto 15px auto;
}

.dubei-family-done-person-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.4;
    text-align: center !important;
}

.dubei-family-done-person-years {
    font-size: 13px;
    color: #888;
    margin: 0 !important;
}

/* Tablet: 3 columns */
@media (max-width: 900px) {
    .dubei-family-done { grid-template-columns: repeat(3, 1fr); }
}

/* Small tablet: 2 columns */
@media (max-width: 600px) {
    .dubei-family-done { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column */
@media (max-width: 380px) {
    .dubei-family-done { grid-template-columns: 1fr; }
}

.dubei-family-done-person a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.dubei-family-done-person a:hover img {
    border-color: #555;
}

.dubei-family-done-person a:hover .dubei-family-done-person-name {
    text-decoration: underline;
}

.image-id {
    margin-top: -45px;
    background: #C0392B;
    color: #fff;
    position: absolute;
    padding: 0 5px;
    font-size: 14px;
}