body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-left: auto;
    margin-right: auto;
}

authpos { font-weight: bold; text-decoration: underline; }

/* Floating Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgb(0, 0, 0);
    z-index: 1000;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.video-wrapper {
    width: 100%;          /* Default for mobile (full width) */
    margin-left: auto;    /* Centers the div horizontally */
    margin-right: auto;   /* Centers the div horizontally */
}

/* For desktop screens (typically 768px wide and up) */
@media (min-width: 768px) {
    .video-wrapper {
        width: 75%;       /* Scales down to 55% on desktop */
        margin-left: auto;    /* Centers the div horizontally */
    margin-right: auto;   /* Centers the div horizontally */
    }
}

.cv-link {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cv-link:hover {
    color: #ffd500;
}

@media (max-width: 800px) {
    .cv-link {
        font-size: 18px;
    }
    .logo {
        font-size: 18px;
    }
}

.main-container {
    width: 56%;
    display: flex;
    flex-direction: column;
    background-color: white;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding: 10px;
    padding-bottom: 0px;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .main-container {
        width: 100%;
        padding: 0px;
    }
}

.head-text-container a {
    all: unset;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.head-text-container a:hover {
    color: orange;
    cursor: pointer;
}

/* chapter-container: layout only, no font opinions */
.chapter-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding-bottom: 0px;
    color: #000000;
    flex-direction: column;
}

.chapter-container-video {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the video wrapper horizontally */
    width: 100%;
}


.chapter-container p {
    padding: 0px;
    margin: 0px;
}

.chapter-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
}

.chapter-title-huge {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .chapter-container {
        width: 100%;
        font-size: 18px;
    }

    .chapter-title {
        text-align: center;
        font-size: 21px;
        margin-bottom: 10px;
    }

    .chapter-title-huge {
        text-align: center;
        font-size: 22px;
        margin-top: 40px;
    }
}

.footer-wrapper {
    background-color: #101010;
}

.head-container {
    display: flex;
    align-items: center;
    gap: 0px;
    margin: 0 auto;
    font-size: 24px;
    justify-content: space-between;
    padding: 0%;
    /* nav bar is ~50px; clamp gives breathing room at all sizes */
    margin-top: clamp(60px, 8vw, 110px);
    width: 100%;
    padding-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.video-grid video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background: #000;
}

.head-text-container {
    padding-left: 0%;
    width: 75%;
}

.desktop-content {
    display: block;
    width: 100%;
    max-width: 100%;
}

.mobile-content {
    display: none;
    width: 100%;
    max-width: 100%;
}

.head-image-container {
    width: 25%;
    padding-right: 0%;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .desktop-content {
        display: none;
        width: 100%;
        max-width: 100%;
    }

    .mobile-content {
        display: block;
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 200px) and (max-width: 1100px) {
    .head-container {
        width: 100%;
    }

    .head-text-container {
        margin: 0;
        padding-left: 15px;
        width: 80%;
    }

    .head-image-container {
        width: 25%;
        padding: 10px;
    }
}

.page-mana-mobile,
.mobile-break {
    display: none;
}

@media (max-width: 1100px) {
    .page-mana-desktop {
        display: none;
    }
    .page-mana-mobile,
    .mobile-break {
        display: inline;
    }
}

.page-subtitle {
    font-size: 36px;
}

@media (max-width: 1100px) {
    .page-title {
        font-size: 48px;
        line-height: 1.0;
        margin: 10px 0 20px 0;
    }
    .page-subtitle {
        font-size: 28px;
        font-weight: 500;
        line-height: 1.2;
        display: block;
        margin-top: -4px;
    }
}

/***********************************************/
.teaser-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 24px;
}

.teaser-text-container {
    flex: 1;
    width: 100%;
    font-size: 23px;
}

.teaser-video-container {
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    max-width: 100%;
    font-size: 23px;
}

.text-overlay {
    position: absolute;
    top: 70%;
    left: 5%;
    width: 90%;
    color: white;
    text-align: left;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(14px, 3vw, 24px);
    padding: 1em;
    box-sizing: border-box;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .text-overlay {
        top: 70%;
        left: 3%;
        width: 90%;
        font-size: clamp(8px, 3vw, 12px);
        padding: 1em;
    }
}

.teaser-video-container-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    width: 100%;
    font-size: 23px;
    overflow: hidden;
}

.teaser-video-container-right {
    display: flex;
    flex: 1;
    padding: 0;
    width: 100%;
    font-size: 23px;
    overflow: hidden;
}

/***/
.gallery-container {
    display: flex;
    gap: 20px;
    margin: 0;
    background-color: white;
    padding: 0px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gallery-text-region {
    width: 20%;
    padding: 30px;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.gallery-grid {
    flex: 80%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-right: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/***** Publications ****/
.publications-wrapper {
    display: flex;
    gap: 20px;
    margin: 0;
    background-color: white;
    padding: 0px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 0px;
}

.publications-container {
    padding: 50px;
    padding-top: 20px;
    margin-top: 0px;
    width: 100%;
    font-size: 18px;
}

.publication-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-year {
    flex: 0 0 80px;
    font-weight: bold;
    color: #555;
}

.pub-video {
    flex: 0 0 260px;
    font-weight: bold;
    color: #555;
}

.pub-video video { width: 100%; }
.pub-video img   { width: 100%; }

.pub-content { flex: 1; }

.pub-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #000000;
}

.pub-authors {
    color: #000000;
    margin-bottom: 5px;
}

.pub-venue {
    color: #666;
    font-size: 0.9em;
}

.pub-links {
    margin-top: 8px;
}

.pub-links a {
    margin-right: 10px;
    font-size: 0.85em;
    color: #0066cc;
    text-decoration: none;
}

.pub-links a:hover {
    text-decoration: underline;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .publications-container {
        padding: 20px;
        width: 100%;
        font-size: 14px;
    }

    .pub-title {
        font-weight: bold;
        margin-bottom: 5px;
        color: #000000;
        font-size: 15px;
    }

    .pub-links a {
        margin-right: 10px;
        font-size: 14px;
        color: #0066cc;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    .flex-container { flex-direction: column; }
    .text-region, .image-grid { flex: 100%; }
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .publication-item {
        flex-direction: column;
        gap: 8px;
    }
    .pub-year { flex: 0 0 auto; }
}

@media (max-width: 480px) {
    .image-grid { grid-template-columns: repeat(2, 1fr); }
}

.flex-item {
    padding: 15px;
    margin: 10px;
    background-color: #e0e0e0;
}

.end-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 40px;
    margin-bottom: 0px;
    margin-right: 0px;
    margin-left: 0px;
    gap: 40px;
    background-color: #f8d3e9;
    color: #040c64;
    font-family: Arial, sans-serif;
    justify-content: center;
}

.biography-container {
    display: flex;
    width: 100%;
    gap: 40px;
    font-family: Arial, sans-serif;
    justify-content: space-between;
}

.bio-left {
    width: 24%;
    padding: 50px;
    padding-right: 0px;
    text-align: left;
}

.bio-left h2 {
    margin: 0;
    width: 100%;
    font-size: 28px;
}

.bio-right {
    flex: 1;
    padding: 30px;
    padding-top: 50px;
    padding-left: 30px;
}

.bio-right p {
    line-height: 1.0;
    font-size: 17px;
    margin: 5px;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .biography-container {
        flex-direction: column;
        margin: 5px;
        gap: 20px;
    }

    .bio-left {
        flex: 1;
        width: 80%;
        margin-top: 20px;
        margin-left: 30px;
        padding: 0;
        padding-bottom: 0px;
        text-align: left;
    }

    .bio-left h2 {
        margin: 0;
        width: 60%;
        font-size: 28px;
    }

    .bio-right {
        flex: 1;
        padding: 0px;
        margin-left: 25px;
    }

    .bio-right p {
        line-height: 1.0;
        font-size: 12px;
        margin: 5px;
    }
}

.copyright {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 4px;
    background-color: #00000000;
    border-top-width: 2px;
}

@media (min-width: 200px) and (max-width: 1100px) {
    .copyright {
        padding: 10px;
        font-size: 12px;
    }
}