@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

.char-bio-wrapper-51250269 {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

.char-bio-card-51250269 {
    background-color: #ffffff;
    border: 1px solid #c5a059;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.char-bio-card-51250269:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.12);
}

.char-bio-header-51250269 {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 1px double rgba(197, 160, 89, 0.3);
    padding-bottom: 20px;
}

.char-bio-avatar-container-51250269 {
    flex-shrink: 0;
}

.char-bio-avatar-51250269 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5a059;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.char-bio-avatar-fallback-51250269 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #0c1b33;
    border: 2px solid #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.char-bio-title-area-51250269 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.char-bio-name-51250269 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #0c1b33;
    margin: 0;
    line-height: 1.2;
}

.char-bio-meta-51250269 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    color: #c5a059;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
}

.char-bio-text-51250269 {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 25px;
}

.char-bio-text-51250269 p {
    margin-top: 0;
    margin-bottom: 15px;
}

.char-bio-text-51250269 p:last-child {
    margin-bottom: 0;
}

.char-bio-tags-51250269 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.char-bio-tag-51250269 {
    background-color: #faf6ee;
    border: 1px solid #e0cfaf;
    color: #8c6f3d;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Character Pictures Section ── */
.char-bio-pictures-section-51250269 {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px double rgba(197, 160, 89, 0.3);
}

.char-bio-pictures-divider-51250269 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.char-bio-pictures-divider-51250269::before,
.char-bio-pictures-divider-51250269::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 160, 89, 0.5), transparent);
}

.char-bio-pictures-label-51250269 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    color: #c5a059;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.char-bio-pictures-grid-51250269 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.char-bio-picture-item-51250269 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.char-bio-picture-btn-51250269 {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.char-bio-picture-thumb-51250269 {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border: 2px solid #c5a059;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.char-bio-picture-btn-51250269:hover .char-bio-picture-thumb-51250269 {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.char-bio-picture-overlay-51250269 {
    position: absolute;
    inset: 0;
    background: rgba(12, 27, 51, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 4px;
}

.char-bio-picture-btn-51250269:hover .char-bio-picture-overlay-51250269 {
    opacity: 1;
}

.char-bio-picture-caption-51250269 {
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: #8c6f3d;
    margin: 0;
    text-align: center;
    max-width: 240px;
}

/* ── Lightbox ── */
.char-bio-lightbox-51250269 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-bar .char-bio-lightbox-51250269 {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .char-bio-lightbox-51250269 {
        top: 46px;
    }
}

.char-bio-lightbox-backdrop-51250269 {
    position: absolute;
    inset: 0;
    background: rgba(12, 27, 51, 0.88);
    cursor: pointer;
}

.char-bio-lightbox-inner-51250269 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
}

.char-bio-lightbox-img-51250269 {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    border: 2px solid #c5a059;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}

.char-bio-lightbox-caption-51250269 {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: #e0cfaf;
    margin: 0;
    text-align: center;
}

.char-bio-lightbox-close-51250269 {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0c1b33;
    border: 1px solid #c5a059;
    color: #c5a059;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.char-bio-lightbox-close-51250269:hover {
    background: #c5a059;
    color: #0c1b33;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .char-bio-header-51250269 {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-bottom: 25px;
    }
    .char-bio-card-51250269 {
        padding: 25px;
    }
    .char-bio-name-51250269 {
        font-size: 24px;
    }
    .char-bio-meta-51250269 {
        font-size: 10px;
    }
    .char-bio-pictures-grid-51250269 {
        justify-content: center;
    }
}
