@font-face {
  font-family: 'EpiceneDisplayBlack';
  src: url('../fonts/epicene-display-black.woff2') format('woff2');
}

@font-face {
  font-family: 'EpiceneTextItalic';
  src: url('../fonts/epicene-text-regular-italic.woff2') format('woff2');
}

/*@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500&display=swap');*/

:root{
  --bg-black:  #020202;
  --light-yellow: #ffd365;
  --mid-grey: #808285; 
  --dull-chocolate: #1A1818;
  --grey-bg: #262626;
}

html{
  font-size:18px;
  scroll-padding-top: 5rem;
}

body{
  margin: 0;
  padding: 0;
  font-family: 'Lora', serif;
  overflow-x: clip; 
  /* NB clip works but hidden doesn't */
  background-color: var(--bg-black);
}

h1, h2 {
  font-family: 'EpiceneDisplayBlack';
  text-align: center;
  margin: 3em 0 2em;
  color: white;
}

a, a:visited{
  color: white;
  text-decoration: none;
}

a:hover{
  color:var(--light-yellow);
}

h2 a, h2 a:visited{
  color: var(--light-yellow)
}

/*SPLASH*/

.splash-wrap{
  padding:36px 1em 0 1em;
  width:100%;
  box-sizing: border-box;
}

.splash-logo{
  width:400px;
  max-width:75%;
  margin: 4em auto;
}

.splash-logo svg{
/*  opacity:0;*/
}

.splash-logo svg g#frame{
  opacity:0;
  animation: fadeInAnim ease 5s;
  animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.splash-logo svg g#head{
  opacity:0;
  animation: fadeInAnim ease 5s;
  animation-delay: 2s;
  animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.splash-logo svg g#subhead{
  opacity:0;
  animation: fadeInAnim ease 5s;
  animation-delay: 4s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.splash-logo.static svg g#subhead, .splash-logo.static svg g#head, .splash-logo.static svg g#frame {
  opacity: 1;
  animation:none;
}

.splash-image-wrap{
  position:relative;
  left:0;
  width:100%;
  z-index:-1;
  opacity:0;
  animation: fadeInAnim ease 5s;
  animation-delay: 6s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  overflow: clip;
}

.splash-image-wrap.static{
    animation:none;
    opacity:1;
}

.splash-image-wrap.secondary{
  animation:none;
  opacity:1;
  margin-top:6em;
  max-width:1100px;
  margin: 6em auto 0;
  text-align: center;
}

.splash-image-wrap img{
  width: 100%;
  display: block;
  margin: 0 auto;
  max-width: 1100px;
}

.splash-text{
  margin:0 auto;
  max-width:520px;
  min-width: calc(300px - 2em);
  font-family: 'Lora',serif;
  color:white;
  font-size:1.2em;
}

.splash-text.space-before{
  margin-top:6em;
}

.smaller{
  font-size:1.0em;
  max-width:480px;
  min-width: calc(300px - 2em);
}


.splash-text h2{
  font-size:3em;
  margin:1em auto 0em;
}

.drop-cap p:first-child:first-letter {
  font-family: 'EpiceneDisplayBlack';
  float: left;
  font-size: 4rem;
  line-height: 2.5rem;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 3px;
}


  .splash-mg-container{
    max-width:720px;
    width:80%;
    margin:2em auto 0;
    columns:3 100px;
    column-gap:3em;
    padding:0;
  }

  .splash-mg{
    display: inline-block;
    width:100%;
    margin:10% 0;
    opacity:0.8;
    transition:opacity 1s;
  }

  .splash-mg:hover{
    opacity:1.0;
  }

  .splash-mg img{
    width:100%;
    height:auto;
  }

  .splash-mg:nth-child(1), .splash-mg:nth-child(6){
    margin-top:57%;
  }

  p.feature{
    text-align: center;
    font-size:1.2em;
  }


@keyframes fadeInAnim {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}


.story-title-container{
  padding: 1em 1em 0.7em 1em;
  margin: 3em auto;
  width: fit-content;
  border-image: url(../img/border-rect.png) 15% 10%;
  border-width: 18px;
  border-color: var(--light-yellow);
  border-style: solid;
}

h1.story-title{
  font-size: 3rem;
  margin: 0;
  text-align: center;
  line-height:1.1em;
}

.related-inner h3{
  font-family: 'Lora',serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin:0.5rem;
}

section{
  width: 100%;
}

.section-banner{
  background-color: var(--dull-chocolate);
  padding: 0.5em 0;
  border-top: 12px solid;
  border-bottom: 12px solid;
  border-image: url(../img/border-rect.png) 15% 10%;
}

h2.section-head{
  font-family: 'EpiceneTextItalic',serif;
  /*  all ligatures on */
  font-feature-settings: "liga" 1, "dlig" 1;
  color: var(--light-yellow);
  font-size: 2.0rem;
  margin: 0.25em 0;
  font-weight: 400;
  line-height:1.2em;
}

section.introduction, .about{
  padding-top: 36px;
  margin-bottom: 3em;
}

.intro-wrap{
  padding: 0 1em;
}

section.introduction .intro-inner{
  font-weight: 400;
  color: white;
  font-size: 1.0rem;
}

.reduce-motion-ui{
  width:280px;
  margin:2em auto;
  padding:0.5rem 1rem;
  background-color: var(--grey-bg);
  font-family: 'Raleway',sans-serif;
  color: var(--mid-grey);
  text-align: center;
}

.reduce-motion-ui p{
  font-size:0.8rem;
  margin:0.5rem;
}

.reduce-motion-ui label{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
    cursor: pointer;

}

.reduce-motion-ui input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--mid-grey);
  cursor: pointer;
}


.reduce-motion-ui label:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.reduce-motion-ui label input:checked ~ .checkmark {
  background-color: var(--light-yellow)
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.reduce-motion-ui label input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.reduce-motion-ui label .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.scroll-icon{
  width:64px;
  height:64px;
  margin:0 auto;
}

.scroll-icon img{
  width: 100%;
}

/* ABOUT */

.about{
  margin:0 auto;
  max-width:800px;
  padding:0 1em;
  color:white;
}

.about section:first-of-type{
  font-size:1.2rem;
  margin-top:6em;
}

.about h2{
  margin-top:3rem;
  margin-bottom:2rem;
}

.about a{
  text-decoration: underline;
}

table.credits{
  width:90%;
  max-width: 800px;
}
table.credits td{
  padding:0.75em;
}
table.credits td:first-of-type{
  word-wrap: nowrap;
min-width:180px;
  text-align: right;
  font-weight: bold;
/*  font-size:120%;*/
}





/* NAV */

nav{
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 16px 12px 0;
  background-color: var(--dull-chocolate);
  z-index: 1;
  box-shadow: 9px 9px 9px rgba(0,0,0,0.2);
  font-family: 'Raleway',sans-serif;
  color:white;
  font-size:16px;
}

nav img.hamburger-icon{
  height: 100%;
  cursor: pointer;
  display:none;
}

nav ul#mobile, nav ul#section, nav ul#stories{
  left: -100%;
  background-color: var(--dull-chocolate);
  position: absolute;
  top: 100%;
  padding-right:1em;
  box-shadow: 9px 9px 18px rgba(0,0,0,0.4);
}

nav ul#mobile.show{
  left:0;
}

nav ul#section, nav ul#stories{
  left:0;
  top:38px;
  width:240px;
  display:none;
  padding-bottom:0.5rem;
}

nav ul#stories{
  left:4.5rem;
}

nav ul#section.show, nav ul#stories.show{
  display: block;
}

nav a.section-title{
  cursor:pointer;
}

nav a.section-title-mobile{
  display: none;
}


nav .menu-hover:hover, a.section-title-mobile:hover{
  color:var(--light-yellow);
}

nav ul#section li {
  padding:0em 0.25em 0.5em 0;
}

nav ul#section li .nav-item{
  font-size: 14px;
  line-height:1em;
}

nav ul#links.show{
  left: 0;
}

nav ul, nav ul li, ul.story-select-nav, ul.story-select-nav li {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
}
nav ul#desktop-menu{
  display: inline-block;
}

nav ul#desktop-menu li{
 display: inline-block;
  margin-right:1rem;
  font-weight: 400;
  text-transform: uppercase;
  position:relative;
  bottom:0.35rem;
  cursor:pointer;
}

nav ul#desktop-menu li a {
 color:white;
}

nav .nav-item, ul.story-select-nav li {
  display: block;
  font-weight: 400;
  font-size: 16px;
  padding: 0.35em 0 0.35em 0.7em;
  border-left: 2px solid transparent;
  transition: all 0.25s;
  text-transform: none;
  color: var(--mid-grey);
}

nav .nav-item.secondary{
  text-indent: 1rem;
  font-size: 0.9em;
}

nav a, nav a:visited, ul.story-select-nav a, ul.story-select-nav a:visited {
  text-decoration: none;
  color: var(--mid-grey);
}

nav a.nav-item.active{
  color: white;
  border-left: 2px solid var(--light-yellow);
}



nav a.nav-item:hover{
    color: white;
}

nav .breadcrumb-title, nav .breadcrumb-section{
  display: inline-block;
  position: relative;
  font-family: 'Raleway';
  font-weight:  400;
  color:white;
/*  color: var(--mid-grey);*/
/*  text-transform: uppercase;*/
/*  margin-left: 1rem;*/
/*  margin-right: 0.5rem;*/
  bottom: 0.35rem;
  font-style: italic;
  border-left : 1px solid var(--mid-grey);
  padding:3px 0 3px 1rem;

}

nav .breadcrumb-section{
  text-transform: unset;
  margin-left: 0;
  padding-left:0;
  border:none;
/*  border-left : 1px solid var(--mid-grey);*/

  position:relative;
  font-size: 14px;
  font-style: normal;
}

nav a.section-title {
  color:white;
}

nav .breadcrumb-section.show{
  display: unset;
}

nav a.nav-logo{
  position: absolute;
  right: 5px;
  top: 4px;
  height: 40px;
}

nav a.nav-logo img{
  height: 100%;
  border: none;
}

nav li a span.link-chevron{
  opacity:0;
  transition:opacity 0.5s;
}

nav li a:hover span.link-chevron{
  opacity:1;
}

nav .skip-link{
  position:absolute;
  left:-100px;
  top:-100px;
}

/* CONNECTIONS */

section.connections{
  background-color: var(--bg-black);
  padding-bottom: 4em;
  color: white
}

.connections-heading-container{
  padding: 1em;
  margin: 3em auto;
  width: fit-content;
  border-image: url(../img/border-rect.png) 15% 10%;
  border-width: 18px;
  border-color: var(--light-yellow);
  border-style: solid;
}

.connection-wrap{
  background-color: var(--dull-chocolate);
  padding: 2rem;
  margin-bottom: 4rem;
}

.connections h2, .index-link h2{
  margin: 0 0 3em 0;
  font-size: 2.5rem;
  display: inline;
  padding-top: 0.5em;
  color: white;
}

.connection-text h3{
  font-family: 'Lora',serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.connection-text {
  font-family: 'Raleway',sans-serif;
  font-weight: 400;
  font-size: 1.0rem;
  min-width: 200px;
  flex: 3;
}

.connection-text a{
  font-family: 'Lora',serif;
  color: white;
  text-decoration: none;
  padding-bottom: 0.1rem;
  line-height: 1.2rem;

/*  border-bottom: 1px solid var(--light-yellow);*/
}

.connection-text a:hover{
  color:var(--light-yellow);
}

.connection-text .detail{
  opacity: 0.6;
  line-height: 1.2em;
}

.connection-text p.call{
  font-weight: 300;
  font-size: 1.1rem;
}

img.monogram{
  width: 180px;
  margin: 1rem 0;
}

.connection-row{
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.connection-link{
  width: 30%;
  min-width: 180px;
  text-align: center;
  flex: 1;
}

/* INDEX LINK */

section.index-link{
  text-align: center;
}

section.index-link a{
  font-size: 120%;
}

.scroll-container{
  /* preventing margin collapse */
  border-bottom:1px solid transparent;
}

.image-wrap{
  margin: 0;
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  width: 100%;
  background-color: black;
}

.image-wrap, .pg-wrapper, .inscription-layer img{
  transition: opacity 1s;
  overflow: clip;
}

.image-wrap.step-fadeout, .pg-wrapper.step-fadeout, .inscription-layer img{
  opacity: 0;
}

.fadeout{
  opacity:0;
}

/* helper for vertically aligning landscape format items */

.image-wrap .vertical-align-helper{ 
  display:inline-block;
  height:100%;
  width:0;
  vertical-align:middle;
}

.image-wrap img.contain {
  object-fit: contain;
  height:100%;
  width:100%;
}

.image-wrap img{
   width: 100%;
   height: 100%;
  object-fit: cover;
}

.image-wrap img.zoom, .image-wrap .inscription-layer img {
    transform-origin: 50% 50%;
    transition: opacity 1s, transform 1.5s ease-in-out;
    will-change: transform;
}

body.reduce-motion .image-wrap img.zoom, body.reduce-motion .image-wrap .inscription-layer img{
  transition:none;
}

.image-wrap .mask-layer{
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 25vh, rgba(0, 0, 0, 0.6) 28vh);
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  top: 0;
  left: 0;
  transition: opacity 0.5s;
}

.image-wrap .mask-layer.show{
  opacity: 1;
}

.image-wrap .mask-layer .annotation-wrap{
  width: 100%;
  position: absolute;
  bottom: 80%;
}
.image-wrap .mask-layer .annotation-text{
  color: white;
  font-family: 'Lora', serif;
/*  font-size: 120%;*/
  text-align: center;
  /*position: absolute;*/
  /*top: 20%;*/
  width: 40%;
  min-width: 320px;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

.image-wrap .inscription-layer{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.image-wrap .inscription-layer img{
  object-fit: contain;
  height:100%;
  width:100%;
}

.image-caption{
  position: absolute;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 0.5em;
  width: 100%;
  box-sizing: border-box;
}

.caption-inner{
  margin:0 auto;
  max-width:800px;
  position:relative;
}

.image-caption p{
  margin: 0 auto;
  padding-right:2em;
  text-align: center;
  max-width: 600px;
  font-family: 'Raleway',sans-serif;
  font-weight:300;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  overflow-y: clip;
  /*line clamp to cut off more than 2 lines*/
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.index-image-wrap .image-caption{
  position:relative;
  background-color: unset;
}
.index-image-wrap .image-caption p{
    -webkit-line-clamp: unset;
}


.image-caption p.pg{
  padding-left:40px;
  min-height:2rem;
}

.image-caption .pg-icon,  .image-caption .pg-exit {
    height: 2.2em;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
}

.image-caption .pg-exit{
  display: none;
}

.pg-wrapper.focus .image-caption .pg-icon{
  display:none;
}

.pg-wrapper.focus .image-caption .pg-exit{
  display:inline-block;
}

/* toggle to show the full caption */
.image-caption input.show-hide:checked + p{
  -webkit-line-clamp: unset;
}

.image-caption input{
  display: none;
}

.image-caption label{
  position: absolute;
  right: 1em;
  top:  1em;
  cursor: pointer;
  display:none;
}

/* keyframe for zoom animations with no visible marker */
.keyframe{
  background: white;
  opacity: 0;
  width: 10px;
  height: 5em;
  border-radius: 5px;
  margin: 40vh;
  font-size: 150%;
}

.keyframe.space-after{
  margin-bottom:60vh;
}

.zoomkeyframe{
    opacity: 1;
    /* width: 40px; */
    position: relative;
/*    z-index: 1;*/
    background: none;
    color: white;
    margin: 40vh 0;
    width: 100%;
}

.eye-marker{
  width:1.5rem;
  position:absolute;
  right:16px;
  opacity:0.75;

}

/* STORY */

.story{
  width: 50%;
  min-width: 320px;
  max-width: 720px;
  margin: 0 auto 70vh; 
/*  bottom only due to margin collapse*/
  padding: 1em;
  font-size: 150%;
  background-color: rgba(255,255,255,0.9);
  overflow: hidden;
  /* set to sticky to fix ios safari bug */
  position: sticky;
  top: -100vh;

  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:1em;

}

/* a bit more space for image stories */
.story.image-right{
  width: 60%;
}



/* stories immediately after a new image */
/* overlap with the content */
.image-wrap + .story, .pg-wrapper + .story{
  margin-top: -20vh;
}

/* last story of a section gets a bigger bottom margin */

.story:last-child {
    margin-bottom: 120vh;
}

.story.space-after{
/*  margin: 20em auto 40em;*/
  margin: 0 auto 90vh;
}




.story p{
  margin: 0.25em 0;
}

.story .link{
  font-size: 75%;
  font-family: 'Raleway', sans-serif;
  margin:1em 0;
  padding: 0.25em 1em;
  border-left: 0.25em solid var(--light-yellow);
  color: black;
  line-height:1.2em;
}

.story blockquote{
/*  background: #f9f9f9;*/
/*  border-left: 10px solid #ccc;*/
/*  margin: 1.5em 10px;*/
/*  padding: 0.5em 10px;*/
  quotes: "\201C""\201D""\2018""\2019";
  font-size:1.25rem;
  font-style: italic;
  margin: 1em 2em 0;
  line-height:1.2;
}

.story blockquote:before {
  color: var(--mid-grey);
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.1em;
  vertical-align: -0.4em;
  opacity:0.5;
}

.story blockquote:after{
  color: var(--mid-grey);
  content: close-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-left: 0.1em;
  vertical-align: -0.65em;
  opacity:0.5;
}

.story .text-wrap{
  flex: 3;
  box-sizing: border-box;
  min-width: 320px;
}

.story figure{
/*  width: 35%;*/
  flex: 2;
  min-width:210px;
  max-width:320px;
  box-sizing: border-box;
  text-align: center;
  margin:0;
}

.story.full{
  display:block;
}

.story.full .text-wrap{
  width:100%;
}

.story.full figure{
  width:100%;
  max-width:100%;
  margin-top:1em;
}

/*.story.image-left figure{
  margin: 0 1em 0 0;
}*/

/*.story figure.dual {
  margin: 0  0.5em 0 0.5em;
}*/

/*.story .dual-wrap{
  display: flex;
  align-items:center;
}*/

.story figure img{
  max-width:100%;
  border: 0.5em solid #fff;
  box-shadow: 0px 0px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.story figure figcaption{
  font-size:0.75rem;
  color:var(--mid-grey);
  font-family: 'Raleway',sans-serif;
  font-weight: 300;
}

/* RELATED */

.related-wrap, .index-item-wrap{
    width: 100%;
    margin: 0em auto;
    background-color: var(--grey-bg);
    color: white;
    padding: 2em 0 0;
    box-sizing: border-box;
}


.related-inner, .connections-inner, .intro-inner, .index-item-inner{
  max-width: 900px;
  padding: 0 1em;
  margin: 0 auto;
  font-size: 120%;
}

.related-gradient-buffer{
  height:4em;
  background: linear-gradient(0deg, #1A1818 0%, #262626 100%)
}

ul.accordion{
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
  text-indent: none;
}

ul.accordion li{
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 0.5em 0;
  font-family: 'Raleway',sans-serif;
}

.accordion__label{
  display: block;
  position:relative;
  cursor: pointer;
  color: #fff;
  line-height:1.1em;
  left: 0.5rem;
}

.accordion__label:hover{
  color: var(--light-yellow);
}

.accordion__label::after{
    content: '>';
    font-family: 'Raleway';
    position: relative;
    left: 0.2rem;
/*    bottom: 0.1rem;*/
    transform: rotate(0deg);
    transform-origin: 50% 60%;
    color: var(--light-yellow);
    font-size: 1.4rem;
    transition: transform 0.5s;
    display: inline-block;
}

.accordion__input:checked ~ .accordion__label::after{
  transform: rotate(90deg);
}

.accordion__content{
  font-size: 80%;
  height: 0;
  overflow: hidden;
}

.accordion__input{
    display: none;
}

.accordion__input:checked ~ .accordion__content{
    height: unset;
}

/*FLICKITY CAROUSEL */

.carousel-cell {
  width: 100%; /* full width */
  height: 420px; /* height of carousel */
  position: relative;
  background-color: var(--dull-chocolate);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 1.5rem 2.5rem;
}

.carousel-cell img{
  min-width: 45%;
  max-width: 55%;
  height: 100%;
  object-fit: contain;
}

.carousel-text{
  font-family: 'Lora',serif;
  /*width: 50%;*/
  min-width: 45%;
  max-width: 55%;
  padding: 0.5rem;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-left: 1rem;
}

p.carousel-image-caption{
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
}

.main-carousel{
  margin: 1em 0 2em;
}

.flickity-page-dots li.dot{
  padding: 0;
}

.flickity-button{
  width: 2.5rem;
  height: 2.5rem;
  
}

.flickity-prev-next-button.next{
  right: 0;
}

.flickity-prev-next-button.previous{
  left: 0;
}

.flickity-button, .flickity-button:hover{
  background: transparent;
}
.flickity-button-icon {
  fill: white;
}

.flickity-button:hover .flickity-button-icon{
  fill:  var(--light-yellow);
}

.flickity-page-dots {
  opacity: 0.8;
}

.flickity-page-dots .dot{
  background:  white;
}


/* SKETCHFAB */

iframe.sketchfab-embed{
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: sticky;
  top: 0;
  border: none;
  pointer-events: none;
}

.pg-wrapper{
/*  height: 100%;*/
/*  height: calc(100vh - 48px);*/
height: 100vh;
  width: 100%;
  position: sticky;
  top: 0px;
  overflow-x: hidden;
}

.pg-wrapper.focus{
  z-index: 1;
}
.pg-wrapper.focus iframe.sketchfab-embed{
  pointer-events: all;
  overscroll-behavior: contain;
}

.pg-caption{
  position: absolute;
  bottom: 0;
}

.pg-back-button{
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  cursor: pointer;
  display: none;
}

.pg-wrapper.focus .pg-back-button{
  display: unset;
}


/*INDEX*/


h3.index-subheading{
  font-family: 'EpiceneTextItalic',serif;
  color:var(--light-yellow);
  font-weight:400;
  font-size:1.5rem;
  text-align:center;
  margin:-0.1em 0 0em;
  line-height:1.0em;
}

.table-wrapper{
  padding: 0em 1em;
  max-width: 1200px;
  margin: 0 auto;
}

.index-table{
  color: white;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.index-table th, .table-wrapper label, .table-story-select .current-story {
  font-family: 'Raleway',sans-serif;
  border-bottom: 2px solid var(--light-yellow);
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1.0rem;
  text-align: left;
  color:var(--mid-grey);
}

.table-wrapper label{
  border:none;
}

.table-wrapper input{
  appearance: none;
  padding:0.5em;
  margin:0 0.5em 1em 0.5em;
  font-size:16px;
  border: 1px solid transparent;
  background-color: var(--dull-chocolate);
  color: var(--mid-grey);
}

.table-wrapper input:focus{
  outline:none;
  border: 1px solid var(--mid-grey);
}

.table-filter-wrap{
  text-align: center;
}

.index-table th a {
  color:var(--mid-grey);
/*  text-decoration: underline;*/
border-bottom: 1px solid var(--mid-grey);
}

.index-table th a:hover{
  color: var(--light-yellow);
}

.index-table th img.sorticon{
  height:12px;
  position:relative;
  top:1px;
  left:5px;
}

.index-table th img.sorticon.reverse{
  transform:rotate(180deg);
}

.index-table td, .index-table th{
  padding: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-table span.story-letter{
  font-family: 'EpiceneDisplayBlack',serif;
  font-size:1.2em;
  margin:0 0.1em;
}

th.title-column{
  width: 67.5%;
}

th.type-column{
  width: 10%;
  min-width: 100px;
} 

th.stories-column{
  width: 12.5%;
  min-width: 125px;
} 

th.links-column{
  width: 10%;
  min-width: 100px;
} 

.index-table tbody tr:nth-child(even) {
  background-color: var(--grey-bg);
}
.index-table tbody tr:nth-child(odd) {
  background-color: var(--dull-chocolate);
}

.link-chevron{
  font-family: 'Raleway',sans-serif;
  color: var(--light-yellow);
  position: relative;
  left:0.5rem;
  font-weight: 400;
  font-size: 120%;
}

.link-chevron.down{
  display: inline-block;
  transform:rotate(90deg);
  left:0.5rem;
  top:0.1rem;
  cursor:pointer;
}

.link-chevron.up{
  display: inline-block;
  transform:rotate(-90deg);
  left:0.25rem;
  bottom:0.5rem;
  cursor:pointer;
}

.story-monogram-mini{
  height: 20px;
  margin: 0 4px;
  fill: var(--light-yellow);
}

.table-story-select{
  display: inline-block;
  margin: 0 1em 0 0.5em;
  position:relative;
  font-family: 'Raleway',sans-serif;
  font-weight: 300;
  color: var(--mid-grey);
  border: 1px solid var(--mid-grey);
  background-color: var(--dull-chocolate);
  box-sizing: border-box;
  width:260px;
}

.table-story-select .current-story{
  display: block;
  text-align: center;
  margin:0.3em;
  text-transform: unset;
  border:none;
  cursor: pointer;
  padding:0;
}

.table-story-select a{
  display: block;
  padding:0.5em 0;
}

.table-story-select a:hover, .table-story-select li a:hover {
  color:white;
  background-color: var(--dull-chocolate);
}

.table-filter-column{
  display: inline-block;
}

ul.story-select-nav{
  position:absolute;
  background-color: var(--bg-black);
  width:260px;
  border: 1px solid var(--mid-grey);
  box-sizing: border-box;
  left:-1px;
  text-align: center;
  display:none;
}

ul.story-select-nav.show{
  display: block;
  z-index:1;
}

ul.story-select-nav li{
  font-size:90%;
  padding:0;
  margin:0;
}

/*INDEX ITEM*/

.index-item-inner{
  font-size:100%;
}

h2.index-item-title{
  font-family: "Lora",serif;
  text-align: left;
  font-weight: 600; 
  font-size: 1.5rem;
  margin: 0 0 2rem;
}

h3.index-item-subhead{
  font-family: 'Raleway',sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--mid-grey);
}

.index-item-wrap{
  background-color: black;
}

.index-image-wrap{
  position:relative;
  display: inline-block;
  width:100%;
/*  border: 1em solid var(--grey-bg);*/
  box-sizing: border-box;
  background-color: var(--dull-chocolate);
  padding: 0 0.5rem;
}

.index-item-image{
  width: 100%;
  max-height:60vh;
  object-fit: contain;
  margin:0.5rem 0;
}

.story-cell{
  position:relative;
}

.index-item-story-mgram{
  width:6em;
  vertical-align: top;
}

.sketchfab-index-item{
  width:100%;
  height:800px;
  max-height:100vh;
  border:none;
}

.index-table td.relationship{
  width: 15%;
  font-family: 'Raleway',sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size:90%;
  text-align: right;

}
div.pagination{
    text-align: center;
    margin:2rem auto;
}

.pagination a, .pagination span.divider, .pagination span.arrow{
  color:white;
  font-size:1.5rem;
  font-family: 'EpiceneTextItalic';
  padding:0 0.5rem;
}

.pagination .pagenum.active, .pagination a:hover{
  color:var(--light-yellow);
}


/* FOOTER */
footer{
  background-color: var(--dull-chocolate);
  color: white;
  width: 100%;
  padding: 2em 0 6em 0;
  margin-top:12em;
}

footer p, footer a, footer a:visited{
  font-family: 'Raleway',sans-serif;
  color:var(--mid-grey);
  font-size:0.9rem;
}

footer p{
  font-size:80%;
  text-align: center;
}

footer a{
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin: 0 0 2em;
}

.footer-wrap{
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 1100px;
  align-items: center;
}

footer .col{
  width: 20%;
  min-width:240px;
  padding:1.5em;
  box-sizing: border-box;
}

footer .col svg{
  width: 100%;

}

footer .mid{
  /*width:60%;*/
  flex:2;
  padding:0 1em;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

footer img{
  margin:2vw;
  width:20%;
  min-width:120px;
/*  height:auto;*/
}

footer img.wider{
  width:35%;
  min-width:180px;
}

/* large desktop - enlarge menu bar */

@media only screen and (min-width: 1100px){
  nav{
    height:64px;
    padding-top: 27px;
  }

  nav a.nav-logo{
    right: 8px;
    top: 7px;
    height: 50px;
  }

  nav ul#stories{
    top: 56px;
  }

  nav ul#section{
    top: 36px;
  }

  .image-wrap{
    top: 64px;
    height: calc(100vh - 64px);
  }

/*.pg-wrapper{
   top: 32px;
   height: calc(100vh - 32px); 
  }*/

  section.introduction, .about{
    padding-top:64px;
  }



}

/* small tablet and below */

@media only screen and (max-width: 720px){

  nav ul#desktop-menu{
    display: none;
  }

  nav img.hamburger-icon{
    display: unset;
    height: 24px;
    cursor: pointer;
    position: relative;
    top: -4px;
  } 

  nav .breadcrumb-title{
    border:none;
  }

  nav .breadcrumb-title, nav .breadcrumb-section{
    bottom:0.6rem;
  }

  .table-wrapper{
    padding:0;
  }

  .index-table.list tr{
  border-bottom:1px solid var(--mid-grey);
}

.index-table.list tr:first-of-type{
  border-top: 1px solid var(--light-yellow);
}

 .index-table.list td {
    display: block;
    text-align: left;
    padding:0.5em 0;
  }

  .index-table.list td a{
    display: inline-block;
    width:80%;
  }
  
  .index-table.list td::before {
    content: attr(data-label);
    display:inline-block;
    width:15%;
    text-align: right;
    padding-right: 1em;
/*    float: left;*/
    font-family:'Raleway',sans-serif;
    color:var(--mid-grey);
    font-weight:300;
    font-size:0.9rem;
  }

    .table-filter-column{
    display:block;
    padding:0.25em 0;
  }

  .table-filter-column label{
    width:50px;
  }

  .index-table.list thead{
    display:none;
  }

  .splash-image-wrap.primary img{
    position:relative;
    left:-25%;
    width:150%;
    max-width:150%;
  }

  .splash-mg-container{
    min-width: calc(320px - 2em);
    columns: 2 90px;
    column-gap: 2em;
  }

  .splash-mg:nth-child(1), .splash-mg:nth-child(6){
    margin-top:0%;
  }

.splash-mg:nth-child(4){
  break-after: column;
}
  

   .splash-mg:nth-child(5){
    margin-top:50%;
  }

  /* reduce margin of first story after image */
  .image-wrap + .story, .pg-wrapper + .story{
    margin-top: 0vh;
  }

  .footer-wrap{
    flex-direction: column;
    flex-wrap: nowrap;
  }
 
 footer .col.links{
  width:100%;
  text-align: center;
 }

  footer .col a{
    display: inline-block;
    margin: 1em;
    font-size: 0.9rem;
  }

  .eye-marker{
    right:12px;
  }

}

/* MOBILE */

@media only screen and (max-width: 500px){

  html{
    font-size:14px;
  }

  .story{
    font-size: 120%;
  } 

  .related-inner{
    width: 100%;
    padding: 0 0.5rem;
    min-width: unset;
    box-sizing: border-box;
  }

  .related-wrap{
    padding: 0.5em 0 0;
  }
  .accordion__content{
    padding: 0;
  }

  .carousel-cell {
    width: 100%; 
    height: 640px; 
    flex-direction: column;
  }

  .carousel-cell img{
    max-width: 100%;
    height: 50%;
    object-fit: contain;
  }

  .carousel-text{
    max-width: 100%;
    height: 50%;
    margin: 1em 0;
  }

  nav a.section-title-mobile{
  display: inline-block;
  color: white;
}
  nav a.section-title{
    display: none;
  }

  .story-title-container{
    max-width:75%;
  }

  nav ul#section{
    top:36px;
    min-width:180px;
    left:-90px;
  }

  .image-wrap .mask-layer{
   background: radial-gradient(circle, rgba(0, 0, 0, 0) 20vh, rgba(0, 0, 0, 0.6) 23vh); 
  }

  .image-caption p{
    font-size:0.9rem;
  }

  .story figure{
    max-width:180px;
  }

}


