/* Matilde Meireles styles */

:root {
    --green:#CFCBCB;
    --black: #000000;
    --text-gray: #000000;
    --nav-gray: #eeeeee;
    --box-outline: #9e9e9e;
    --background: #ffffff;
    --banner-color:#FFF86B;
    --delimiter-width: 100%;
    --header-footer-height: 70px;
    --main-padding: 80px;
    --line-height: 26px;
    --standard-text: 15px;
    --smaller-text: 12px;
    --letter-spacing-small: 0.5px;
    --letter-spacing-medium: 1px;
}

body {
    font-family: 'Noto Serif JP', serif;
}

b{
	font-family: 'Noto Serif JP', serif;
	font-weight: bold;
}

i{
	font-family: 'Noto Serif JP', serif;
	font-style: italic;
}

a {
    border-bottom: 1px solid var(--black);
    text-decoration: none;
    color: var(--black);
}

a:hover {
    border-bottom: 1px dsolid var(--black);
    text-decoration: none;
    color: var(--black);
}

a.instaLink, a.contactLink {
    border-bottom: none;
    text-align: right;
    align-self: center;
}

a.contactLink > img {
    width: 30px;
}

a.instaLink > img {
    width: 17px;
}

a, p, li, h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
}

h2, h3, li, p, a, figcaption, address {
    line-height: var(--line-height);
}

p {
    --letter-spacing-medium: 1px;
}

figcaption {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 95px;
    font-size: var(--smaller-text);
}

header {
    background: var(--nav-gray);
    display: grid;
    grid-template-columns: 25vw auto;
    height: var(--header-footer-height);
    position: fixed;
    width: 100vw;
    z-index: 999;
    margin-top: var(--header-footer-height);
}

footer p {
    font-size: var(--smaller-text);
}

.header-banner {
    height: var(--header-footer-height);
    background-color: var(--banner-color);
    display: grid;
    align-content: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 999;
    padding-left: 30px;
    padding-right: 30px;
}

.thin {
    height: calc(var(--header-footer-height) / 2);
    line-height: calc(var(--header-footer-height) / 2);
}

/* When nav has thin class, adjust contactOptions top position */
nav.thin ~ .contactOptions,
#siteMenu.thin .contactOptions {
    top: 6px;
}

#siteMenu {
    display: grid;
    grid-template-columns: 100vw;
    top: 0;
    justify-content: space-between;
    position: relative;
    width: 100vw;
}

header > button {
    display: none;
}

header nav > ul {
    list-style-type: none;
    padding-left: 0;
    background-color: var(--nav-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav > ul > li {
    margin-left: 0;
    padding-left: 0;
    display: inline-block;
    height: var(--header-footer-height);
    line-height: var(--header-footer-height);
    text-align: center;
}

header h1 {
    margin-bottom: 0;
    margin-top: 0;
    /* background-color: var(--green); */
    line-height: var(--header-footer-height);
    padding-left: var(--main-padding);
}

header nav, header > div > a {
    background-color: var(--nav-gray);
    align-self: center;
    height: var(--header-footer-height);
    display: grid;
    align-content: center;
}

.contactOptions {
    padding-right: var(--main-padding);
    display: grid;
    align-items: end;
    grid-auto-flow: column;
    grid-template-columns: 40px 40px;
    position: absolute;
    right: 0;
    top: 25px;
}

header > div > nav a {
    margin-right: 10px;
    margin-left: 10px;
}

header > div > a {
    justify-content: end;
    padding-right: var(--main-padding);
}

header > div > a > img {
    width: 17px;
}

footer {
    background-color: var(--nav-gray);
    height: var(--header-footer-height);
    align-content: center;
    display: grid;
    padding-left: var(--main-padding);
    margin-top: var(--line-height);
}

h1, h2, h2 > a {
    font-size: var(--standard-text);
    letter-spacing: var(--letter-spacing-small);
}

h2 > span {
    display: none;
}

p, li {
    font-size: var(--standard-text);
}

hr {
    width: var(--delimiter-width);
    margin-left: 0;
    border-top-style: none;
    border-color: var(--black);
    /* margin-top: var(--line-height); */
    margin: 0;
    /* margin-bottom: var(--line-height); */
}

#homePage > main {
    display: grid;
    grid-template-columns: 33.333% 33.333% 33.333%;
    padding-top: calc(var(--header-footer-height) * 2);
    align-items: stretch;
}

#homePage > main > section > hr {
    width: calc(var(--delimiter-width) / 2);
    margin-top: calc(var(--line-height) / 2);
    margin-bottom: calc(var(--line-height) / 2);
}

#homePage > main > section {
    /* border: var(--black) 1px solid; */
    height: 100%;
    background: var(--background);
    /* margin:0 -1px -1px 0; */
    /* padding: calc(var(--main-padding) / 2) var(--main-padding); */
    border-top: 0;
    border-left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#homePage > main > section > img {
    margin-bottom: -1px;
}

#homePage > main > section > h2 > a {
    letter-spacing: var(--letter-spacing-small);
}

#homePage > main > section h2 {
    padding: calc(var(--main-padding) / 4) calc(var(--main-padding) / 2);
    background-color: var(--nav-gray);
}

#homePage > main > section > .project-info {
    border-top: var(--black) 1px solid;
    border-left: var(--black) 1px solid;
    border-bottom: var(--black) 1px solid;
    border-right: var(--black) 1px solid;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Remove right border for containers that are not the last in their row */
#homePage > main > section:nth-child(3n) > .project-info {
    border-right: var(--black) 1px solid;
}

#homePage > main > section:not(:nth-child(3n)) > .project-info {
    border-right: none;
}

/* Last item always has right border */
#homePage > main > section:last-child > .project-info {
    border-right: var(--black) 1px solid;
}
/* #homePage > main > section:first-of-type {
    padding: 0;
    background: url("../images/demo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-left: 0;
    border-right: 0;
} */

/* #homePage > main > section:nth-child(2) {
    background: var(--nav-gray);
} */

#homePage > main > section:nth-child(4n+5) {
    border-left: 0;
}

#homePage > main > section:nth-child(4n+4) {
    border-right: 0;
}

#homePage > main > section > img {
    object-fit: cover;
    height: 400px;
    min-width: 400px;
    max-width: 900px;
}

#homePage > main > section ul, #homePage > main > section p {
    color: var(--text-gray);
    letter-spacing: var(--letter-spacing-medium);
    padding: calc(var(--main-padding) / 4) calc(var(--main-padding) / 2);
}

#homePage > main > section li, #homePage > main > section p {
    font-size: var(--standard-text);
}

#homePage footer {
    margin-top: 0 !important;
}

#researchPage > main,
#projectPage > main,
#aboutPage > main,
#newsPage > main,
#releasesPage > main {
    padding-top: 180px;
}

main > section > aside {
    padding-right: var(--main-padding);
    padding-left: var(--main-padding);
}

article > p {
    padding-bottom: 20px;
}

#researchPage > main > section,
#projectPage > main > section,
#aboutPage > main > section,
#newsPage > main > section,
#releasesPage > main > section {
    width: 75vw;
    padding-left: 25vw;
    /*padding-bottom: var(--line-height);*/
    /*padding-top: var(--line-height);*/
}

section.withAside {
    padding-left: 0 !important;
    display: grid;
    grid-template-columns: 25vw 50vw;
}

section.withAside > article > p {
    padding-bottom: 0;
}

#releasesPage article > h3 {
    font-weight: 700;
}

#releasesPage article > a {
    text-decoration: none;
    font-weight: 700;
}

figure {
    display: grid;
    justify-content: center;
    width: 100vw;
}

figure > img {
    width: 75vw;
    height: 600px;
    object-fit: cover;
}

section.slideshow > .carousel iframe {
    height: 600px;
}

.buttonLink {
    background-color: var(--nav-gray);
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: var(--line-height);
    display: inline-block;
    border-bottom: none;
}

div.carousel {
    width: 75vw !important;
    padding-left: 0 !important;
    margin: 0 auto;
}

section.slideshow {
    position: relative;
    width: 75vw !important;
    padding-left: 0 !important;
    margin: 0 auto;
}

#carouselControls {
    position: absolute;
    right: 95px;
    bottom: 22px;
    background: var(--background);
    padding-left: 20px;
    width: 70px;
}

#carouselControls > button {
    border: none;
    background-color: transparent;
    display: inline-block;
}

a.active {
    text-decoration: none !important;
    border-bottom: none !important;
}

h1 > a {
    text-decoration: none !important;
    cursor: pointer;
}

h1 > a:active {
    text-decoration: none !important;
}


@media only screen and (max-width: 1024px) {
    header {
        margin-top: var(--header-footer-height);
        grid-template-columns: var(--header-footer-height);
        justify-content: end;
    }

    header > button {
        display: grid;
        width: var(--header-footer-height);
        align-content: center;
        border: 0;
        background: var(--nav-gray);
        z-index: 999;
    }

    header > button > hr {
        margin: 0 auto;
        margin-bottom: 4px;
        margin-top: 4px;
    }

    header > h1 {
        width: calc(100vw - var(--header-footer-height));
        padding-left: 30px;
    }

    header nav > ul {
        display: grid;
    }

    h2 > span {
        display: inline-block;
        width: 5px;
        height: 17px;
        background: var(--green);
        margin-bottom: -2px;
        margin-left: -15px;
        margin-right: 10px;
    }

    #siteMenu {
        display: none;
    }

    #siteMenu {
        position: fixed;
        right: 0;
        width: calc(100vw - 70px);
        top: 152px;
        height: auto;
        max-width: 250px;
    }

    #siteMenu ul > li {
        width: 100%;
        height: calc(var(--header-footer-height) / 2);
        line-height: calc(var(--header-footer-height) / 2);
    }

    #siteMenu > .contactOptions {
        position: relative;
        top: 80px;
        justify-content: center;
        padding-bottom: 60px;
        padding-top: 40px;
        background: var(--nav-gray);
        padding-left: 45px;
    }

    #siteMenu ul {
        padding-top: 60px;
    }

    #homePage > main {
        display: grid;
        grid-template-columns: 50vw 50vw;
        padding-top: var(--header-footer-height);
        align-items: stretch;
    }

    #homePage > main > section {
        /* padding: 30px; */
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #homePage > main > section:nth-child(even) {
        border-right: 5px;
    }

    /* Tablet layout border fix - remove right border for containers that are not the last in their row (2-column layout) */
    #homePage > main > section:nth-child(2n) > .project-info {
        border-right: var(--black) 1px solid;
    }

    #homePage > main > section:not(:nth-child(2n)) > .project-info {
        border-right: none;
    }

    /* Last item always has right border in tablet layout */
    #homePage > main > section:last-child > .project-info {
        border-right: var(--black) 1px solid;
    }

    #researchPage > main > section, #projectPage > main > section, #aboutPage > main > section, #newsPage > main > section, #releasesPage > main > section {
        width: 100vw;
        padding-left: 30px;
        padding-right: 30px;
    }

        li::marker {
  font-size: 0.3em; /* Adjust the size as needed */
}

    section.withAside {
        grid-template-columns: none;
        padding-left: 30px !important;
        padding-right: 30px;
    }

    section > aside {
        padding: 0!important;
    }

    section.slideshow {
        width: 100vw !important;
        padding-right: 0 !important;
    }

    section.slideshow > .carousel {
        width: 100vw !important;
        /*height: auto;*/
    }

    section.slideshow > .carousel img {
        width: 100vw;
        height: auto;
    }

    section.slideshow > .carousel iframe {
        height: calc(100vh / 2);
    }

    .carousel figcaption {
        padding-left: 35px;
    }

    figure > img {
        height: calc(100vh / 2);
        object-fit: cover;
    }

    .imageWithAuthor > img {
        width: 100vw;
    }

    #carouselControls {
        right: 50px;
        width: 80px;
    }

    footer {
        padding-left: 35px;
    }
}


@media only screen and (max-width: 600px) {
    #homePage > main {
        display: grid;
        grid-template-columns: 100vw;
        padding-top: var(--header-footer-height);
        align-items: stretch;
    }

    /* #homePage > main > section:first-of-type {
        height: 450px;
    } */

    #homePage > main > section {
        border-right: 0;
        border-left: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }


    /*     #homePage > main > section:nth-of-type(2), #homePage > main > section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* Mobile layout - all containers have left and right borders */
    #homePage > main > section > .project-info {
        border-left: var(--black) 1px solid !important;
        border-right: var(--black) 1px solid !important;
    } */

    section.slideshow > .carousel img {
        width: 100vw;
        height: calc(100vh / 2);
    }

    #carouselControls {
        right: 25px;
        width: 90px;
    }

    #carouselControls > button {
        width: 30px;
        padding-left: 0;
        padding-right: 0;
        color: var(--black);
    }
}