.staff-photo-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    line-height: 0;
    appearance: none;
    cursor: zoom-in;
}

.staff-photo-trigger::after {
    content: "⤢";
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #ffffffb3;
    border-radius: 50%;
    background: #fff;
    color: #174c83;
    font: 22px/1 Arial, sans-serif;
    box-shadow: 0 2px 9px #102d4b26;
    pointer-events: none;
}

.staff-photo-trigger:hover::after {
    background: #e5f1ff;
}

.staff-photo-trigger:focus-visible {
    outline: 3px solid #0873df;
    outline-offset: -3px;
}

html.staff-photo-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.staff-photo-viewer {
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #ffffff26;
    border-radius: 14px;
    background: #112a43;
    color: #fff;
    box-shadow: 0 24px 80px #0006;
}

.staff-photo-viewer::backdrop {
    background: #06182be6;
}

.staff-photo-viewer[open] {
    display: flex;
    flex-direction: column;
}

.staff-photo-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
}

.staff-photo-viewer-title {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.staff-photo-viewer-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #7593af;
    border-radius: 8px;
    background: #fff;
    color: #163b60;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.staff-photo-viewer-close:hover {
    background: #e5f1ff;
}

.staff-photo-viewer-close:focus-visible {
    outline: 3px solid #8cc9ff;
    outline-offset: 3px;
}

.staff-photo-viewer-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 124px);
    max-height: calc(100dvh - 124px);
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .staff-photo-viewer {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 10px;
    }
    .staff-photo-viewer-header {
        gap: 12px;
        padding: 10px 12px;
    }
    .staff-photo-viewer-title {
        font-size: 14px;
    }
}
