.lightbox-nav {
  position: relative;
  margin-bottom: 21px; /* the font-size of .btn-xs */
  height: 22px;
  text-align: center;
  font-size: 0; /* prevent the otherwise inherited font-size and line-height from adding extra space to the bottom of this div */
}

.lightbox-nav .btn-group {
  vertical-align: top;
}

.lightbox-nav .close {
  /* absolutely position this in order to center the nav buttons */
  font-size:50px;
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 0px;
}

.lightbox-image-container {
  position: relative;
  text-align: center; /* center the image */
  overflow: hidden;
}

/* the caption overlays the top left corner of the image */
.lightbox-image-caption {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0.5em 0.9em; /* the left and right margins are offset by 0.4em for the span box-shadow */
  color: #000;
  font-size: 1.5em;
  font-weight: bold;
  text-align: left;
  text-shadow: 0.1em 0.1em 0.2em rgba(255, 255, 255, 0.5);
}

.lightbox-image-caption span {
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  background-color: rgba(255, 255, 255, 0.75);
  /* pad the left and right of each line of text */
  box-shadow: 0.4em 0 0 rgba(255, 255, 255, 0.75),
    -0.4em 0 0 rgba(255, 255, 255, 0.75);
}

.lightbox-modal {
	background: rgba(0,0,0,.8);
	border: 0;
}
.lightbox-modal .modal-content {
	background: transparent;
	box-shadow: none;
	border: 0;
}
.lightbox-modal .lightbox-nav {
	position: absolute;
	width: 40px;
	height: 40px;
	left: calc(50% - 20px);
    top: -25px;
	margin: 0;
    background: rgba(200,200,200,.6);
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
    z-index: 9;
}
.lightbox-modal .lightbox-nav .close {
	line-height: 30px;
    width: 30px;
    top: 5px;
    right: 5px;
    text-shadow: none;
    text-align: center;
    vertical-align: middle;
}

@media only screen and (max-width: 767px){
	.lightbox-modal .lightbox-nav {
		width: 30px;
		height: 30px;
		left: calc(50% - 15px);
	    top: -7px;
	}
	.lightbox-modal .lightbox-nav .close {
		font-size: 34px;
		line-height: 20px;
	    width: 20px;
	    top: 5px;
	    right: 5px;
	}
}
@media only screen and (max-width: 687px) {
	.lightbox-modal {
		left: 0;
		width: 100%;
	}
}
