#sidebar-bg {
    background-image: url('images/MW_image4.jpg');
    background-size: contain;
    background-position: center top;
}
    
#profile-pic {
    width: calc(100% + 5em);
    margin-left: -2.5em;
    margin-right: -2.5em;
    margin-bottom: 1.5em;
    text-align: center;
    box-sizing: border-box;
}

#sidebar #profile-pic img {
    display: block !important;
    width: 55% !important;
    aspect-ratio: 1 / 1 !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    margin: 0 auto !important;
}


#sidebar {
    width: 20em; /* up from default 18em, adjust to taste */
}

#sidebar + #wrapper {
    margin-left: 20em; /* must match sidebar width exactly */
}

#sidebar {
    width: 20em;
    overflow: hidden; /* keeps the moving background from spilling out */
}

#sidebar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%; /* taller than the sidebar so it has room to shift */
    background-image: url('images/MW_image4.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#profile-name {
    color: #ffffff;
    text-align: center;
    margin-top: 0.75em;
    margin-bottom: 0;
    font-size: 2.0em;
    font-weight: 600;
}

#profile-title {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 0.25em;
}

#about-photos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
    width: 100%;
    max-width: 1400px;
    margin: 2em auto;
}

#about-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#intro {
    background-color: #332E42; /* or whatever color you're currently using */
    background-image: none !important;
}

#intro h1,
#intro p {
    color: #ffffff;
}

#sidebar nav a:before {
    background: #ffffff !important;
}

#sidebar nav a:after {
    background-image: linear-gradient(to right, #ffffff, #ffffff) !important;
}

#research-content {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    margin: 2em 0;
}

#research-video-wrap {
    width: 55%;
    max-width: 600px;
    flex-shrink: 0;
}

#research-video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

#video-caption {
    font-size: 0.85em;
    opacity: 0.75;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0;
}

#research-text {
    flex: 1;
}

#research-text p {
    margin: 0 0 1.5em 0; /* adds space between the two paragraphs */
}

#research-text p:last-child {
    margin-bottom: 0; /* no extra space after the final paragraph */
}

.wrapper.style1,
.wrapper.style1-alt,
.wrapper.style2,
.wrapper.style2-alt,
.wrapper.style3,
.wrapper.style3-alt {
    background-color: #332E42 !important;
}

.spotlights > section {
    align-items: flex-start !important;
    min-height: 0 !important;
}

.spotlights > section > .content {
    flex: 1 !important;
    width: auto !important;
}

.spotlights > section > .image {
    width: 25em !important;
    background: none !important;
    background-image: none !important;
}

.spotlights > section > .image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.spotlights > section > .content {
    display: flex !important;
    flex: 1 !important;
    width: auto !important;
    padding: 2em 3em !important;
}

.spotlights > section:nth-child(2),
.spotlights > section:nth-child(3) {
    background-color: transparent !important;
}

#main.wrapper {
    background-color: #332E42 !important;
}

body {
    background-color: #332E42;
}

#figure-content {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

#figure-image {
    width: 35%;
    max-width: 350px;
    flex-shrink: 0;
}

#figure-image img {
    width: 100%;
    height: auto;
    display: block;
}

#figure-content p {
    flex: 1;
    margin: 0;
}

#figure-citation {
    text-align: left;
    font-size: 0.85em;
    opacity: 0.7;
    padding: 1em 0 2em 0;
    background-color: #332E42;
}
@media screen and (max-width: 1280px) {
    #sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3.5em !important;
        overflow: visible !important;
        z-index: 10000 !important;
    }

    #sidebar-bg {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }

    #sidebar > .inner {
        flex-direction: row !important;
        align-items: center !important;
        height: 100% !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
    }

    #profile-pic {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        margin: 0 1em 0 0 !important;
    }

    #sidebar #profile-pic img {
        width: 2.2em !important;
        height: 2.2em !important;
        margin: 0 !important;
        border-width: 2px !important;
    }

    #profile-name,
    #profile-title {
        display: none !important;
    }

    #sidebar nav ul {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
    }

    #sidebar nav ul li {
        margin: 0 0 0 1.5em !important;
    }

    #sidebar nav ul li:first-child {
        margin-left: 0 !important;
    }

    #wrapper {
        padding-top: 3.5em !important;
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 736px) {
    .spotlights > section {
        display: block !important;
    }
    .spotlights > section > .image {
        width: 100% !important;
        height: auto !important;
        overflow: hidden;
    }
    #about-photos {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #research-content,
    #figure-content {
        flex-direction: column !important;
    }
    #research-video-wrap,
    #figure-image {
        width: 100% !important;
        max-width: 100% !important;
    }
}

