@font-face {
    font-family: "Inter";
    src: url("fonts/inter/InterVariable.ttf") format("truetype-variations");
    font-weight: 300 900;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/InterVariable-Italic.ttf") format("truetype-variations");
    font-weight: 300 900;
    font-style: italic;
}

html {
    background-color: #dddddd;
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    padding: 100px;
    background-color: #ffffff;
    /* background-color: #f1f5ff; */
    font-family: Inter, Helvetica, Arial sans-serif;
    max-width: 1200px;
}

.projects-body {
    background-color: #ffefce;
}

.publications-body {
    background-color: #ffd6dd;
}

.photos-body {
    background-color: #cad5ad;
}

.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 55px;
    margin: 0 auto;
}

.title {
    grid-column: span 4;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-svg {
    width: 27px;
    height: 27px;
    margin-bottom: 2px;
}

.menu {
    grid-column: span 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 350px;
}

.menu div {
    margin-bottom: 9px;
}

.menu div:last-child {
    margin-bottom: 40px;
}

.nav-link {
    font-size: 1.3em;
    font-weight: 450;
    text-decoration: none;
    color: gray;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005A92;
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: #005A92;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link-project {
    font-size: 1.3em;
    font-weight: 450;
    text-decoration: none;
    color: #ff8800;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link-project::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cf6f00;
    transition: width 0.2s ease;
}

.nav-link-project:hover {
    color: #cf6f00;
}

.nav-link-project:hover::before {
    width: 100%;
}

.nav-link-publications {
    font-size: 1.3em;
    font-weight: 450;
    text-decoration: none;
    color: #ff7484;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link-publications::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c95461;
    transition: width 0.2s ease;
}

.nav-link-publications:hover {
    color: #c95461;
}

.nav-link-publications:hover::before {
    width: 100%;
}

.nav-link-photo {
    font-size: 1.3em;
    font-weight: 450;
    text-decoration: none;
    color: #606c38;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link-photo::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #283618;
    transition: width 0.2s ease;
}

.nav-link-photo:hover {
    color: #283618;
}

.nav-link-photo:hover::before {
    width: 100%;
}

.projects {
    grid-column: 1 / span 2;
    grid-row: 2;
    /* grid-row: 2 / span 2; */
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.subtitle-link {
    font-size: 1.5em;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    transition: color 0.2s ease;
    position: relative;
}

.subtitle-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005A92;
    transition: width 0.2s ease;
}

.subtitle-link:hover {
    color: #005A92;
}

.subtitle-link:hover::before {
    width: 100%;
}

.project-breadcrumb-header {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.project-breadcrumb-content {
    font-size: 1em;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.5em;
}

.arrow-link-project-breadcrumb {
    font-size: 0.9em;
    text-decoration: none;
    margin-right: 7px;
    margin-bottom: 2.5em;
    color: #005A92;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.arrow-link-project-breadcrumb::after {
    content: "";
    margin-left: 2px;
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('assets/arrow_link_icon_blue.svg') no-repeat center center;
    background-size: contain;
}

.arrow-link-project-breadcrumb::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005A92;
    transition: width 0.3s ease;
}

.arrow-link-project-breadcrumb:hover::before {
    width: 100%;
}

.about {
    grid-column: 3 / span 4;
    grid-row: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    /* height: auto; */
}

.about-text {
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 1em;
}

.about-text-subtitle {
    font-size: 1em;
    line-height: 1.5;
    font-weight: 400;
}

.inline-link {
    position: relative;
    color: #000000;
    text-decoration: none;
    transition: color 0.1s ease;
}

.inline-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #005A92;
    transition: height 0.1s ease;
}

.inline-link:hover {
    color: #005A92;
}

.inline-link:hover::after {
    height: 3px; 
}


.inline-link-pure-url {
    text-decoration: underline;
    text-decoration-color: #002896;
    color: #002896;
    transition: text-decoration-thickness 0.1s ease;
    text-decoration-thickness: 1px;
}

.inline-link-pure-url:hover {
    text-decoration-thickness: 3px;
}

/* .publications {
    grid-column: 3 / span 4;
    grid-row: 3;
    position: relative;
    display: flex;
    flex-direction: column;
} */

.publication-breadcrumb-header {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.publication-breadcrumb-content {
    font-size: 1em;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 0.5em;
}

.arrow-link-publication-breadcrumb {
    font-size: 1em;
    text-decoration: none;
    margin-right: 7px;
    color: #000000;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.arrow-link-publication-breadcrumb::after {
    content: "";
    margin-left: 2px;
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('assets/arrow_link_icon.svg') no-repeat center center;
    background-size: contain;
}

.arrow-link-publication-breadcrumb::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005A92;
    transition: width 0.3s ease;
}

.arrow-link-publication-breadcrumb:hover {
    color: #005A92;
}

.arrow-link-publication-breadcrumb:hover::before {
    width: 100%;
}

.arrow-link-publication-breadcrumb:hover::after {
    background: url('assets/arrow_link_icon_blue.svg') no-repeat center center;
    background-size: contain;
}

.arrow-link-publication-page {
    font-size: 1em;
    text-decoration: none;
    margin-right: 7px;
    color: #000000;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.arrow-link-publication-page::after {
    content: "";
    margin-left: 2px;
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('assets/arrow_link_icon.svg') no-repeat center center;
    background-size: contain;
}

.arrow-link-publication-page::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF7484;
    transition: width 0.3s ease;
}

.arrow-link-publication-page:hover {
    color: #FF7484;
}

.arrow-link-publication-page:hover::before {
    width: 100%;
}

.arrow-link-publication-page:hover::after {
    background: url('assets/arrow_link_icon_red.svg') no-repeat center center;
    background-size: contain;
}

.equal-contrib-note {
    font-size: 0.8em;
    color: #005A92;
    font-weight: 500;
}

.equal-contrib-note-pub-page-theme {
    font-size: 0.8em;
    color: #000000;
    font-weight: 500;
}

.footer {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.footer-contact-info {
    font-size: 1em;
    margin-bottom: 1em;
}

.copyright-info {
    font-size: 0.8em;
    color: gray;
}

.copyright-info-project {
    font-size: 0.8em;
    color: #FF8800;
}

.copyright-info-publications {
    font-size: 0.8em;
    color: #ff7484;
}

.copyright-info-photo {
    font-size: 0.8em;
    color: #606c38;
}

.project-page-item {
    grid-column: 1 / span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.project-page-table-of-contents {
    grid-column: 5 / span 2;
    position: sticky;
    top: 70px;
    align-self: start;
    height: auto;
    /* max-height: calc(100vh - 40px); 
    overflow-y: auto; */
}

.project-subtitle {
    font-size: 1.5em;
    font-weight: 500;
    color: #000000;
}

.publications-subtitle {
    font-size: 1.5em;
    font-weight: 500;
    color: #000000;
}

.photo-subtitle {
    font-size: 1.5em;
    font-weight: 500;
    color: #000000;
}

.subtitle-link-project {
    text-decoration: none;
    color: #000000;
    transition: color 0.2s ease;
    position: relative;
}

.subtitle-link-project::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF8800;
    transition: width 0.2s ease;
}

.subtitle-link-project:hover {
    color: #FF8800;
}

.subtitle-link-project:hover::before {
    width: 100%;
}

.ol-project {
    counter-reset: section;
    list-style: none;
    padding-left: 0;
}

.ol-project li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.ol-project li::before {
    counter-increment: section;
    content: counter(section) ". ";
    color: #FF8800;
    font-weight: 600;
}

.inline-link-project {
    position: relative;
    color: #000000;
    text-decoration: none;
    transition: color 0.1s ease;
}

.inline-link-project::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF8800;
    transition: height 0.1s ease;
}

.inline-link-project:hover {
    color: #FF8800;
}

.inline-link-project:hover::after {
    height: 3px; 
}

.project-item-content {
    font-size: 1em;
    line-height: 1.5;
}

.centered-image {
    width: 90%;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
}

.photo-page-item {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 650px;
}

.publications-page-item {
    grid-column: 1 / span 3;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.preprint-page-item {
    grid-column: 4 / span 3;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}


.photo-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Gap between rows */
}

.photo-row {
    display: flex;
    width: 100%;
    gap: 20px; /* Gap between photos in a row */
    margin-bottom: 20px;
}

.photo-item {
    height: 250px; /* Fixed height for all photos in a row */
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.photo-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; /* Optional: for hover effect */
}

/* Optional: Hover effect */
.photo-item:hover img {
    transform: scale(1.05);
}


@media (max-width: 1200px) {

    html {
        font-size: 14.5px;
    }


    body {
        padding: 70px;
    }
}

@media (max-width: 900px) {

    html {
        font-size: 13px;
    }

    .header-svg {
        width: 25px;
        height: 25px;
        margin-bottom: 2px;
    }

    body {
        padding: 50px;
    }

    .title {
        height: 250px;
    }

    .menu {
        height: 250px;
    }


}

@media (max-width: 768px) {

    html {
        font-size: 12px;
    }

    body {
        padding: 30px;
    }
}

@media (max-width: 650px) {

    body {
        padding: 25px;
    }

    .header-svg {
        width: 23px;
        height: 23px;
        margin-bottom: 2px;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 35px;
        margin: 0 auto;
    }

    .title {
        grid-column: 1 / span 3;
        grid-row: 1;
        height: auto;
    }

    .menu {
        grid-column: 1 / span 3;
        grid-row: 2;
        height: auto;
    }


    .about {
        grid-column: 1 / span 3;
        grid-row: 3;
    }

    .projects {
        grid-column: 1 / span 3;
        grid-row: 4;
    }

    
    .project-page-table-of-contents {
        grid-column: 1 / span 3;
        grid-row: 3;
        position: unset;
        top: unset;
        align-self: unset;
    }

    .project-page-item {
        grid-column: 1 / span 3;
        grid-row: 4;
    }

    .publications-page-item {
        grid-column: 1 / span 3;
        grid-row: 3;
    }
    
    .preprint-page-item {
        grid-column: 1 / span 3;
        grid-row: 4;
    }
}

@media (max-width: 410px) {

    body {
        padding: 20px;
    }

    html {
        font-size: 11px;
    }

}