/* Needed for full height bgs */
html,body {
  height:100%;
  margin:0;
}

html>body .header.cover {
  height:auto;
  margin-bottom: 0px;
}
.header.cover h1 {
    text-shadow: .5px .5px #333;
}

/* TOP VIDEO: use 'bottom' to adjust the headline box postiion in the top video */
.header.cover .container {
  min-height: 270px;
  bottom:5px;
}

/* TOP VIDEO: set padding to 0 if top photo replaced with full-width video */
.header {
  padding:0;
}

/* TOP VIDEO: set opacity to 0 if top photo replaced with full-width video */
.header.cover:after {
  position:absolute;
  top:0;
  left:0;
  z-index:4;
  width:100%;
  height:100%;
  content:"";
  background:url(https://interactive.pri.org/themes/images/bg_pattern.png) repeat,-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.3)),color-stop(0,rgba(0,0,0,.7)));
  background:url(https://interactive.pri.org/themes/images/bg_pattern.png) repeat,-webkit-linear-gradient(bottom,rgba(0,0,0,.3) 0,rgba(0,0,0,.7) 0);
  background:url(https://interactive.pri.org/themes/images/bg_pattern.png) repeat,-o-linear-gradient(bottom,rgba(0,0,0,.3) 0,rgba(0,0,0,.7) 0);
  background:url(https://interactive.pri.org/themes/images/bg_pattern.png) repeat,linear-gradient(to top,rgba(0,0,0,.3) 0,rgba(0,0,0,.7) 0);
  border-bottom:1px solid #000;
  -webkit-box-shadow:inset inset 0 -145px 300px 0 #000;
  box-shadow:inset 0 -145px 300px 0 #000;opacity:0;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"
}

/* TOP VIDEO: disable top photo and replaced with video in html */
/*.header.cover {
 background-image: url('../images/01-d1-forest-and-sky.jpg');
}*/

/* TOP VIDEO: this is added to change the color of top PRI logo from grey '#ddd' to red*/
.navbar.transparent a {
    color: #D3401E;
}


/* Overwrite container padding */

.lead,.body-text  {
  padding-left: 15px;
  padding-right: 15px;
}

.scroller-wrapper {
  position:relative;
  margin-bottom: 30px;
}

.photo-wrapper {
  position:fixed;
  top: 0;
  left:0;
  width:100%;
  z-index: -1;
}

.photo-wrapper.is-bottom {
  position:absolute;
  top: auto;
  bottom:0;
}

/*Change alignment of the photo using "background-position"*/
.gallery-photo {
  position: absolute;
  opacity: 0;
  width:100%;
  height:100%;
  background-repeat:no-repeat;
  -webkit-background-size:cover;
  -moz-background-size:cover;
  -o-background-size:cover;
  background-size:cover;
  background-position:center center;
}

.text-wrapper {
  font-family: 'Roboto Slab', serif;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5em;
  width:100%;
  text-align: center;
  padding-bottom: 1px;
}

.trigger {
  color: white;
  text-shadow: 2px 2px 2px #000;
  -webkit-font-smoothing: antialiased;
  width:30%;
  padding:5px 10px;
  margin:0 auto;
  margin-bottom: 500px;
  z-index: 5;
  text-align: left;
}

/*Alignment of the text box*/
.trigger.align-left {
  margin-left: 5%;
}

.trigger.align-right {
  margin-right: 5%;
}

.muteBtn {
  position:fixed;
  top:2%; right:5%;
  display: none;
  width:5%;
  min-width: 50px;
  background-color: rgba(0,0,0,0.5);
  padding:10px;
  cursor: pointer;
  border-radius: 5px;
}

#muteIcon, #audioIcon {
  display:none;
}
/* styling for photo caption is different from PRI styling to eliminate a white strip on right end on Chrome on Iphone */
.interactive-caption {
  font-size: .9em;
  line-height: 1.4em;
  margin: 10px 5px 0 0;
  color: #6e6e81;
  margin-bottom: 1.5em;
}

.fullImg {
  height: 100%;
  background-repeat:no-repeat;
  -webkit-background-size:cover;
  -moz-background-size:cover;
  -o-background-size:cover;
  background-size:cover;
  background-position:center center;
}

/* Change alignment of horizontal full-screen photo if necessary */
.position-center-bottom{
  background-position:center bottom;
}

.embed {
  margin-bottom: 0px;
}

.muteBtnVideo {
  position:fixed;
  top:5%; right:5%;
  width:5%;
  min-width: 50px;
  background-color: rgba(0,0,0,0.5);
  padding:10px;
  cursor: pointer;
  border-radius: 5px;
  display:none;
}

.muteIconVideo, .audioIconVideo {
  display:none;
}

.video-top-wrapper {
  position: relative;
  padding: 0;
  margin-bottom: -10px;
  overflow: hidden;
  box-sizing: border-box;
}

.videoFull {
    object-fit: cover;
    width: 100%;
    object-position: 50% 50%;
}

/*styling for top Video*/
.videoTop {
    object-fit: cover;
    width: 100%;
    object-position: 50% 50%;
}

/*styling for email newsletter sign up box*/
.node-story-act {
    display: block;
  padding: 15px;
  border: 1px solid #ddd;
  background: #fefefe;
  margin-bottom: 1.5em;
}
.node-story-act .field-display-title {
    font-weight: bold;
  margin-bottom: 15px;
  color: #33333c;
}

.node-story-act #subForm p {
    display: inline-block;
    margin-right: 5px;
}

.node-story-act #subForm .js-cm-submit-button {
    background: #4188bc;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.chart-wrapper {
    border:1px solid #D3D3D3;
    max-width: 100%; /*INPUT: set the width of the chart*/
    margin: 0 auto;
    margin-bottom: 20px;
}

#chart-container{
    height: 300px; /*INPUT: set the height of the chart*/
    max-width: 100%;
}

.head {padding:0px 10px;}

.note {
    font-size: 12px;
    color: #808080;
    line-height: 14px;
    padding:0px 10px 10px 10px;
}

#credit {
    font-size: 10px;
    padding-top: 5px;
    text-align: right;
}

.headline {
    font-size: 18px;
    font-weight: normal;
    padding-bottom: 10px;
    padding-top: 10px;
    line-height: 24px;
}

#text {
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
}

/*overwriting header colors on video*/

.header .story__meta.field-date-published span {
  color: #FFF;
}

.header .story__meta.field-fc-story-creators span {
  color: #FFF;
}

.header .story__meta a {
  color: #FFF;
}



@media (max-width: 400px ) {
    .headline {font-size: 16px; line-height: 20px; padding-bottom: 5px;}
    #text {font-size: 12px;line-height: 14px;}
}

@media (min-width: 601px) {
  .node-story-act.story-act-nid-172759 {
  float: left;
  width: 48%;
  margin-right: 2%;
  }
}

@media (max-width: 700px ) {
/* TOP VIDEO: disable top photo and replaced with video in html */
  /*.header.cover {
  background-image: url('../images/01-d1-forest-and-sky.jpg');
  }*/
  .header.cover .container {min-height: 250px;}
  .trigger {width:90%;}
}

@media (max-width: 1100px ) {
  .videoTop {
    height:600px;
    width: 100%;
  }
}

