/* =========================================================
   TSEA Person (override of SP Page Builder Person addon)
   ========================================================= */

.tsea-person {
    text-align: center;
    cursor: pointer;
    transition: transform .4s ease;
    font-family: 'Montserrat', sans-serif;
}

.tsea-person:hover {
    transform: translateY(-4px);
}

/* --- Photo --- */
.tsea-person__photo-wrap {
    position: relative;
    overflow: hidden;
    background: #f3ede2;
    aspect-ratio: 3 / 4;
    margin-bottom: 24px;
}

.tsea-person__photo-wrap::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}

.tsea-person:hover .tsea-person__photo-wrap::after {
    opacity: 1;
}

.tsea-person__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease, filter .8s ease;
    filter: grayscale(15%);
    display: block;
}

.tsea-person:hover .tsea-person__photo {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.tsea-person__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 28, 28, 0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
}

.tsea-person:hover .tsea-person__overlay {
    opacity: 1;
}

.tsea-person__view-bio {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-bottom: 1px solid #c9a36a;
    padding-bottom: 4px;
}

/* --- Text --- */
.tsea-person__name-link {
    text-decoration: none;
    color: inherit;
}

.tsea-person__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: #1c1c1c;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.tsea-person__role {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b08a4f;
    font-weight: 500;
    margin-bottom: 14px;
}

.tsea-person__bio {
    display: none; /* hidden in card; surfaced inside modal/popup if you wire one up */
}

/* --- Actions ---
   Hidden in the card view; surfaced inside the bio modal only. */
.tsea-person__actions {
    display: none;
}

/* --- Socials --- */
.tsea-person__socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.tsea-person__socials a {
    color: #4a4a4a;
    font-size: 14px;
    transition: color .2s;
    text-decoration: none;
}

.tsea-person__socials a:hover {
    color: #b08a4f;
}

@media (max-width: 600px) {
    .tsea-person__name {
        font-size: 20px;
    }
}

/* =========================================================
   TSEA Person — Bio Modal
   ========================================================= */

.tsea-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.tsea-modal-overlay[hidden] {
    display: none;
}

.tsea-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.tsea-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #1c1c1c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s, color .2s;
}

.tsea-modal__close:hover {
    background: #1c1c1c;
    color: #fff;
}

.tsea-modal__photo {
    background: #f3ede2;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.tsea-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tsea-modal__body {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tsea-modal__role {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b08a4f;
    font-weight: 500;
    margin-bottom: 8px;
}

.tsea-modal__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    color: #1c1c1c;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.tsea-modal__ornament {
    width: 40px;
    height: 1px;
    background: #c9a36a;
    margin-bottom: 24px;
}

.tsea-modal__bio {
    display: block; /* override the .tsea-person__bio { display:none } when cloned in */
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.tsea-modal__bio p {
    margin: 0 0 14px 0;
}

.tsea-modal__bio p:last-child {
    margin-bottom: 0;
}

.tsea-modal__actions {
    display: flex;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tsea-modal__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    border: 1px solid rgba(176, 138, 79, 0.4);
    padding: 10px 22px;
    text-decoration: none;
    background: transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tsea-modal__actions a:hover {
    color: #fff;
    background: #b08a4f;
    border-color: #b08a4f;
}

.tsea-modal__socials {
    display: flex;
    gap: 14px;
}

.tsea-modal__socials a {
    color: #4a4a4a;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

.tsea-modal__socials a:hover {
    color: #b08a4f;
}

@media (max-width: 720px) {
    .tsea-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .tsea-modal__photo {
        aspect-ratio: 4 / 3;
    }

    .tsea-modal__body {
        padding: 32px 24px;
    }

    .tsea-modal__name {
        font-size: 28px;
    }
}
