﻿/* =========================================
   CHARACTER DETAIL
========================================= */


/* =========================================
   WORLD BACKGROUND
========================================= */

.character-world {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 118px var(--page-padding) clamp(80px, 9vw, 120px);
    background: radial-gradient( circle at 50% 8%, rgba(244,212,124,.10), transparent 34% ), linear-gradient( 180deg, #101827 0%, #182438 50%, #101827 100% );
}


.character-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin-inline: auto;
}


/* =========================================
   PARTICLES
========================================= */

.character-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}


    .character-particles span {
        position: absolute;
        bottom: -35px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #f4d47c;
        opacity: .48;
        box-shadow: 0 0 9px rgba(244,212,124,.85), 0 0 22px rgba(244,212,124,.42);
        animation: characterParticleFloat linear infinite;
    }



@keyframes characterParticleFloat {

    0% {
        bottom: -35px;
        transform: translateX(0) scale(.55);
        opacity: 0;
    }

    8% {
        opacity: .55;
    }

    50% {
        transform: translateX(16px) scale(.85);
        opacity: .45;
    }

    88% {
        opacity: .35;
    }

    100% {
        bottom: calc(100% + 35px);
        transform: translateX(-12px) scale(1.1);
        opacity: 0;
    }
}


/* =========================================
   BACK BUTTON
========================================= */

.character-back-navigation {
    margin-bottom: 20px;
}


.character-back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 19px;
    border: 1px solid rgba(244,212,124,.42);
    border-radius: 30px;
    background: rgba(255,255,255,.045);
    color: var(--gold-light);
    font-family: var(--title-font);
    font-size: 13px;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}


    .character-back-button:hover {
        transform: translateX(-4px);
        border-color: var(--gold-light);
        background: rgba(244,212,124,.10);
        box-shadow: 0 0 16px rgba(244,212,124,.10);
    }



/* =========================================
   INTRO PARCHMENT SECTION
========================================= */

.character-intro-section {
    position: relative;
    padding: clamp(26px, 4vw, 46px);
    background: linear-gradient( rgba(248,237,202,.72), rgba(232,211,164,.80) ), url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(198,156,74,.60);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,.28);
}


/* =========================================
   CHARACTER INTRO HEADER
========================================= */

.character-name-header {
    position: relative;
    margin-bottom: 30px;
    padding: 8px 4px 20px;
    overflow: visible;
    border-bottom: 2px solid rgba(198,156,74,.48);
    transition: border-color .3s ease, text-shadow .3s ease;
}


    .character-name-header::before {
        content: "✦";
        position: absolute;
        right: -2px;
        bottom: -10px;
        z-index: 3;
        font-size: 17px;
        line-height: 1;
        color: #fff0ad;
        opacity: 0;
        transform: scale(.3) rotate(-35deg);
        text-shadow: 0 0 5px #f4d47c, 0 0 12px rgba(244,212,124,.85), 0 0 22px rgba(244,212,124,.45);
        transition: opacity .25s ease .22s, transform .4s ease .22s;
    }


    .character-name-header:hover::before {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }


    .character-name-header::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 3px;
        background: linear-gradient( 90deg, #9c6a25 0%, #d9ad4d 45%, #fff0ad 82%, #f4d47c 100% );
        box-shadow: 0 0 7px rgba(244,212,124,.40);
        transition: width .55s ease;
    }


    .character-name-header:hover::after {
        width: 100%;
        box-shadow: 0 0 8px rgba(244,212,124,.65), 0 0 20px rgba(244,212,124,.30);
    }


.character-intro-section .character-name-header h1 {
    margin: 0 0 10px;
    font-family: var(--title-font);
    font-size: clamp(64px, 8vw, 96px);
    line-height: .95;
    color: #56351a;
    transition: color .3s ease, transform .3s ease, text-shadow .3s ease;
}


.character-intro-section .character-name-header:hover h1 {
    color: #6c431b;
    transform: translateX(3px);
    text-shadow: 0 2px 10px rgba(198,156,74,.20), 0 0 18px rgba(244,212,124,.10);
}

.character-tagline {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: .4px;
    color: #936421;
}





/* =========================================
   INTRO BODY
========================================= */

.character-intro-body {
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 55px);
    align-items: stretch;
}


.character-intro-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================
   QUOTE CARD
========================================= */

.character-quote-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    background: rgba(255,250,229,.74);
    border: 1px solid rgba(111,76,36,.25);
    border-radius: 10px;
    box-shadow: 0 9px 22px rgba(70,45,20,.12);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}


    .character-quote-card:hover {
        transform: translateY(-3px);
        border-color: #e5c46e;
        box-shadow: 0 14px 28px rgba(70,45,20,.18);
    }


    .character-quote-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        pointer-events: none;
        background: linear-gradient( 120deg, transparent, rgba(244,212,124,.18), rgba(255,255,255,.22), transparent );
        transform: skewX(-22deg);
        transition: left .7s ease;
    }


    .character-quote-card:hover::after {
        left: 135%;
    }


.character-quote {
    position: relative;
    margin: 0;
    padding-left: 20px;
    border-left: 4px solid #b8862c;
    font-family: Georgia, serif;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.6;
    font-style: italic;
    color: #55402e;
    transition: border-color .28s ease, text-shadow .28s ease;
}


.character-quote-card:hover .character-quote {
    border-left-color: var(--gold-light);
    text-shadow: 0 1px 8px rgba(198,156,74,.12);
}


/* =========================================
   META CARDS
========================================= */

.character-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


.character-meta-item {
    position: relative;
    overflow: hidden;
    padding: 17px 15px;
    text-align: center;
    background: linear-gradient( 145deg, #101827, #182438 );
    border: 1px solid rgba(244,212,124,.62);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 8px 18px rgba(0,0,0,.22);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}


    .character-meta-item:hover {
        transform: translateY(-4px);
        border-color: var(--gold-light);
        box-shadow: 0 12px 25px rgba(0,0,0,.28), 0 0 14px rgba(244,212,124,.16);
    }


    .character-meta-item strong {
        display: block;
        margin-bottom: 6px;
        font-family: var(--title-font);
        font-size: 13px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #e5c46e;
    }


    .character-meta-item span {
        display: block;
        font-family: var(--title-font);
        font-size: 21px;
        line-height: 1.2;
        color: #fff0ad;
        text-shadow: 0 0 8px rgba(244,212,124,.18);
    }


    /* Keep shimmer on metadata */

    .character-meta-item::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        pointer-events: none;
        background: linear-gradient( 120deg, transparent, rgba(244,212,124,.20), rgba(255,255,255,.20), transparent );
        transform: skewX(-22deg);
        transition: left .65s ease;
    }


    .character-meta-item:hover::after {
        left: 135%;
    }


/* =========================================
   MOBILE
========================================= */

@media(max-width: 700px) {

    .character-name-header {
        text-align: center;
        margin-bottom: 24px;
    }


    .character-intro-body {
        grid-template-columns: 1fr;
    }


    .portrait-card {
        width: min(290px, 82vw);
        margin-inline: auto;
    }


    .character-meta {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   PORTRAIT CARD
========================================= */

.portrait-card {
    position: relative;
    overflow: hidden;
    padding: 7px;
    background: linear-gradient( 145deg, #d9ad4d, #8a591d );
    border: 2px solid rgba(244,212,124,.72);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(55,34,14,.26);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}


.portrait-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #101827;
}


.portrait {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 7px;
    transition: transform .45s ease, filter .45s ease;
}


/* Portrait hover */

.portrait-card:hover {
    transform: translateY(-5px);
    border-color: #f4d47c;
    box-shadow: 0 18px 36px rgba(55,34,14,.34), 0 0 20px rgba(244,212,124,.22);
}


    .portrait-card:hover .portrait {
        transform: scale(1.025);
        filter: brightness(1.035);
    }


/* Gold shimmer */

.portrait-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -20%;
    left: -85%;
    width: 45%;
    height: 140%;
    pointer-events: none;
    background: linear-gradient( 115deg, transparent 0%, rgba(244,212,124,.10) 30%, rgba(255,239,179,.42) 50%, rgba(244,212,124,.12) 70%, transparent 100% );
    transform: skewX(-18deg);
    transition: left .75s ease;
}


.portrait-card:hover::after {
    left: 135%;
}


/* =========================================
   CONTENT SECTION
========================================= */

.character-content-section {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: clamp(28px, 4vw, 42px);
    background: rgba(255,250,229,.94);
    border: 1px solid rgba(198,156,74,.42);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.17);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}


    .character-content-section:hover {
        transform: translateY(-3px);
        border-color: rgba(244,212,124,.82);
        box-shadow: 0 16px 36px rgba(0,0,0,.22), 0 0 16px rgba(244,212,124,.10);
    }


    .character-content-section h2 {
        position: relative;
        margin: 0 0 18px;
        padding-bottom: 10px;
        font-family: var(--title-font);
        font-size: clamp(26px, 3vw, 34px);
        color: #65401c;
        border-bottom: 1px solid rgba(139,93,31,.22);
    }


        .character-content-section h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 0;
            height: 2px;
            background: linear-gradient( 90deg, #b8862c, var(--gold-light), transparent );
            box-shadow: 0 0 8px rgba(244,212,124,.25);
            transition: width .45s ease;
        }


    .character-content-section:hover h2::after {
        width: 100%;
    }


    .character-content-section p {
        margin: 0;
        font-size: clamp(18px, 1.7vw, 20px);
        line-height: 1.8;
        color: #493a2d;
    }

/* =========================================
   QUICK FACTS
========================================= */

.facts {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(17px, 1.6vw, 19px);
}


    .facts th,
    .facts td {
        padding: 13px 10px;
        border-bottom: 1px solid rgba(111,76,36,.17);
        text-align: left;
    }


    .facts tr:last-child th,
    .facts tr:last-child td {
        border-bottom: none;
    }


    .facts th {
        width: 30%;
        font-family: var(--title-font);
        color: #755027;
    }


    .facts td {
        color: #493a2d;
    }


/* =========================================
   WORLD CONNECTIONS
========================================= */

.character-connections-section {
    position: relative;
    margin-top: 46px;
}


/* =========================================
   SECTION TITLE
========================================= */

.character-connections-title {
    position: relative;
    display: inline-block;
    margin: 0 0 25px;
    padding-bottom: 10px;
    font-family: var(--title-font);
    font-size: clamp(31px, 3.5vw, 42px);
    color: var(--gold-light);
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
}


    .character-connections-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 68%;
        height: 2px;
        background: linear-gradient( 90deg, #b8862c, #f4d47c, transparent );
        box-shadow: 0 0 9px rgba(244,212,124,.28);
        transition: width .4s ease;
    }


.character-connections-section:hover
.character-connections-title::after {
    width: 100%;
}


/* =========================================
   CONNECTION GRID
========================================= */

.character-connections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================
   CONNECTION CARD
========================================= */

.character-connection-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 0 0 22px;
    background: linear-gradient( rgba(255,250,229,.93), rgba(235,216,174,.94) ), url("../images/parchment.png");
    background-size: cover;
    border: 1px solid rgba(198,156,74,.58);
    border-radius: 11px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}


    .character-connection-card:hover {
        transform: translateY(-5px);
        border-color: #f4d47c;
        box-shadow: 0 17px 34px rgba(0,0,0,.25), 0 0 17px rgba(244,212,124,.12);
    }


    /* =========================================
   CARD TITLE
========================================= */

    .character-connection-card h2 {
        position: relative;
        margin: 0 0 20px;
        padding: 15px 20px;
        overflow: hidden;
        background: linear-gradient( 135deg, #101827, #182438 );
        border-bottom: 1px solid rgba(244,212,124,.55);
        font-family: var(--title-font);
        font-size: 21px;
        letter-spacing: .3px;
        color: #f4d47c;
        text-shadow: 0 0 8px rgba(244,212,124,.15);
    }


        /* Gold movement across title */

        .character-connection-card h2::after {
            content: "";
            position: absolute;
            left: -80%;
            bottom: 0;
            width: 45%;
            height: 2px;
            background: linear-gradient( 90deg, transparent, #fff0ad, transparent );
            box-shadow: 0 0 8px rgba(244,212,124,.55);
            transition: left .55s ease;
        }


    .character-connection-card:hover h2::after {
        left: 110%;
    }


/* =========================================
   WORLD CONNECTION ITEMS
========================================= */

.character-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 18px;
}

.character-record-link,
.world-connection-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    overflow: hidden;
    padding: 6px 18px 6px 6px;
    background: rgba(255,250,229,.76);
    border: 1px solid rgba(139,93,31,.40);
    border-radius: 34px;
    color: #5f3c1f;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(70,45,20,.10);
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.character-record-link:hover,
.world-connection-link:hover {
    transform: translateX(4px);
    background: rgba(255,250,229,.96);
    border-color: var(--gold-light);
    box-shadow: 0 7px 16px rgba(70,45,20,.16), 0 0 12px rgba(244,212,124,.12);
}

.world-connection-thumb-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #c69c4a;
    background: radial-gradient(circle at 35% 30%, #283a55, #101827 72%);
    box-shadow: 0 3px 8px rgba(70,45,20,.18);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.world-connection-thumb {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.world-connection-thumb-fallback {
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 1;
    color: #f4d47c;
    text-shadow: 0 0 9px rgba(244,212,124,.45);
}

.world-connection-link:hover .world-connection-thumb-wrap {
    transform: scale(1.07);
    border-color: #f4d47c;
    box-shadow: 0 4px 10px rgba(70,45,20,.22), 0 0 11px rgba(244,212,124,.24);
}

.world-connection-name {
    position: relative;
    z-index: 2;
    margin-left: 13px;
    font-family: var(--title-font);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.25;
    color: #5d381a;
    transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}

.world-connection-link:hover .world-connection-name {
    color: #7a4a1e;
    transform: translateX(2px);
    text-shadow: 0 0 7px rgba(198,156,74,.15);
}

.world-connection-link::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(244,212,124,.15), rgba(255,255,255,.20), transparent);
    transform: skewX(-22deg);
    transition: left .65s ease;
}

.world-connection-link:hover::after {
    left: 135%;
}

/* =========================================
   EMPTY CONNECTION
========================================= */

.character-connection-card .empty-record {
    margin: 0 20px;
    color: #725f4a;
    font-style: italic;
    opacity: .72;
}


/* =========================================
   TABLET
========================================= */

@media(max-width: 900px) {

    .character-connections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
========================================= */

@media(max-width: 700px) {

    .character-connections-section {
        margin-top: 38px;
    }


    .character-connections-grid {
        grid-template-columns: 1fr;
    }


    .character-connections-title {
        font-size: 31px;
    }


    .character-record-link {
        flex: 1 1 auto;
        justify-content: flex-start;
        text-align: left;
    }
}


/* =========================================
   FUTURE SECTIONS
========================================= */

.character-future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}


.character-future-card {
    padding: 26px 24px;
    text-align: center;
    background: rgba(255,250,229,.88);
    border: 1px dashed rgba(198,156,74,.62);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}


    .character-future-card:hover {
        transform: translateY(-4px);
        border-color: var(--gold-light);
        background: rgba(255,250,229,.96);
    }


    .character-future-card h2 {
        margin: 0 0 9px;
        font-family: var(--title-font);
        font-size: 22px;
        color: #65401c;
    }


    .character-future-card p {
        margin: 0;
        font-size: 15px;
        line-height: 1.55;
        font-style: italic;
        color: #695642;
    }


/* =========================================
   ERROR / LOADING
========================================= */

.character-loading,
.character-error {
    padding: 60px 30px;
    text-align: center;
    color: rgba(255,255,255,.85);
}


    .character-error h1 {
        color: var(--gold-light);
    }


/* =========================================
   TABLET
========================================= */

@media(max-width: 900px) {

    .character-world {
        padding: 105px 20px 80px;
    }


    .character-connections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .character-future-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   PHONE
========================================= */

@media(max-width: 700px) {

    .character-world {
        padding: 95px 12px 60px;
    }


    .character-back-navigation {
        margin-left: 3px;
    }


    .character-intro-section {
        padding: 16px;
    }


        .character-intro-section .character-name-header h1 {
            font-size: clamp(50px, 16vw, 68px);
        }


    .portrait-card {
        width: min(290px, 82vw);
        margin-inline: auto;
    }


    .character-quote {
        text-align: left;
        font-size: 18px;
    }


    .character-meta {
        justify-content: center;
    }


    .character-meta-item {
        text-align: center;
    }


    .character-content-section {
        padding: 25px 18px;
    }


        .character-content-section p {
            font-size: 17px;
        }


    .facts {
        font-size: 14px;
    }


        .facts th,
        .facts td {
            padding: 10px 7px;
        }


        .facts th {
            width: 38%;
        }


    .character-connections-grid {
        grid-template-columns: 1fr;
    }


    .character-future-grid {
        grid-template-columns: 1fr;
    }


    .character-record-link {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media(prefers-reduced-motion: reduce) {

    .character-particles span {
        animation: none;
    }


    .character-back-button,
    .character-name-header h1,
    .portrait-card,
    .portrait-frame,
    .character-quote-card,
    .character-meta-item,
    .character-content-section,
    .character-connection-card,
    .character-record-link,
    .character-future-card {
        transition: none;
    }
}


/* =========================================
   PORTRAIT LIGHTBOX
========================================= */

.portrait-lightbox-trigger {
    appearance: none;
    width: 100%;
    font: inherit;
    cursor: zoom-in;
    /* Preserve portrait-card gold frame */
    padding: 7px;
    background: linear-gradient( 145deg, #d9ad4d, #8a591d );
    border: 2px solid rgba(244,212,124,.72);
    border-radius: 13px;
    color: inherit;
}


.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}


    .image-lightbox.is-open {
        display: flex;
    }


.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,10,18,.92);
    backdrop-filter: blur(5px);
}


.image-lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: min(900px, 92vw);
    max-height: 90vh;
    padding: 12px;
    background: linear-gradient( 145deg, #d9ad4d, #80531c );
    border: 2px solid #f4d47c;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 28px rgba(244,212,124,.18);
}


.image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    background: #101827;
}


.image-lightbox-caption {
    margin: 10px 8px 2px;
    text-align: center;
    font-family: var(--title-font);
    font-size: 18px;
    color: #fff0ad;
}


.image-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid #f4d47c;
    border-radius: 50%;
    background: #101827;
    color: #fff0ad;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .image-lightbox-close:hover {
        transform: scale(1.08);
        box-shadow: 0 0 16px rgba(244,212,124,.30);
    }


body.lightbox-open {
    overflow: hidden;
}

.portrait-card::before {
    content: "⌕";
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244,212,124,.65);
    border-radius: 50%;
    background: rgba(16,24,39,.78);
    color: #fff0ad;
    font-size: 18px;
    opacity: .82;
    pointer-events: none;
}