
@font-face {
    font-family: ResourceHan;
    src: url(fonts/ResourceHanRoundedTW-Light.ttf);
}

*, *:before, *:after {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body{
    font-size: 15px;
    font-family: "Courier New", Courier, monospace;
    color: #000;
    margin: 12px;
    margin: 24px;
    line-height: 1.5;
    line-height: 18px;
    font-weight: 200;
    margin-top: 0;
    background: white;
}
a{
    text-decoration: underline 1px;
    text-underline-position: from-font;
}
#stickynav{
    width: 100%;
    background: white;
    top: 0;
    padding-top: 24px;
    padding-bottom: .1px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 1000;
}
#stickynav .directory-list, #stickynav .directory-list hr{
    margin-bottom: 0;
    border-width: 1.5px;
}
#content, #contentParent, .repeater_event .name{
    /*
    font-size: 0.75vw;
    */
    line-height: 1.133;
    line-height: 18px;
}
span.chinese {
    line-height: 1.45;
    line-height: 18px;
}
div.folder, div.archive, body a:link, body a:visited, li.home .name:not(li.home .name:has(a)){ 
    text-decoration: underline 1px;
    text-underline-position: from-font;
    color: #000; 
}
a, div.folder, div.archive{
    cursor: pointer;
}
li.home .name{
    cursor: default;
}

body a:hover, div.folder:hover, div.archive:hover {
    text-decoration:none;
    color: #0000FF; }

body a:active {
    text-decoration:none;
    color: #800080; }

h1, h2, h3, h4, h5, h6, p{
    font-weight: 200;
    text-decoration: none;
    transition:0s all;
    margin-block-start: 0;
}
#media.home p{
    font-size: 80%;
    line-height: 1.133;
}

h1 {
    /*
    height: 3.4em;
    height: calc(36px * 3);
    */
    height: auto;
    font-weight: 200;
    text-decoration:none;
    /*    margin-bottom: calc(2 * 0.67em);*/
    margin-bottom: .5em;

    font-size: 30px;
    line-height: 36px;
}

h1 a:visited {
    text-decoration:none;
    color: #000;
}

h1 a:link {
    text-decoration:none;
    color: #000;
}

h1 a:hover {
    text-decoration:none;
    color: #0000FF;
}

h1 a:active {
    text-decoration:none;
    color: #800080; 
}

.title a:visited, a:link, a:active{
    text-decoration:none;
    color: #000; 
}

h2 {
    font-size: 0.85vw;
    line-height: 1.7;

    font-size: 14px;
    line-height: 18px;

}

h1 a:visited {
    text-decoration:none;
    color: #000;
}

h2 a:link {
    text-decoration:none;
    color: #000;
}

h2 a:hover {
    text-decoration:none;
    color: #0000FF;
}

h2 a:active {
    text-decoration:none;
    color: #800080; 
}

strong, b{
    font-weight: 600;
}


.directory-list {
    margin-top: 0;
    padding-left: 0;
    list-style: none;
}
.children-list {
    opacity: 1;
    visibility: visible;
    min-height: unset;
    /*    min-height: 1000vh;*/
    overflow: hidden;
    transition: all 0.25s linear;
}

.directory-item {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    /*    min-height: 26px;*/

    padding-top: 2px;
    padding-top: 1em;
}
.directory-item#mail{
    padding-top: 5em;
}

#mail pre{
    font-size: 12px;
}

.directory-item.archive, .directory-item.folder{
    padding-top: 0;
}
.directory-item.archive > .info, .directory-item.folder > .info{
    padding-top: 1em;
}
.directory-item.labels{
    text-transform: uppercase;
    gap: 18px;
}

marquee p{
    margin-bottom: 0;
    margin: 0;
}

.parent-directory{
    margin: 1em 0;
}
.directory-item.labels, .directory-item.parent-directory{
    flex-direction: row;
}
.directory-item.about{
    margin-top: 2em;
}
.directory-item.about #content.about section.main-description {
    margin-top: 1em;
}
.directory-item.contact{
    /*    margin-top: 0.85vw;*/
}
.directory-list .directory-item:last-child{
    padding-bottom: 1em;
}
#pdf.directory-list .directory-item.pdf, .directory-list .pdf-list .directory-item:last-child{
    padding-bottom: 0vw;
}
#pdf.directory-list .directory-item:last-child, .mail.directory-list>.directory-item{
    padding-bottom: 0vw;
}

ul.pdf-list, ul.link-list{
    padding-inline-start:0;
} 
.directory-list .pdf-list{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.directory-list .pdf-list .pdf{
    padding-top: 0;
}

.mail.directory-list{
    margin-block-end: 0;
}
#mail.directory-list{
    margin-top: 1em;
}
section.main-description{
    padding-bottom: 1em;
}
.grantsawards{
    /*    margin: 0.85vw 0;*/
}
.repeater_event:first-child{
    margin-top: 1em;
}

.directory-item > .info {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.directory-item > .info .icon, .directory-item > .info .name.folder, .directory-item > .info .name>a{
    cursor: pointer;
}
.error-page.directory-item > .info .icon{
    cursor: default;
}

.current-title{
    text-decoration: underline 1px;
    text-underline-position: from-font;
    cursor: pointer;
}
.current-title:hover{
    text-decoration: none;
    cursor: pointer;
    color: #0000FF;
}

.directory-item > .info div{
    /*    padding-top: 2px;*/
}

.icon {
    /*
    max-width: 1.2vw;
    min-height: 1.2vw;
    */
    max-width: 18px;
    max-height: 18px;
    /*    margin-right: 6px;*/
}

.name, .modified, .size, .description {
    /*    white-space: nowrap;*/
    /*    margin: 0 6px;*/
}
.name{
    width: 20vw;
    width: 100%;
}

.directory-item.labels .info{
    display: grid; 
    grid-template-columns: calc(35vw - (18px * 0)) auto auto 1fr; 
    grid-template-rows: auto; 
}

.level-0 .info, .error-page .info{
    display: grid; 
    grid-template-columns: 18px calc(35vw - (18px * 0)) auto auto 1fr; 
    grid-template-rows: auto; 
}
.level-1 .info{
    display: grid; 
    grid-template-columns: 18px 18px calc(35vw - (18px * (1 * 2))) auto auto 1fr; 
    grid-template-rows: auto; 
}
.level-2 .info{
    display: grid; 
    grid-template-columns: 18px 18px 18px calc(35vw - (18px *  (2 * 2))) auto auto 1fr; 
    grid-template-rows: auto; 
}
.level-3 .info{
    display: grid; 
    grid-template-columns: 18px 18px 18px 18px calc(35vw - (18px *  (3 * 2))) auto auto 1fr; 
    grid-template-rows: auto; 
    min-height: 100%; 
}



.level-0.pdf .info, .level-0.pdf a .info{
    gap: 18px;
}
.level-0.pdf .info, .level-0.pdf a .info, .level-0.link .info, #shortAbout.level-2 .level-0.pdf .info, #shortAbout.level-2 .level-0.link .info{
    display: grid; 
    grid-template-columns: 18px 1fr; 
    grid-template-rows: auto; 
}

#shortAbout.level-2 .info{
    display: grid; 
    grid-template-columns: 18px 18px calc(35vw - (18px *  (1 * 2))) auto auto 1fr; 
    grid-template-rows: auto; 
}

.repeater_event.level-3 .info{
    display: grid; 
    grid-template-columns: 18px 18px 18px calc(35vw - (18px *  (2 * 2))) auto auto 1fr; 
    grid-template-rows: auto; 
}
/*
.level-1 .name{
width: calc(50vw - 18px);
}
*/
.newMessage .name{
    cursor: pointer;
    width: auto;
    /*    text-align: right*/
}
.modified, .size{
    width: calc(9vw - 24px);
    width: 100px;
}
.description{
    /*    width: calc(55vw - 24px);*/
    /*    width: calc(52vw - 24px);*/
    width: 100%;
}

.name {
    flex-grow: 1;
}

.indent {
    margin-left: 26px; /* Adjust indent size here */
    margin-left: 18px; /* Adjust indent size here */
}
.closed{
    /*    display: none;*/
    opacity: 0;
    visibility: hidden;
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.1s linear;


    /* transition: all 0s linear; */
}

.directory-list .directory-item:last-child.closed{
    padding-bottom: 0;
}

.name>p{
    margin-block-start: 0;
    margin-block-end: 0;
    /*    line-height: 1.133;*/
    /*    display: inline;*/
}
.name>p:last-child{
    margin-block-end: 0.5em;
}

.repeater_event .name{
    margin-left: 0;
}






.current-page .description{
    /*    margin-bottom: 2em;*/
}
.current-page .description:has(.closed){
    margin-bottom: 0;
}

.current-page #media{
    /*
    margin-top: 2em;
    margin-bottom: 2em;
    */
}
.current-page #media, .current-page #content{
    transition: all 0.1s linear;

    /* transition: all 0s linear; */

    min-height: auto;
}
.current-page #media.closed, .current-page #content.closed{
    transition: all 0.1s linear;

    /* transition: all 0s linear; */

    min-height: 0px !important;
    margin-top: 0;
    margin-bottom: 0;
}

img{
    width: 100%;
    height: 100%;
}
#media .carousel-item{
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
#media .carousel-item.active{
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
#media section, #media article{
    position: relative;
    padding-bottom: 1em;
}
#media table{
    width: 100%;
    border-top-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    -webkit-border-horizontal-spacing: 0px;
    -webkit-border-vertical-spacing: 0px;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    border-color: transparent;
    vertical-align: top;
}
#media table *{
    vertical-align: top;
}
.carousel-button-container {
    position: absolute;
    display: flex;
    transform: translateY(-100%);
    height: 100%;
    width: 100%;
}
.carousel-button {
    display: flex;
    flex: 1;
    /*    color: hsla(0, 0%, 60%, 1);*/
    /*    background-color: hsla(0, 0%, 20%, 1);*/
    cursor: pointer;
    padding: 12px;
    align-items: flex-end;
    opacity: .5;
}
.carousel-button.left {
    justify-content: flex-start;
}
.carousel-button.right {
    justify-content: flex-end;
}
.carousel-button .arrows {
    max-width: 1.2vw;
    max-height: 1.2vw;
    /*    margin: 0 12px;*/
}
.carousel-button:hover {
    opacity: 1;
}
#carousel{
    height: auto;
    transition: height .05s ease-out;
    /*    transition-delay: .15s;*/
}
.carousel {
    display: flex;
    width: 100%; 
    box-sizing: border-box; 
    overflow: hidden; 
}
#sliding{
    display: flex;
}
.carousel-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 100%; 
    height: auto;
    margin: 0;
    box-sizing: border-box; 
    font-size: 40px;
    transition: margin-left .5s ease-in-out;
    overflow: hidden;
}
.carousel-item.active {
    height: initial; /* auto should also work */
}
.carousel-item div {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#media section.images-gallery, #media article.img-details{
    padding-bottom: 0;
}

.img-details p:not(.img-details p:first-child){
    /*.img-details p{*/
    margin-top: 0;
    margin-bottom: 0.5rem;
}
/*.img-details p.caption, .img-details p:not(p.counter){*/
.img-details p.caption{
    display: flex;
}
.img-details p.caption>em:first-of-type, .img-details p:not(p.counter)>em:first-of-type{
    width: auto;
    min-width: 6vw;
    flex: none;
    margin-right: .5em;
}


table.image-captions {
    border-collapse: collapse;
}

table.image-captions td {
    padding: 0em 0  .5em 0;
    vertical-align: top;
}

table.image-captions em {
    white-space: nowrap;
}
table.image-captions td:first-child {
    white-space: nowrap;
    padding-right: 1em;
    vertical-align: top;
}



#parentImage{
    height: 0;
    min-height: 0;
    overflow: hidden;
    transition: min-height .5s ease-in-out;
}
#parentImage img{
    width: 100%;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

#parentImage.active{
    height: auto;
    max-height: 600px;
}
#parentImage.active img{
    height: auto;
    opacity: 1;
}


#media figure{
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    position: relative;
    margin-block-end: 2em;
}
#media figure:last-of-type{
    margin-block-end: 0;
}
#media .player, #media video{
    position: relative;
    width: 100%;
}
.video-player{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.player .controls {
    position: relative;
    float: left;
    clear: both;
    width: 100%;
    padding-bottom: 1em;
}
.player .controls, .player .controls .volume-box{
    display: flex;
    gap: 10px;
    align-items: center;
    align-content: center;
    justify-content: space-between;
}
.player .timer {
    float: left;
    margin-right: 10px;
    /*    margin: 2px 0px 0px 5px;*/
}
.player .slider {
    position: relative;
    display: block;
    float: left;
    flex: 1;
    height: 10px;
    /*    margin: 6px 0px 0px 10px;*/
    background: #ADADAD;
}
.player .volume-slider {
    position: relative;
    float: left;
    height: 10px;
    width: 50px;
    left: 4px;
    /*    margin: 6px 0px 0px 10px;*/
    background: #535353;
}
.player .buffer {
    background: #939393 !important;
}
.player .range{
    background: #4cbae8;
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    border: none;
    z-index: 1;
}
.player .volume-slider .range{
    background: #e6e6e6;
}
.player .handle {
    display: block;
    position: absolute;
    width: 15px;
    height: 15px;
    top: -3px;
    background: #e6e6e6;
    border: 1px solid #000;
    z-index: 10;
    transform: translateX(-50%);
    cursor: grab;
}
.player .handle:active{
    cursor: grabbing;
}
.player .volume-box {
    float: left;
    margin-left: 10px;
}
.caption-selector {
    position: absolute;
    display: none;
    width: 170px;
    padding: 5px;
    height: 75px;
    margin-bottom: 10px;
    overflow: auto;
    background-color: #000;
    border: 3px solid #fff;
    z-index: 3;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0px 1px 5px #000;
    -webkit-box-shadow: 0px 1px 5px #000;
    box-shadow: 0px 1px 5px #000;
}
.player .caption {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
/*
.caption {
display: none;
position: absolute;
bottom: 75px;
z-index: 12;
width: 100%;
text-align: center;
}
*/

.player .play-button, .player .volume-button, .player .fullscreen-button {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}
.player .play-button, .player .volume-button {
    float: left;
}
.player .fullscreen-button {
    float: right;
}
/*
#shortAbout{
display: none;
}*/

.footnote-ref {
    font-size: inherit;
    vertical-align: baseline;
}

.footnotes ol {
    counter-reset: footnote-counter; /* Start counter */
    padding-left: 0;
}

.footnotes li {
    list-style: none; /* Remove default numbering */
    counter-increment: footnote-counter; /* Increment counter for each li */
    padding-left: 3em;
    position: relative;
}

.footnotes li::before {
    content: "[" counter(footnote-counter) "]\a0\a0"; /* Add custom counter before each list item */
    position: absolute;
    left: 0;
}



#mail.level-1 .info{
    display: flex !important; 
    /*
    grid-template-columns: 0px 18px calc(35vw - (18px * 1)) auto auto 40vw; 
    grid-template-rows: auto; 
    */
}

.home-container {  
    display: grid;
    grid-template-columns: 100px  150px minmax(calc(100vw - 100px - 150px - 250px - 48px - 3em), 1fr) 250px;
    /*    grid-template-columns: 100px  150px 1fr 150px;*/
    grid-template-columns: 1fr 150px 10fr 2fr;
    grid-template-rows: repeat(6, auto);
    gap: 2em 1em;
    grid-auto-flow: row;
    grid-template-areas:
        ". subject subject-content ."
        ". date date-content ."
        ". from from-content ."
        ". to to-content ."
        ". message message-content ."
        "separator separator separator separator";
    text-transform: none;
    align-items: baseline;
    /*    width: 70vw;*/
    /*    margin: 1em auto 1em 100px;*/
}
.separator{ grid-area: separator; }
.subject { grid-area: subject; }
.subject-content { grid-area: subject-content; }

.date { grid-area: date; }
.date-content { grid-area: date-content; }

.from { grid-area: from; }
.from-content { grid-area: from-content; }

.to { grid-area: to; }
.to-content { grid-area: to-content;}

.message{ grid-area: message;}
.message-content{ grid-area: message-content;}

.newMessage{
    flex-wrap: wrap;
}




.error-page .info{
    align-items: baseline;
}



.align_right{
    text-align: right;
}
.align_center{
    text-align: center;
}

.scroll-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /*    background: red;*/
}

.scroll-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    pointer-events: auto;
    z-index: 100000;
    position: relative;
}

.scroll-wrapper:hover .scroll-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.scroll-wrapper {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.scroll-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
}

.scroll-content p {
    display: inline; /* ensures links aren't pushed out of bounds */
    margin: 0;
    padding: 0;
}

.scroll-content a {
    display: inline-block; /* fix hit area */
    pointer-events: auto;
    z-index: 100000;
    position: relative;
}


/*privacyWire*/

.choose{
    display: none;
}

.privacywire-wrapper.show-message::before, .privacywire-wrapper.show-banner::before, .privacywire-wrapper.show-options::before {
    /*
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    opacity: .8;
    pointer-events: none;
    user-select: none;
    z-index: 1001;
    background-color: lightgrey;
    mix-blend-mode: darken;
    */
}

.privacywire{
    border-width: 1.5px;
    border-style: inset;
    box-shadow: none !important;
    z-index: 1002 !important;
    /*    left: 24px !important;*/
}
.privacywire-text p::before{
    content: "";
    position: relative;
    display: inline-block;
    width: 18px;
    height: 17px;
    margin-right: 1em;
    background: url(/site/assets/files/media/envelope-notification_2.gif);
    background-position: center;
    background-repeat: no-repeat;
}

/*
.privacywire-banner, .privacywire-message, .privacywire-options{
    max-width: 900px;
}
*/

.show-banner .privacywire-banner, .show-message .privacywire-message, .show-options .privacywire-options{
    /*
    bottom: 50lvh !important;
    box-shadow: none !important;
    left: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    */
}
.privacywire-buttons{
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.show-banner > .privacywire-page-wrapper,
.show-options > .privacywire-page-wrapper,
.show-message > .privacywire-page-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1002 !important;
}

.privacywire {
    display: none;
}

.show-banner .privacywire.privacywire-banner,
.show-options .privacywire.privacywire-options,
.show-message .privacywire.privacywire-message {
    display: block;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: 620px;
}
.show-message .privacywire.privacywire-message{
    display: none !important;
}




button{
    background: none;
    color: black;
    border: none;
    padding: 0;
    font: inherit;
    outline: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #e6e6e6;
    border: 1px solid #000;
    border-radius: 2px;
    width: auto;
    padding: 2px 4px;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 0;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}
button:hover{
    filter: brightness(.8);
}