/* Mycelium Vitae — NPC portrait presentation. */

.npc-iconography {
    box-sizing:border-box;
    width:min(100%,240px);
    margin:1rem 0;
    text-align:left;
}

.npc-iconography a {
    display:block;
    overflow:hidden;
    border:1px solid #887454;
    border-radius:4px;
    background:#10131a;
}

.npc-iconography img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4 / 5;
    object-fit:contain;
}

.npc-iconography a:hover {
    border-color:#d6b888;
}

.npc-iconography a:focus-visible {
    outline:2px solid #d6b888;
    outline-offset:3px;
}

.npc-iconography figcaption {
    margin-top:.5rem;
    color:#d6b888;
    font-size:.82rem;
    line-height:1.4;
}

.chapter-npc-iconography {
    margin:1.25rem 0;
    padding:1rem 0;
    border-top:1px solid #88745466;
    border-bottom:1px solid #88745466;
}

.chapter-npc-grid {
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(min(100%,180px),240px));
    gap:1rem;
}

.chapter-npc-grid .npc-iconography {
    margin:0;
}
