.fancybox-thumbs {
	background: rgba(0, 0, 0, 0.3) !important;
}


.fancybox-white .fancybox-bg {
  background-color: #fff;
}

.fancybox-white.fancybox-is-open .fancybox-bg {
  opacity: 1;
}

.fancybox-white .fancybox-button,
.fancybox-white .fancybox-navigation button {
  background: transparent;
  color: #444;
  padding: 8px;
}

.fancybox-white .fancybox-button:hover:not([disabled]) {
	color: #000;
}

.fancybox-white .fancybox-navigation button::before {
  background: transparent;
}

.fancybox-white .fancybox-share {
  background: #fff;
}

.fancybox-white .fancybox-close-small:after {
  font-size:25px;
}

.fancybox-sidebar .fancybox-button {
  background: transparent;
  color: #333;
}

.fancybox-sidebar .fancybox-toolbar .fancybox-button:hover {
  background: rgba(223, 223, 223, 0.5);
  color: #c11c95;
}

/* Make close button a bit bigger */
.fancybox-button--close {
  padding: 7px;
}

/* Navigation arrows */
.fancybox-sidebar .fancybox-navigation .fancybox-button {
  z-index: 99996;
}

.fancybox-sidebar .fancybox-navigation .fancybox-button div {
  padding: 0;
}

.fancybox-sidebar .fancybox-navigation .fancybox-button[disabled],
.fancybox-sidebar .fancybox-navigation .fancybox-button[disabled]:hover {
  color: #888;
}

.fancybox-sidebar .fancybox-navigation .fancybox-button:hover {
  color: #000;
}

/* Change backdrop color */
.fancybox-sidebar .fancybox-bg {
  background: #eee;
}

/* Initially hide the caption */
.fancybox-sidebar .caption {
  display: none;
}

/* Change position and design of caption area */
.fancybox-sidebar .fancybox-caption {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  padding: 0;
  width: 300px;
  background: #eee;
  color: #333;
  box-shadow: 0 0 20px #888;
  z-index: 99996;
  text-align: left;
  
  /* Hide next to right edge */
  transform: translate3d(320px, 0, 0);
}

.fancybox-sidebar .fancybox-caption::before {
  display: none;
}

.fancybox-sidebar .fancybox-caption > div {
  margin-top: 44px;
  padding: 20px;
  max-height: calc(100vh - 44px);
  overflow: auto;
}

/* Overwrite the default animation */
.fancybox-sidebar .fancybox-show-caption .fancybox-caption,
.fancybox-sidebar .fancybox-caption {
  transition: transform .2s;
}

/* Reveal caption */
.fancybox-sidebar .fancybox-show-caption.fancybox-vertical-caption .fancybox-caption {
  transform: translate3d(0, 0, 0);
}

/* Styling of caption content */
.fancybox-sidebar .fancybox-caption a {
  color: #333;
}

.fancybox-sidebar .fancy-nav a {
  text-decoration: none;
  font-weight: normal;
  font-size: 20px;
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #444;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 18px;
  text-align: center;
  -moz-user-select: none;
  user-select: none;
  cursor: pointer;
  outline: none;
}

.fancybox-sidebar .fancy-nav a:hover {
  text-decoration: none;
}

/* Background color */
.fancybox-classic .fancybox-bg {
  background-color: #fff;
}

/* Move counter to the right */
.fancybox-classic .fancybox-infobar {
  left: auto;
  right: 0;
}

/* Add shadow around image, but hide it while zooming */
.fancybox-classic .fancybox-image-wrap {
  box-shadow: rgba(0, 0, 0, 0.8) 0px 5px 25px;
}

.fancybox-classic .fancybox-is-scaling .fancybox-image-wrap {
  box-shadow: none;
}

/* Hide elements while zooming or when zoomed-in */
.fancybox-classic .fancybox-is-scaling .fancybox-item,
.fancybox-classic .fancybox-can-drag .fancybox-item {
  display: none !important;
}

/* Style close button */
.fancybox-classic .fancybox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  background-image: url('fancybox_sprite.png');
  z-index: 2;
}

/* Style navigation elements */
.fancybox-classic .fancybox-nav {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.fancybox-classic .fancybox-prev {
  left: 0;
}

.fancybox-classic .fancybox-next {
  right: 0;
}

.fancybox-classic .fancybox-nav span {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 34px;
  margin-top: -18px;
  cursor: pointer;
  visibility: hidden;
}

.fancybox-classic .fancybox-prev span, .fancybox-next span {
  background-image : url('fancybox_sprite.png');
}

.fancybox-classic .fancybox-prev span {
  left: 10px;
  background-position: 0 -36px;
}

.fancybox-classic .fancybox-next span {
  right: 10px;
  background-position: 0 -72px;
}

.fancybox-classic .fancybox-nav:hover span {
  visibility: visible;
}


@media all and (min-width: 800px) {

  .fancybox-horizontal .fancybox-thumbs {
    top: auto;
    width: auto;
    bottom: 0;
    left: 0;
    right : 0;
    height: 95px;
    padding: 10px 10px 5px 10px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
  }
	
  .fancybox-horizontal.fancybox-show-thumbs .fancybox-inner {
    right: 0;
    bottom: 95px;
  }

  /* Give space around main area */
  .fancybox-layout-desc .fancybox-outer {
    top: 50px;
    left: 50px;
    bottom: 50px;
    right: 50px;
    margin: auto;
    max-width: 1180px;
    max-height: 495px;
    overflow: visible;
    background: #fff;
    box-shadow: 10px 10px 15px rgba(0,0,0,0.3);
    transition: opacity .3s;
  }

  /* Make it to fade-out while closing */
  .fancybox-layout-desc.fancybox-is-closing .fancybox-outer {
    opacity: 0;
  }

  /* Set color for background element */
  .fancybox-layout-desc .fancybox-bg {
    background: #f6f6f6;
  }

  .fancybox-layout-desc.fancybox-is-open .fancybox-bg {
    opacity: 1;
  }

  /* Move caption area to the right side */
  .fancybox-layout-desc .fancybox-caption-wrap {
    top: 0;
    right: 44px;
    bottom: 0;
    left: auto;
    width: 256px;
    padding: 0;
    background: #333;
    pointer-events: all; /* Make text selectable */
    border-right: 1px solid rgba(255,255,255,.08);
  }

  /* Adjust content area position */
  .fancybox-layout-desc .fancybox-stage {
    right: 300px;
  }

  /* Remove top border from the caption */
  .fancybox-layout-desc .fancybox-caption {
    padding: 30px 20px;
    border: 0;
  }

  /* Align buttons at the right side  */
  .fancybox-layout-desc .fancybox-toolbar {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 44px;
    background: #333;
    border-left: 1px solid #222;
  }

  /* Remove background from all buttons */
  .fancybox-layout-desc .fancybox-button,
  .fancybox-layout-desc .fancybox-navigation button:before {
    background: transparent;
  }

  /* Change arrow color */
  .fancybox-layout-desc .fancybox-navigation button {
    color: #333 !important;
    padding: 10px;
  }

  /* Reposition arrows */
  .fancybox-layout-desc .fancybox-button--arrow_left {
    left: -60px;
  }

  .fancybox-layout-desc .fancybox-button--arrow_right {
    right: -60px;
  }

  .fancybox-layout-desc.fancybox-show-thumbs .fancybox-button--arrow_right {
    right: -272px;
  }

}