/* @override http://gothamist.com/transfer/gallery/gallery.css */
#imgContainer {position: relative}

/**************************** Image gallery - lightbox ****************************/

/* Lightbox */
html.has-lightbox {
  overflow: hidden;
}
html.has-lightbox .container {
  display: none;
}
html.has-lightbox .last-caption {
  display: none;
}
.has-lightbox .lightbox {
  visibility: visible;
}
.lightbox {
  background: rgba(0, 0, 0, 1);
  color: #b2b2b2;
  height: 100%;
  left: 0;
  position: fixed;
  width: 100%;
  top: 0;
  visibility: hidden;
  z-index: 40000;
  margin:0;
  padding:0;
  min-width:1000px;
}
.lightbox-inner {
/*
  height: 100%;
  position: fixed;
  width: 100%
*/
}
.lb-pic {
/*   padding: 20px; */
	
}  
.lightbox .viewport {
  position:absolute;
}

/* hide ad when lightbox is hidden */
.lightbox .lb-rh {
/*   display: none; */
}
.has-lightbox .lightbox .lb-rh {
  display: block;
}
#lb-logo {
	height:170px;
	margin: 15px 15px 30px 12px;
	width: 170px;
}
/* Gallery image */
.lb-pic {
  float: left;
  height: 100%;
  width: 100%;
  text-align: right;
}
.lb-pic figure {
/*   border: 1px solid #000; */
  display: block !important; /* center-align image in IE 8 and below */
  margin-right: 350px;
  position: relative;
  height: 100%;
  text-align: center;
}
.sponsor {
  left: 0;
  position: absolute;
  top: 0;
  z-index: 5;
}
.sponsor img {
  height: auto;
  width: auto;
}
.lb-pic .image-credit {
  background: #000;
  color: #fff;
  display: inline-block;
  margin: 0 10px 0;
  padding: 0 10px;
}
.image-prev-wrapper {
  position: absolute;
  cursor: pointer;
  display: block;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
}
.image-next-wrapper {
  position: absolute;
  cursor: pointer;
  display: block;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}
.image-prev, .image-next {
  background-image: url(arrows_sprite.png);
  background-repeat: no-repeat;
  display: block;
  height: 50px;
  width: 50px;
  position: relative;
  top: 45%;
  z-index: 2;
}
.image-next {
  float: right;
  right: 10px;
  background-position: -50px 0px;
}
.image-prev {
  float: left;
  left: 10px;
}

  /* gallery body */
.lb-body {
/*   background-color: #383838; */
  float: left;
  height: 100%;
  margin-left: -350px;
  position: relative;
  width: 350px;
}
.lb-body-inner {
  background:rgba(255,255,255,.8);
  height:100%;
  margin-left:0;
  padding: 10px;
}
.lb-txt {
  margin: 0 10px;
}
#entry #stage .lb-txt h1.gallery-title h1 {
  color: #1a1a1a;
  font-size: 24px;
  cursor: pointer
}

/* Viewport */
.viewports {
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%
}
.viewport {
  display: none;
  position: absolute;
}
.viewports .active {
  display: inline-block;
}
.viewport-img {
  margin: 0 auto;
}
img.viewport-img  {
/*
  height: 100%;
  width: 100%;
*/
  max-width: 100%;
  max-height: 100%;
  height: auto;
  vertical-align: middle;
}
.loading {
  background-image: url(../gfx/loading.gif);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  height: 100%;
}
.end-screen {
/*   background: #202020; */
}

/* Pagination */
.lb-body .pagination {
  border: 0;
  margin: 0;
}
.lb-body .btn-left, .lb-body .btn-right {
  float: left;
  margin: 0 5px 0 0;
}
.lb-body .showing {
  font-size: 0.84615em;
  margin-top: 3px;
  vertical-align: top;
  text-transform: uppercase;
}
.lb-body .showing p {
  margin-bottom: 0;
  color: #fff;
}
.btn-close, .btn-fullscreen-thumb {
  cursor: pointer;
  margin: 10px;
  background: black;
  padding:4px 8px 4px;
  color: white;
}
.btn-close:hover, .btn-fullscreen-thumb:hover {
	background: #990000;
}

.btn-close {
	display:block;
	float:right;
	}

/* generic social media links */

.lightbox .social .addthis_button_tweet {
	clear: both;
	float: left;
}

.lightbox .social .fb-like {
	float: right;
}

/* Thumbnails */
.lightbox .gallery-thumbs {
  margin: 0;
  width: 305px;
}
.lightbox .gallery-thumb {
  margin: 0 7px 0 0;
}

/* Caption */
.lb-body .gallery-caption, .gallery-title, .related_article h1, .restart-btn h1 {
  color: #fff;
}
.gallery-title, .related_article h1, restart-btn h1, #entry #stage .gallery-title h1 {
  font-size: 18px;
  line-height: 1;
  margin-top: 0em;
}
.lightbox .gallery-caption {
  display: none;
}
.gallery-captions {
  display: block;
  /*padding: 10px 8px;*/
  /*background-color: #fff;*/
  color: #333;
  margin-bottom: 15px;
  max-height: 300px;
  overflow: auto;
}
.gallery-captions p {
  color: #010101;
  margin: 0px;
  font-size: 14px;
  line-height: 1.5em;
}
.lightbox .image-credit {
  bottom: 0;
  position: absolute;
  right: -10px;
}
.restart-btn {
  width: 187px;
  height: 42px;
  text-align: center;
  background-image: url(arrows_sprite.png);
  background-repeat: no-repeat;
  background-position: 0px -55px;
  display: none;
  margin: 30px auto;
  cursor: pointer;
}
.end-screen .restart-btn {
  display: block;
}
.end-screen .image-next {
  display: none;
}
.end-screen .image-prev {
  display: none;
}
.touch .end-screen .restart-btn {
	display: block;
}
/* Ads */
.lb-rh {
  bottom: 0;
  position: absolute;
  width: 100%;
  margin-bottom: 10px;
  margin-left: 10px
}
.lb-body .social {
  margin-top: 20px;
}
.lb-rh .ad {
  margin: 0 auto;
}
.btn-fullscreen-thumb {
	position:absolute;
	right: 10px;
	top: 10px;
	width:200px;
	height:20px;
	text-align: center;
	text-transform: uppercase;
	padding: 10px;
	font-weight: bold;
	font-style: italic;
}
.lightbox .btn-fullscreen-thumb {
  right: 10px;
  top: 10px;
}
.lightbox .btn-fullscreen-thumb {
  display: none;
}
#galleryAd {background:black;width:/* 970px */100%;height:/* 650px */100%;z-index:10;display:none;position:absolute}
#galleryAd .galleryAdClose {color:white;position:absolute;top:10px;right:10px;}
#galleryAd .galleryAdUnit {background:gray;height:250px;width:300px;margin:200px 335px;}

  /* only display if supported */
.fullscreen .lightbox .btn-fullscreen-thumb {
  display: block;
}
  /* Related Articles */
.related_article {
  height: auto;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  position: relative;
  width: 745px;
}
.related_article h1 {
  border-bottom: 1px solid #dadada;
  margin: 0;
  padding: 0 0 10px 0;
  font-size: 30px;
}
.related_article ul {
  list-style-type: none;
  margin: 40px 0 0 0;
  padding: 0;
  width: 100%;
}
.related_article li {
  float: left;
}
.related_article li.last {
  margin: 0 0 10px 0;
}
.related_article li img {
  float: left;
  margin-bottom: 10px;
}
.related_article p {
  color: #fff;
  margin: 0.75em;
  float: left;
  font-size: 16px;
  line-height: 1.5em;
}
.ie8 .related_article, .ie7 .related_article {
  width: 600px;
}
.ie8 .related_article li, .ie7 .related_article li {
  margin: 0 20px 10px 0;
  width: 180px;
}
.ie8 .related_article li.portrait-caption, 
.ie7  .related_article li.portrait-caption  {
  display: block;
}
.ie8 .related_article li img, .ie7 .related_article li img{
  width: 180px;
  height: 120px;
}
.ie8 .related_article li.odd, .ie7 .related_article li.odd {
  margin: 0 20px 10px 0;
}

/* if touch event is enabled */
.touch .image-prev, .touch  .image-next, .touch .btn-close {
  opacity: 1;
}
.touch .related_article {
  width: 600px;
}
.touch .related_article li {
  margin: 0 20px 10px 0;
  width: 180px;
}
.touch .related_article li img {
  width: 180px;
  height: 120px;
}
.touch .related_article li.odd {
  margin: 0 20px 10px 0;
}
.touch .related_article li.portrait-caption {
  display: block;
}
.touch .gallery-captions .active {
  max-height: 100px;
  overflow: auto;
}

/* CSS Transitions */
.lightbox figure:hover .btn-fullscreen-thumb, .lightbox figure:hover .image-prev,
.lightbox figure:hover .image-next {
  opacity: 1;
}

.image-prev, .image-next, .lightbox .btn-fullscreen-thumb {
  opacity: 0;
  transition: opacity .2s;
  -moz-transition: opacity .2s; /* Firefox 4 */
  -webkit-transition: opacity .2s; /* Safari and Chrome */
  -o-transition: opacity .2s; /* Opera */
}

/***** MEDIA QUERIES *****/
  /* tablet portrait */
@media only screen and (min-device-width: 767px) and (orientation: portrait) {
  .lb-pic, .lb-body {
    float: none;
  }
  .lb-pic figure {
    margin: 0;
  }
  .lb-body {
    bottom: 0;
    left: 0;
    height: 270px;
    margin: 0;
    position: absolute;
    overflow: scroll;
    width: 100%;
  }
  .lb-txt, .lb-rh {
    float: left;
  }
    /* this should not invade lb-txt space! */
  .btn-close {
    right: 315px;
  }
  .lb-txt {
    margin-right: 350px;
  }
  .lb-rh {
    margin-top: 10px;
    position: absolute;
    right: 0;
    top: 0;
    width: 320px;
  }
  .related_article {
    width: 385px;
  }
  .related_article li {
    margin: 0 20px 10px 0;
    width: 180px;
  }
  .related_article li.portrait-caption {
    display: none;
  }
  .related_article h1 {
    font-size: 28px;
  }
  .related_article p {
    font-size: 14px;
    line-height: 1.2em;
  }
  .related_article li img {
    width: 180px;
    height: 120px;
}
  .related_article li.last {
    margin: 0 20px 10px 0;
  }
  .related_article li.odd {
    margin: 0 0 10px 0;
  }
  .related_article ul {
    margin: 20px 0 0 0;
  }
}

  /* tablet landscape */
@media only screen and (min-device-width: 1024px) and (orientation: landscape) {
  .lb-pic, .lb-body {
    float: left;
  }
  .lb-pic figure {
    margin-right: 350px;
  }
  .lb-body {
    float: left;
    margin-left: -350px;
    width: 350px;
  }
  .lb-body .gallery-caption h1 {
    margin-right: 1em;
  }
  .lb-body .gallery-caption h1 {
    display: block;
  }
  .related_article{
  	width: 585px;
  }
  .related_article li {
	margin: 0 20px 10px 0;
	width: 180px;
  }
  .related_article li.portrait-caption {
	display: block;
  }
  .related_article li img {
  	width: 180px;
  	height: 120px;
}
  .related_article li.odd {
  	margin: 0 20px 10px 0;
  }
}

@media only screen and (max-height: 650px) and (orientation: landscape) {
  /* hide title when height is 650px or less */
  .gallery-title {
    display: none;
  }
}

@media only screen and (max-height: 555px) and (orientation: landscape) {
  .lb-rh {
    display: none;
  }
  
}

@media only screen and (max-width: 650px) and (orientation: portrait) {
  .lb-body .gallery-caption p {
    font-size: 90%;
  }
  .lb-rh, .btn-fullscreen-thumb {
    display: none;
  }
  .lb-txt {
    margin-right: 10px;
  }
  .lb-body {
    overflow: auto;
  }
  .btn-close {
    right: 6px;
  }
}
  /* large screen */
@media only screen and (min-width : 1600px) {
  /* placeholder */
  .related_article{
  	width: 745px;
  }
  .related_article li {
	  margin: 0 35px 10px 0;
	  width: 225px;
	}
.related_article li.odd {
	  margin: 0 35px 10px 0;
	}
  .related_article li img{
  	width: 225px;
  	height: 150px;
  }
}