.overlaytray IMG
  {
  cursor: pointer;
  }

#overlayshield
  {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: black;
  background-image: radial-gradient( circle, silver, black ) ;
  opacity: 0.75;
  }

#overlaypic
  {
  display: none;
  width: 640px;
  height: 480px;
  padding: 8px;
  background: white;
  border: solid black 1px;
  position: fixed;
  left: calc( 50% - 328px ) ;
  top: calc( 50% - 248px ) ;
  z-index: 100;
  box-shadow: 8px 8px 8px black;
  box-shadow: 8px 8px 16px rgba( 0, 0, 0, 0.66 ) ;
  cursor: pointer;
  }

#overlayimg
  {
  display: block;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 640px;
  max-height: 480px;
  }

#overlaycross
  {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border: solid white 4px;
  border-radius: 28px;
  color: white;
  background: #CC3333;
  font-family: Arial;
  font-size: 24pt;
  line-height: 24pt;
  font-weight: bold;
  text-align: center;
  }

#overlaycross span
  {
  display: inline-block;
  padding-top: 4px;
  }

#overlayfooter
  {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: black ;
  background: rgba( 0, 0, 0, 0.5 ) ;
  }

#overlayfooter TD
  {
  padding: 0px 16px 8px 16px;
  }

#overlayplus, #overlayminus
  {
  width: 64px;
  font-family: Verdana, "Arial unicode ms";
  font-size: 48pt;
  line-height: 48pt;
  font-weight: bold;
  color: silver;
  }

#overlayplus
  {
  text-align: right;
  padding: 0px 8px 8px 8px;
  }

#overlayminus
  {
  text-align: left;
  padding: 0px 8px 8px 8px;
  }
  
#overlaycaption
  {
  color: white;
  font-family: Arial, Helvetica, Sans-Serif;
  font-size: 14pt;
  font-weight: bold;
  line-height: 125%;
  text-align: center;
  }

@media screen and ( max-height: 480px )
  {
  #overlaypic
    {
    height: 100vh;
    top: 0;
    }

  #overlayimg
    {
    max-height: 360px;
    }
  }

@media screen and ( max-width: 800px )
  {
  #overlaypic
    {
    width: 100vw;
    height: 76vh;
    padding: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    }

  #overlayimg
    {
    padding: 2vh 2vw;
    max-width: 96vw;
    max-height: 72vh;
    width: auto;
    height: auto;
    }

  #overlaycross
    {
    top: 1vh;
    right: calc( 1vw + 24px ) ;
    }
  }

