.kp-modal [hidden] {
    display: none !important;
}
.kp-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--kp-modal-overlay, rgba(0, 0, 0, .8));
}
.kp-modal.is-open {
    display: flex;
    animation: kpFadeIn .5s ease;
}
.kp-modal__dialog {
    position: relative;
    width: 1000px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: var(--kp-modal-frame, rgba(22, 87, 136, .1));
    border-radius: var(--kp-modal-radius, 38px);
    box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.kp-modal__close {
    position: absolute;
    top: 26px;
    right: 3%;
    z-index: 3;
    display: flex;
    padding: 4px;
    border: 0;
    background: none !important;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--kp-modal-close, var(--kp-primary)) !important;
}
.kp-modal__close:hover {
    opacity: .7;
}

.kp-sp {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--kp-modal-bg, var(--kp-card));
    border-radius: var(--kp-modal-radius, 38px);
}
.kp-sp__photo {
    flex: 0 0 32%;
}
.kp-sp__photo img {
    display: block;
    width: 100%;
    height: 362px;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px;
}
.kp-ph {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background-color: var(--kp-ph-bg, #E6EDF4);
    color: var(--kp-ph-color, #B4C4D5);
}
.kp-ph svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.kp-sp__photo .kp-ph {
    width: 100%;
    height: 362px;
    border-radius: 16px;
}
.kp-sp__photo .kp-ph svg {
    width: 75%;
    height: 75%;
}
.kp-sp__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 40px 0 0;
}
.kp-sp__name,
.kp-sp__role {
    margin: 0;
    font-family: var(--kp-font-heading);
    font-weight: var(--e-global-typography-primary-font-weight, 800);
    line-height: 1;
}
.kp-sp__name {
    font-size: 28px;
    color: var(--kp-modal-name, var(--kp-primary));
}
.kp-sp__role {
    margin-top: 4px;
    font-size: 20px;
    color: var(--kp-modal-role, var(--kp-primary));
}
.kp-sp__workplace {
    margin-top: 8px;
    font-family: var(--kp-font-body);
    font-size: 15px;
    line-height: 1.4;
    color: var(--kp-muted);
}
.kp-sp__bio {
    margin-top: 20px;
    font-family: var(--kp-font-body);
    font-size: var(--e-global-typography-text-font-size, 18px);
    line-height: var(--e-global-typography-text-line-height, 1.5em);
    color: var(--kp-modal-text, var(--kp-text));
}
.kp-sp__bio p {
    margin: 0 0 .9em;
}
.kp-sp__bio p:last-child {
    margin-bottom: 0;
}

html.kp-modal-lock,
html.kp-modal-lock body {
    overflow: hidden;
}

@keyframes kpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 767px) {
    .kp-modal {
        padding: 0;
    }
    .kp-modal__dialog {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        background-color: var(--kp-modal-bg, var(--kp-card));
    }
    .kp-modal__close {
        top: 2%;
        right: 8%;
        font-size: 20px;
    }
    .kp-sp {
        flex-direction: column;
        gap: 10px;
        padding: 10px 8px 20px;
        min-height: 100%;
        border-radius: 0;
    }
    .kp-sp__photo img,
    .kp-sp__photo .kp-ph {
        height: 267px;
    }
    .kp-sp__body {
        padding: 0 8px;
    }
}
