/*
 * DEFAULT WQED THEME COLORS
 * Blue: #1E549C
 * Dark Blue: #003F6A
 */

* {
  box-sizing: border-box;
}

html {
  background-color: #1E549C;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  color: #363636;
  font-family: 'Open Sans', sans-serif;
  font-size: 100%;
  font-weight : normal;
  line-height: 1.5em;
  margin: 0;
  min-height: 100%;
  padding: 0;
}

a,
a:active,
a:visited {
  color: #003F6A;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: none;
  transition-duration: 0.5s;
  -webkit-transition-duration: 0.5s;
}

img,
video {
  height: auto;
  max-width: 100%;
  width: auto;
}

h1 {
  line-height: auto;
  margin: 0;
}

h2 {
  color: #003F6A;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5em;
  line-height: 1.4em;
}

h3 {
  color: #003F6A;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  line-height: 1.2em;
}

h4 {
  color: #003F6A;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  line-height: 1em;
}

::selection {
  background-color: #003F6A;
  color: #FFFFFF;
}
::-moz-selection {
  background-color: #003F6A;
  color: #FFFFFF;
}

#skip-link a {
  color: #FFFFFF;
}

.overlay {
  background-color: rgba(0, 0, 0, .9);
  color: #ffffff;
  display: none;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 200;
}

.wide-wrapper {

}

.wrapper {
  margin: 0 auto;
  max-width: 1064px;
  overflow: auto;
  position: relative;
  width: 100%;
}

#main-content--wrapper {
  background-color: #fff;
  padding: 0 0 2em;
}

#main-content {
  margin: 0 auto;
  max-width: 1064px;
  overflow: auto;
  padding: 1em 1em 2em;
  position: relative;
  width: 100%;
}

#footer-wrapper {
  background-color: #eeeeee;
  color: #FFFFFF;
}

#footer {
  margin-bottom: 0;
  padding: 0 1em;
}

#footer p {
  clear: both;
  text-align: center;
}

#wqed-overlay-content {
  background-color: #FFFFFF;
  border-radius: 0.5em;
  height: 95%;
  margin: 1.25% auto;
  padding: 1em;
  position: relative;
  text-align: center;
  width: 95%;
}

#wqed-overlay-content iframe.youtube,
#wqed-overlay-content #ll-player {
  height: calc(100% - 3em);
  width: 100%;
}

#wqed-overlay-content iframe.pbs {
  height: calc(100% - 4em);
  max-width: 100%;
}


#overlay-image {
  height: 90%;
}
#overlay-image div {
  height: 100%;
}
#overlay-image * {
  max-height: 100%;
}

iframe {
  max-width: 100%;
  
}

#page {
  min-height: 100%;
}

.overlay-player-launch {
  position: relative;
  display: inline-block;
}

.overlay-player-launch:before {
  background: transparent url(../images/play-overlay.png) center center no-repeat;
  background-size: 100%;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.grid-list-2.overlay-player-launch:before {
  width: calc(50% - 5px);
}

@media screen and (min-width: 1290px) {
  #main-content--wrapper {
    padding: 55px 0 2em;
  }
  
  #main-content {
    padding: 1em 0 2em;
  }
}

/** GRID OF IMAGES * ROW OF 2 OR 3 **/

.grid-list-2 img,
.pane-content .grid-list-2 img {
  float: left;
  height: auto;
  max-width: 100%;
	padding-bottom: 5px;
}

@media screen and (min-width: 750px) {
  .grid-list-2 img,
  .pane-content .grid-list-2 img {
    max-width: calc(50% - 5px);
    padding-right: 5px;
    width: 530px;
  }
  
  .grid-list-2:nth-child(2n + 1) img {
	clear: both;
  }
}

.grid-list-2 img:hover {
  animation: flash 1.5s;
  -webkit-animation: flash 1.5s;
  opacity: 1;
}

.grid-list-3 img {
  height: auto;
  margin-left: 3px;
  margin-right: 3px;
  max-width: 348px;
  width: 348px;
}

.grid-list-3 img:hover {
  -webkit-animation: flash 1.5s;
  animation: flash 1.5s;
  opacity: 1;
}

/** TV LANDING PAGE **/

.grid-list-tv img {
  height: auto;
  margin-bottom: 15px;
  max-width: 340px;
  width: 340px;
}

.grid-list-tv img:hover {
  -webkit-animation: flash 1.5s;
  animation: flash 1.5s;
  opacity: 1;
}

.watch-tv-featured--title {
	background-color: #000;
	color: #fff;
	margin-top: -6px;
	padding-left: 10px;
	padding-top: 5px;
}

.watch-tv-featured--title a {
	color: #fff;
}

.watch-tv-featured--date {
	background-color: #000;
	color: #fff;
	font-size: .85em;
	margin-bottom: 10px;
	padding-left: 10px;
	padding-bottom: 5px;
}

@-webkit-keyframes flash {
	0% {
		opacity: .7;
	}
	100% {
		opacity: 1;
	}
}

@keyframes flash {
	0% {
		opacity: .7;
	}
	100% {
		opacity: 1;
	}
}

/** FACEBOOK COMMENTS **/
.fb-comments.fb_iframe_widget {
  display: block;
  margin: auto;
  max-width: 100%;
}
@media screen and (min-width: 1100px) {
  .fb-comments.fb_iframe_widget {
    max-width: 1064px;
  }
}

/** INTERNAL NAVIGATION ANCHOR **/
.internal-nav-target,
.panel-pane.internal-nav-target {
	margin-top: -55px;
	padding-top: calc(55px + 1em);
}

/** CAREERS and INTERNSHIPS **/
.careers--position,
.internship {
  display: none;
}
/** MEDIA PARTNERS **/
#about--media-partners img {
  float: left;
  margin: 0 2em 2em 0;
  width: 250px;
}
/** PASSPORT **/
#passport .passport-google,
#passport .passport-facebook,
#passport .passport-pbs-account {
  border-radius: .5em;
  color: #fff;
  display: inline-block;
  height: 3em;
  line-height: 2em;
  padding: .5em 1em;
  width: 20em;
}
#passport .passport-google { background-color: #dc4e41; }
#passport .passport-facebook { background-color: #3b5998; }
#passport .passport-pbs-account { background-color: #3eafe7; }

#passport .passport-google img,
#passport .passport-facebook img,
#passport .passport-pbs-account img {
  border-right: 1px solid #fff;
  height: 2em;
  margin-right: .5em;
  padding-right: .5em;
}

#passport .passport-google .sign-in,
#passport .passport-facebook .sign-in,
#passport .passport-pbs-account .sign-in {
  display: inline-block;
  position: absolute;
}

/** SCHEDULE GRID **/

/* Program titles */
.tvss-namespace #scheduleV .schedulesContent .schedulesRow .calendarEntry span.gridProgram {
  color: #003F6A;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Episode titles */
.tvss-namespace #scheduleV .schedulesContent .schedulesRow .calendarEntry div.description {
  color: #1E549C;
}

/* Channel div */
.tvss-namespace #scheduleV #schedulesList div.scheduleStations {
  background-color: #fff;
}
/* Channel div */
.tvss-namespace #scheduleV #schedulesList div.scheduleStations .station {
  background-color: #1E549C;
  border: none;
}
/* Channel name and number */
.page-node .tvss-namespace #scheduleV #schedulesList .scheduleStations .station span,
.tvss-namespace #scheduleV #schedulesList .scheduleStations .station span.stationTitle {
  color: #FFFFFF;
}

/** FOOTER MENU **/
#footer-wrapper {
  background-color: #1E549C;
}

#footer .menu {
  list-style: none;
  padding: 0;
  text-transform: uppercase;
}

#footer .menu li {
  list-style: none;
}

#footer .menu .menu {
  display: none;
  padding: 0 1em;
  text-transform: none;
}

#footer .menu a,
#footer .menu a:active,
#footer .menu a:visited {
  color: #FFFFFF;
}

#footer .menu a:hover {
  border-bottom: 3px solid #fff;
  text-decoration: none;
  transition-duration: 0.1s;
  -webkit-transition-duration: 0.1s;
}

@media screen and (min-width: 800px) {
  #footer .menu {
    display: inline-block;
    float: left;
    width: 100%;
  }
  #footer .menu li {
    float: left;
    margin: 0 1em 0 0;
    width: calc(33.33% - 1em);
  }
  #footer .menu .menu {
    display: inline;
    width: 100%;
  }
  #footer .menu .menu li {
    width: 100%;
  }
}