@font-face {
  font-family: "HelveticaNeue";
  src: url("fonts/HelveticaNeueLTCom-Md.woff") format('woff');
  font-weight: Medium;
}

a:link,
a:visited,
a:hover,
a:active {
  color: black;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
/*  font-style: italic;*/
}







body {
  min-height: 100vh;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}







body{
  font-family: "HelveticaNeue";
  line-height: 15px;
  margin: 0;
}

#grid {
  width: 100vw;
  position: absolute;
  min-height: 100vh;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
  display: grid;
  grid-template-rows: 9px 1.3em auto 1.5em 8px;
  grid-template-columns: 10px 1fr auto 1fr 10px;
}

header {
z-index: 1000;
font-family: "HelveticaNeue";
font-weight: 600;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 2/3;
}

.about {
z-index: 1000;
font-weight: 600;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 3/4;
text-align: center;
}

.text-about {
  line-height: 18px;
  width: calc(100vw - 20px);
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.typefaces {
z-index: 1000;
font-weight: 600;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 4/5;
text-align: right;
}






* {box-sizing: border-box}
.mySlides {
  display: none
}

img {
  z-index: 1;
  vertical-align: middle;
  max-width: 100vw;
  max-height: calc(100vh - 17px - 2.8em);
}

video {
  z-index: 1;
  vertical-align: middle;
  max-width: 100vw;
  max-height: calc(100vh - 17px - 2.8em);
}

/* Slideshow container */
.slideshow-container {
  grid-row: 3/4;
  grid-column: 1/6;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next{
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 100%;
  width: 50vw;
}
.prev {
  right: 50%;
  border-radius: 3px 0 0 3px;
  cursor: w-resize;
}

/* Position the "next button" to the right */
.next {
  left: 50%;
  border-radius: 3px 0 0 3px;
  cursor: e-resize;
}

/* Caption text */
.text {
  padding: 0px 10px;
  z-index: 10000000;
  font-family: "HelveticaNeue";
  font-size: 15px;
  position: fixed;
  left: 0;
  bottom: 6px;
  width: 100%;
  text-align: center;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: .0s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}









@media only screen and (max-width: 540px) {

  body {
    padding-bottom: env(safe-area-inset-bottom);
}

  header {
    font-size: 0.8em;
  }

  .about {
    font-size: 0.8em;
  }

  .typefaces {
    font-size: 0.8em;
  }

  .text-about{
    line-height: 16.3px;
    font-size: 0.87em;  
    left: 50%;
    top: calc(9px + 3em);
    padding-bottom: 30px;
    transform: translate(-50%, 0);
  }

}

@media only screen and (max-height: 600px) {

  .text-about{
    line-height: 16.3px;
    font-size: 0.87em;  
    left: 50%;
    top: calc(9px + 3em);
    padding-bottom: 30px;
    transform: translate(-50%, 0);
  }

}