/* Magnific Popup CSS */
.overlay-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  filter: alpha(opacity=80); }

.overlay-white{

  max-width: 960px;
  background: #fff;
  margin: 0 auto;
  padding: 20px;
  min-height: 100px;
  position: relative;
}
.overlay-white-500{
  width: 500px;
  min-height: 100px;
}
.overlay-white hr{
  border-color:#fff;
  background: #ddd;
}
.overlay-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.overlay-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.overlay-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.overlay-align-top .overlay-container:before {
  display: none; }

.overlay-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.overlay-inline-holder .overlay-content, .overlay-ajax-holder .overlay-content {
  width: 100%;
  cursor: auto; }

.overlay-ajax-cur {
  cursor: progress; }

.overlay-zoom-out-cur, .overlay-zoom-out-cur .overlay-image-holder .overlay-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.overlay-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.overlay-auto-cursor .overlay-content {
  cursor: auto; }

.overlay-close, .overlay-arrow, .overlay-preloader, .overlay-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.overlay-loading.overlay-figure {
  display: none; }

.overlay-hide {
  display: none !important; }

.overlay-preloader {
  color: #cccccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .overlay-preloader a {
    color: #cccccc; }
    .overlay-preloader a:hover {
      color: white; }

.overlay-s-ready .overlay-preloader {
  display: none; }

.overlay-s-error .overlay-content {
  display: none; }

button.overlay-close, button.overlay-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none; }
button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.overlay-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  padding: 0 0 18px 10px;
  color: white;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace; }
  .overlay-close:hover, .overlay-close:focus {
    opacity: 1; }
  .overlay-close:active {
    top: 1px; }

.overlay-close-btn-in .overlay-close {
  color: #333333; }

.overlay-image-holder .overlay-close, .overlay-iframe-holder .overlay-close {
  color: white;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.overlay-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #cccccc;
  font-size: 12px;
  line-height: 18px; }

.overlay-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  .overlay-arrow:active {
    margin-top: -54px; }
  .overlay-arrow:hover, .overlay-arrow:focus {
    opacity: 1; }
  .overlay-arrow:before, .overlay-arrow:after, .overlay-arrow .overlay-b, .overlay-arrow .overlay-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .overlay-arrow:after, .overlay-arrow .overlay-a {
    border-top-width: 30px;
    border-bottom-width: 30px;
    top: 8px; }
  .overlay-arrow:before, .overlay-arrow .overlay-b {
    border-top-width: 30px;
    border-bottom-width: 30px; }

.overlay-arrow-left {
  left: 0; }
  .overlay-arrow-left:after, .overlay-arrow-left .overlay-a {
    border-right: 30px solid white;
    margin-left: 31px; }


.overlay-arrow-right {
  right: 0; }
  .overlay-arrow-right:after, .overlay-arrow-right .overlay-a {
    border-left: 30px solid white;
    margin-left: 39px; }


.overlay-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .overlay-iframe-holder .overlay-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .overlay-iframe-holder .overlay-close {
    top: -40px; }

.overlay-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .overlay-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: black; }

/* Main image in popup */
img.overlay-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.overlay-figure {
  line-height: 0; }
  .overlay-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444444; }
  .overlay-figure small {
    color: #bdbdbd;
    display: block;
    font-size: 12px;
    line-height: 14px; }

.overlay-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.overlay-title {
  text-align: left;
  line-height: 18px;
  color: #f3f3f3;
  word-wrap: break-word;
  padding-right: 36px; }

.overlay-image-holder .overlay-content {
  max-width: 100%; }

.overlay-gallery .overlay-image-holder .overlay-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .overlay-img-mobile .overlay-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .overlay-img-mobile img.overlay-img {
    padding: 0; }
  .overlay-img-mobile .overlay-figure {
    /* The shadow behind the image */ }
    .overlay-img-mobile .overlay-figure:after {
      top: 0;
      bottom: 0; }
    .overlay-img-mobile .overlay-figure small {
      display: inline;
      margin-left: 5px; }
  .overlay-img-mobile .overlay-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .overlay-img-mobile .overlay-bottom-bar:empty {
      padding: 0; }
  .overlay-img-mobile .overlay-counter {
    right: 5px;
    top: 3px; }
  .overlay-img-mobile .overlay-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

@media all and (max-width: 900px) {
  .overlay-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .overlay-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .overlay-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .overlay-container {
    padding-left: 6px;
    padding-right: 6px; } }

.overlay-ie7 .overlay-img {
  padding: 0; }
.overlay-ie7 .overlay-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px; }
.overlay-ie7 .overlay-container {
  padding: 0; }
.overlay-ie7 .overlay-content {
  padding-top: 44px; }
.overlay-ie7 .overlay-close {
  top: 0;
  right: 0;
  padding-top: 0; }

  /* OVERLAY STUFF */
.cds-photo-overlay .overlay-content{
  width: 100%;
  height: 98%;
  background: #fff;
}

div.cds-overlay-right-content {
  margin-top: 50px;

}

.cds-photo-overlay  button.overlay-arrow.overlay-arrow-right.overlay-prevent-close {
  right: 20%;
}

table.table {
  padding: 20px;
  font-size: 11px;

}
table.table tr {
  border: none!important;
  margin: 0 auto;
}
table.table td {
  border: none!important;
  padding: 0;
}
table.table td:nth-child(1) {
  color: #999;
  padding-right: 5px;
}

div.meta-table {
  padding: 10px 20px;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}


.cds-photo-overlay  .overlay-close {
  font-size: 50px;
  color: #fff!important;
  opacity: 1;
  width: 80%!important;
  left: 0;
  cursor: pointer!important;
}

div.cds-overlay-wrapper {
  position: relative;
  height: 100%;
}
div.cds-overlay-content {
  position: relative;
  height: 100%;
  min-width: 960px!important;
}
.cds-overlay-left{
  width: 80%!important;
  background: #000;
  height: 100%;
  position: relative;
  float: left;
}



.cds-overlay-right{
  width: 20%!important;
  float: right;
  min-height: 300px;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  position: relative;
  background: #fff;
}

div.overlay_meta_wrapper {
  position: relative;
  height: 100%!important;
  max-height: 100%!important;
}
tbody{
  border:none!important;
}

div.cds-overlay-fake-table {
  display: table;
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  max-height: 100%!important;
}
div.cds-overlay-fake-table-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  position: relative;
  max-height: 300px!important;
}
.cds-photo-overlay  img.overlay-img{
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto!important;
  max-height: 100%;
}
.overlay_photo_meta{

}
.overlay_photo_meta li span.key {
  float: left;
  width: 100%;
  color: #444;
  padding-bottom: 3px;
  font-weight: bold;
  font-size: 15px;
}
.overlay_photo_meta li span.value {
  display: inline-block;
  word-wrap:break-word;

}
.overlay_photo_meta  li {
  display: inline-block!important;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding: 5px 0;
}

.overlay-counter{
  color: #666;
  float: left;
  position: relative;
  padding: 14px;

}
p.overlay_description {
  padding: 10px;
  font-size: 16px;
  margin-bottom: 0; 
}

ul.overlay_photo_meta {
  list-style: none;
  padding: 0 10px 10px 10px;
  margin: 0;
}

div.copyright-notice {
  padding: 0 10px 0px 10px;
  position: relative;
  bottom: 0;
}

a.open-metadata-table {
  display: block;
  background: #f9f9f9;
  padding: 10px;
  color: #666;
}
a.open-metadata-table:hover {
  text-decoration: none;
  background-color: #dfe2df;
}

.cds-photo-overlay  .overlay-close{
   
    text-align: right;
}

/* if the screen is <= 1400 */
@media (max-width: 1400px) {
    .cds-photo-overlay .cds-overlay-left{
    width: 70%!important;
    max-width: 1000px;
  }
  .cds-photo-overlay .cds-overlay-right{
    width: 30%!important;
  }
  .cds-photo-overlay div.cds-overlay-wrapper {
    position: relative;

  }
  .cds-photo-overlay  .overlay-close{
    width: 70%!important;
    text-align: right;
  }
 .cds-photo-overlay  button.overlay-arrow.overlay-arrow-right.overlay-prevent-close {
  right: 30%;
 }
}
@media (max-width: 960px) {
   .cds-photo-overlay .cds-overlay-left{
    width: 100%!important;
    background: transparent!important;
  }
  .cds-photo-overlay .cds-overlay-right{
    display: none;
  }
  .cds-photo-overlay div.cds-overlay-wrapper {
    position: relative;
  }
 .cds-photo-overlay  button.overlay-arrow.overlay-arrow-right.overlay-prevent-close {
  right: 0%;
 }
.cds-photo-overlay  .overlay-close{
    width: 100%!important;
    text-align: right;
    text-shadow: 0px 1px 1px #666;
}
 .cds-photo-overlay  img.overlay-img{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto!important;
  max-height: 100%!important;
 }
 div.cds-overlay-fake-table {
    min-height: 200px!important;
 }
 div.cds-overlay-fake-table-cell {
  min-height: 200px!important;
 }
 .cds-photo-overlay .overlay-content{
  background: #000!important;
 }
 div.cds-overlay-content {
  position: relative;
  height: 100%;
  min-width: 300px!important;
 }
}
/* Widget stuff */

.overlay-white-500 input, .overlay-white-500 textarea{
    resize:none;
    width:100%;
}
.overlay-white-500 textarea{
    height:80px;
}
.overlay-white h4{
    font-style:normal!important
}

.download-sizes{
	list-style: none;
	margin: 0;
    padding:0;
	display: inline-block;
}
.download-sizes .preview-small img{

	width: 20px;
	height:20px;
	display: inline-block;
}
.download-sizes .preview-medium img{

	width: 40px;
	height:40px;
	display: inline-block;
}
.download-sizes .preview-large img{

	width: 60px;
	height:60px;
	display: inline-block;
}
.download-sizes .preview-original img{
	width: 80px;
	height:80px;
	display: inline-block;
}
.download-sizes li{
	display: inline!important;
	padding-right: 20px;
}
.download-sizes li a{
    text-decoration:none;
}
.download-sizes li a:hover{
	text-decoration: none;
	color: #666;
}
.download-sizes li a:hover img{
	opacity: 0.6;
}

.meta-table-single {
	font-size: 14px!important;
}
.info-list{
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

table.meta-table-single td:nth-child(1) {
  color: #000!important;
  padding-right: 5px;
}
.template-close{
  position: relative;
}
.template-close:after{
  content: "";
  position: absolute!important;
  width: 0px;
  height: 0px;
  top: 15px;
  right: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #666;
}
.template-open{
  position: relative;
}
.template-open:after{
  content: "";
  position: absolute!important;
  width: 0px;
  height: 0px;
  top: 15px;
  right: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #666;
}
