p.instruct{
  float:left;
  color:white;
  padding:0 100px;
  margin:0;
  font-style:italic;
}

#close{
  float:right;
  padding:0px 40px;
}

#close:before {
  content: " ";
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuODU0IDIuODU0YS41LjUgMCAwIDAtLjcwOC0uNzA4TDcuNSA2Ljc5MyAyLjg1NCAyLjE0NmEuNS41IDAgMSAwLS43MDguNzA4TDYuNzkzIDcuNWwtNC42NDcgNC42NDZhLjUuNSAwIDAgMCAuNzA4LjcwOEw3LjUgOC4yMDdsNC42NDYgNC42NDdhLjUuNSAwIDAgMCAuNzA4LS43MDhMOC4yMDcgNy41bDQuNjQ3LTQuNjQ2WiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);
color: white;
background-color:black;
padding:10px 10px;
  background-position: center bottom;
  background-size: 100%;
  background-repeat: no-repeat;
cursor: pointer;
}

section {
height:100%;
width:100%;  
}

figcaption {
font-size: min(max(.5em, 1rem), .75em);
margin-left:auto;
margin-right:auto;
text-shadow: 1px 1px 2px black;
position: relative;
top: -10px;
}


.shrinkToFit {
  margin: 0 auto;
}

html.reveal-full-page body.reveal-viewport div.reveal.slide.center.focused.has-horizontal-slides.ready div.slides section {
    flex-direction: column;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
    height: 99vh;
}

html.reveal-full-page body.reveal-viewport div.reveal.slide.center.focused.has-horizontal-slides.ready div.slides section.present figure{
    margin:0;
    padding:0;
    margin-block-end: 0;
    margin-inline-end: 0;
}

html.reveal-full-page body.reveal-viewport div.reveal.slide.center.focused.has-horizontal-slides.ready div.slides section.present figure img {
  margin: 0;
  max-width: 99vw;
}



html.reveal-full-page body.reveal-viewport.reveal-scroll div.reveal.slide.center.focused.ready div.slides div.scroll-page div.scroll-page-sticky div.scroll-page-content section p{
  position:absolute;
  left:0;
  right:0;
}

html.reveal-full-page body.reveal-viewport div.reveal.slide.center.focused.has-horizontal-slides.ready div.r-overlay.r-overlay-preview div.r-overlay-viewport div.r-overlay-content small.r-overlay-content-inner{
    display: none;
}

@media (max-width: 1080px) {
  html.reveal-full-page body.reveal-viewport.reveal-scroll div.reveal.slide.center.focused.ready div.slides div.scroll-page div.scroll-page-sticky div.scroll-page-content section img {
    max-height: 99vh;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }
  html.reveal-full-page body.reveal-viewport.reveal-scroll div.reveal.slide.center.focused.ready div.slides div.scroll-page div.scroll-page-sticky div.scroll-page-content section.present figure figcaption{
    font-size: .9em;
  }

} 


@media (min-aspect-ratio: 8/5) {
  html.reveal-full-page body.reveal-viewport div.reveal.slide.center.focused.has-horizontal-slides.ready div.slides section.present figure img {
  max-height: 99vh;
  }
}

