p {
  color: #222;
}

/* .thumbnail {
  max-width: 40%;
} */

.italic { font-style: italic; }
.small { font-size: 0.8em; }

/** LIGHTBOX MARKUP **/

.lightbox {
  /** Default lightbox to hidden */
  display: none;

  /** Position and style */
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  text-decoration: none;

}

.lightbox img {
  /** Pad the lightbox image */
  max-width: 90%;
  max-height: 88%;
  margin-top: 2%;
}


.lightbox img.printscreen {
  max-width: 100% !important;
  margin-bottom: 50px;
}
.text, .text p {
      line-height: 30px;
}
.lightbox p.caption {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1em;
  color: #FFF;
}

.lightbox .subcaption {
  font-weight: 100;
  line-height: 30px;
}

.lightbox:target {
  /** Remove default browser outline */
  outline: none;

  /** Unhide lightbox **/
  display: block;
}


.lightbox .text {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 700px;
  max-height: 80%;
  margin-top: 2%;
  background-color: #fff;
  color: #000;
  overflow-y: scroll;
  text-align: justify;
  padding: 50px;
}

.lightbox .text p:last-child {
  margin-bottom: 40px;
}

.lightbox .text h2 {
  margin: 30px 0 0px 0;
}

@media screen and (min-width: 480px) and (max-width: 799px) {

  .lightbox .text {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 450px;
    max-height: 80%;
    margin-top: 2%;
    background-color: #fff;
    color: #000;
    overflow-y: scroll;
    text-align: justify;
    padding: 50px;
  }
}

@media screen and (min-width: 280px) and (max-width: 479px) {
  .lightbox .text {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 250px;
    max-height: 80%;
    margin-top: 2%;
    background-color: #fff;
    color: #000;
    overflow-y: scroll;
    text-align: justify;
    padding: 5px;
    font-size: 80%;
    line-height: 25px;
  }

  .lightbox h2 {
    font-size: 200%;
  }
  .text, .text p {
      margin: 5px 0;
      line-height: 22px;
      font-size: 16px;
  }
}
