/*
Giving Magazine GW
Version: 1.0
*/

/*--------------------------------*/
/* Styles for devices up to 768px */
/*--------------------------------*/

@media only screen and (orientation: portrait) {

.landscape {
  display: none;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.chart {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.slide-text-left,
.slide-text-right,
.slide-text-full {
  position: absolute;
  display: table;
  z-index: 20;
  width: 80%;
  height: 70%;
  top: 15%;
  left: 10%;
  background-image: url('images/white75.png');
  padding: 30px;
  line-height: 5.5vw;
  font-size: 5vw;
}

.slide-text-left img,
.slide-text-right img,
.slide-text-full img {
  height: 5vw;
  width: auto;
}

.bio {
  position: relative;
  display: table;
  z-index: 20;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 25px;
  line-height: 5.5vw;
  font-size: 5vw;
}

.bio img {
  width: 70%;
  height: auto;
  margin: 0 15% 20px 15%;
  padding: 0;
}

.internal {
  display: table-cell;
  vertical-align: middle;
  height: auto;
}

.slide-image,
.slide-image-left,
.slide-image-right,
.slide-image-full {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.landscape {
  display: none;
}

h1 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-size: 2em;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  margin: auto;
}

h2 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-size: 4vw;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  margin: 0 auto 20px auto;
}

td {
  width: 33%;
  padding: 0 0 10px 0;
  vertical-align: top;
  font-size: 2.6vw !important;
  line-height: 1em;
}

#popup { display: block; position: fixed; z-index: 40; width: 86%; height: 86%; top: 7%; left: 7%; background: #ffffff; border: 1px solid #bbbbbb; padding: 20px; }

} /* End Portrait Styles */

/*----------------------------------*/
/* Styles for devices 769px or more */
/*----------------------------------*/

@media only screen and (orientation: landscape) {

.portrait {
  display: none;
}

  .slide {
    clear: both;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .chart {
    position: relative;
    width: 100%;
    height: 130%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .slide-text-left img,
  .slide-text-right img,
  .slide-text-full img {
    height: 3.3vh;
    width: auto;
    margin: 0;
  }

  .internal {
    display: table-cell;
    vertical-align: middle;
    height: auto;
  }

  .slide-image {
    position: absolute;
    z-index: 1;
    width: 33%;
    height: 100%;
    top: 0;
    padding: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .portrait {
    display: none;
  }

  .slide-image-left {
    position: absolute;
    z-index: 1;
    width: 40%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    top: 0 !important;
    height: 100% !important;
  }

  .slide-image-right {
    position: absolute;
    z-index: 1;
    width: 40%;
    height: 100%;
    top: 0;
    right: 0;
    padding: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    top: 0 !important;
    height: 100% !important;
  }

  .slide-text-left {
    position: absolute;
    display: table;
    z-index: 1;
    left: 40%;
    width: 60%;
    top: 0;
    height: 100%;
    padding: 5%;
    font-size: 4vh;
    line-height: 4.7vh;
  }

  .slide-text-right {
    position: absolute;
    display: table;
    z-index: 1;
    right: 40%;
    width: 60%;
    top: 0;
    height: 100%;
    padding: 5%;
    font-size: 4vh;
    line-height: 4.7vh;
  }

  .slide-text-full {
    position: absolute;
    display: table;
    z-index: 20;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    padding: 5%;
    background-image: url('images/white75.png');
    font-size: 4vh;
    line-height: 4.7vh;
    text-align: center;
  }

  .slide-image {
    width: 100% !important;
  }

  h1 {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 700;
    font-size: 2.3em;
    text-transform: uppercase;
    line-height: 1em;
    text-align: center;
    margin: 0 auto;
  }

  h2 {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 700;
    font-size: 2em;
    line-height: 1em;
    text-align: center;
    margin: 0 auto 20px auto;
  }

  h3 {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.3em;
    text-align: center;
    margin: -35px auto 20px auto;
  }

  td {
    width: 33%;
    padding: 0 0 10px 0;
    vertical-align: top;
    font-size: 1.5vw !important;
    line-height: 1em;
  }

  .bio {
    position: relative;
    display: table;
    z-index: 20;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 50px;
    font-size: 3vh;
    line-height: 4.2vh;
  }

  .bio img {
    float: left;
    width: 30%;
    height: auto;
    margin: 0 30px 30px 0;
    padding: 0;
  }

#popup { display: block; position: fixed; z-index: 40; width: 70%; height: 70%; top: 15%; left: 15%; background: #ffffff; border: 1px solid #bbbbbb; padding: 30px; }

} /* End Landscape Styles */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  font-size: 20px;
  font-family: "Saira", sans-serif;
}

table {
  border-collapse: collapse;
}

.bio-text p {
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 16px 0;
}

.white {
  background: #fff;
}

.gray {
  background: #ddd;
}

#overlay { position: fixed; display: none; width: 100%; height: 100%; background-image: url('images/overlay_bg.png'); background-repeat: repeat; z-index: 30; }

.closebutton {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 26px;
    width: 60px;
    background: url(images/pop_close.jpg);
}
