.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-photo-button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.contact-copy {
    font-variant-numeric: oldstyle-nums proportional-nums;
    font-feature-settings: 'onum' 1, 'pnum' 1;
}

.contact-oldstyle {
    font-family: Georgia, 'Times New Roman', serif;
    font-variant-numeric: oldstyle-nums proportional-nums;
    font-feature-settings: 'onum' 1, 'pnum' 1;
}

.contact-text-column {
    transform: translateY(-2px);
}

.contact-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #3B2A86;
    background: #0b0b14;
    box-shadow: 0 0 20px rgba(59, 42, 134, 0.32);
    aspect-ratio: 16 / 10;
    transition: border-color 260ms ease, box-shadow 260ms ease;
}

.contact-photo-button:hover .contact-photo-frame,
.contact-photo-button:focus-visible .contact-photo-frame {
    border-color: #E4143A;
    box-shadow: 0 0 28px rgba(228, 20, 58, 0.22);
}

.contact-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 420ms ease;
}

.contact-photo-button:hover .contact-photo-frame img,
.contact-photo-button:focus-visible .contact-photo-frame img {
    transform: scale(1.03);
}

.contact-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.contact-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 10, 0.86);
}

.contact-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(1120px, calc(100vw - 2rem));
    display: inline-flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(59, 42, 134, 0.7);
    background: #050509;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.contact-lightbox-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 3px solid rgba(236, 236, 242, 0.7);
    background: rgba(15, 15, 25, 0.85);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: filter 220ms ease;
}

.contact-lightbox-close:hover,
.contact-lightbox-close:focus-visible {
    filter: invert(1);
}

.contact-lightbox-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1120px, calc(100vw - 2rem));
    max-height: min(80vh, 900px);
    object-fit: contain;
}

.contact-lightbox-open {
    overflow: hidden;
}
