html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.logo {
    width: auto;
    height: 56px;
}

#profile-photo {
    /* width: 250px; */
    height: 250px;
    object-fit: fill;
}

/* logo.svg's navy wordmark disappears on a dark navbar, so both variants are
   rendered and the colour mode (set on <html> by theme.js) picks one. */
[data-bs-theme="dark"] .logo-light,
[data-bs-theme="light"] .logo-dark {
    display: none;
}

/* sun.svg and moon.svg draw with currentColor, which an <img> can't inherit, so
   they are masks painted in the text colour. The inactive mode's icon is dimmed. */
.theme-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    -webkit-mask: var(--theme-icon) center / contain no-repeat;
    mask: var(--theme-icon) center / contain no-repeat;
}

.theme-icon-sun {
    --theme-icon: url("/static/img/sun.svg");
}

.theme-icon-moon {
    --theme-icon: url("/static/img/moon.svg");
}

[data-bs-theme="dark"] .theme-icon-sun,
[data-bs-theme="light"] .theme-icon-moon {
    opacity: .4;
}

/* Marks every page while a staff member is viewing the portal as another user. */
body.impersonating::after {
    content: "";
    position: fixed;
    inset: 0;
    border: 6px solid #dc3545;
    pointer-events: none;
    z-index: 2000;
}
