/*! fancyBox v2.0.4 fancyapps.com | fancyapps.com/fancybox/#license */

.fb_img {
  max-height: 550px! important;
}













.fancybox-wrap, .fancybox-skin,
.fancybox-outer, .fancybox-inner,
.fancybox-image, .fancybox-wrap iframe,
.fancybox-wrap object, .fancybox-nav,
.fancybox-nav span, .fancybox-tmp {
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  vertical-align: top;
}
.fancybox-wrap {
  top: 0;
  left: 0;
  position: absolute;
  transform: translate3d(0, 0, 0);
  z-index: 8020;
}
.fancybox-skin {
  position: relative;
  background-color: rgba(255, 255, 255, 1);
  text-shadow: none;
}

.fancybox-opened {
  z-index: 8030;
}
.fancybox-opened .fancybox-skin {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fancybox-outer,
.fancybox-inner {
  position: relative;
}
.fancybox-inner {
  overflow: hidden;
}
.fancybox-type-iframe .fancybox-inner {
  -webkit-overflow-scrolling: touch;
}
.fancybox-error {
  margin: 0;
  padding: 50px 100px;
  white-space: nowrap;
}
.fancybox-image,
.fancybox-iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.fancybox-image {
  max-width: 100%;
  max-height: 100%;
}


/* ---------------------------------------------
  Preloader
  --------------------------------------------- */

#fancybox-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -22px;
  margin-left: -22px;
  background-position: 0 -108px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 8060;

  & div {
    width: 64px;
    height: 64px;
    background: transparent url("loader.svg") no-repeat center center;
  }

}



/* ---------------------------------------------
  Кнопка «Закрыть»
  --------------------------------------------- */

.fancybox-close {
  position: absolute;
  top: -15px;
  right: 30px;
  width: 60px;
  height: 15px;
  cursor: pointer;
  z-index: 8040;
  background-color: #d23;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
}
.fancybox-close:hover {
  height: 20px;
  top: -20px;
}
.fancybox-close:after {
  width: 0;
  height: 0;
  content: "";
  display: block;
  position: absolute;
  transition: all 0.3s ease-out;
  border:  10px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 1);
  transform: translateY(10px);
  margin-left: 20px;
  bottom: 0;
}
.fancybox-close:hover:after {
  transform: translateY(0)
}


/* ---------------------------------------------
  Кнопки «Вперед» и «Назад»
  --------------------------------------------- */

.fancybox-nav {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  z-index: 8040;
  display: block;

  &:hover {
    & span {
      visibility: visible;
    }

  }

  /* --- Крыжик --- */

  & span {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 60px;
    margin-top: -30px;
    cursor: pointer;
    z-index: 8040;
    display: block;
    transition: all 0.25s ease-out;

    &:after {
      width: 0;
      height: 0;
      content: "";
      display: block;
      position: absolute;
      transition: all 0.25s ease-out;
      border: 10px solid transparent;
      margin-top: 20px;
      opacity: 0;
    }

    &:hover {
      &:after {
        transform: translateX(0);
        opacity: 1;
      }

    }

  }

}


/* --- Назад  --- */


.fancybox-prev {
  left: -30px;

  & span {
    left: 0;
    box-shadow: -10px 5px 15px rgba(0, 0, 0, 0.25);
    background-color: #d23;

    &:hover {
      width: 20px;
      left: -5px;
    }

    &:after {
      right: 0;
      border-right-color: #fff;
      transform: translateX(10px);
    }

  }

}



/* --- Вперед --- */

.fancybox-next {
  right: -30px;

  & span {
    right: 0;
    box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.15);
    background-color: #d23;


    &:hover {
      width: 20px;
      right: -5px;
    }

    &:after {
      left: 0;
      border-left-color: #fff;
      transform: translateX(-10px);
    }

  }

}


/* ---------------------------------------------
  Вспомогательные обертки
  --------------------------------------------- */

.fancybox-tmp {
  position: absolute;
  top: -99999px;
  left: -99999px;
  max-width: 99999px;
  max-height: 99999px;
  overflow: visible !important;
}
.fancybox-lock {
  /* overflow: hidden; —  Моя старая версия */
  overflow: visible !important;
  width: auto;
}
.fancybox-lock body {
  overflow: hidden !important;
}
.fancybox-lock-test {
  overflow-y: hidden !important;
}



/* Overlay helper */

.fancybox-overlay {
  top: 0;
  left: 0;
  position: absolute;
  overflow: hidden;
  display: none;
  z-index: 8010;
  background-color: rgba(255, 255, 255, 0.7);
}
.fancybox-overlay-fixed {
  position: fixed;
  bottom: 0;
  right: 0;
}
.fancybox-lock .fancybox-overlay {
  overflow: auto;
  overflow-y: scroll;
}

/* --- Текстовые настройки --- */

.fancybox-title {
  visibility: hidden;
  font-weight: 400 !important;
  font-size: 0.9rem;
  position: relative;
  text-shadow: none;
  z-index: 8050;
}
.fancybox-opened .fancybox-title {
  visibility: visible;
}
.fancybox-title-float-wrap {
  position: absolute;
  bottom: 0;
  right: 50%;
  margin-bottom: -45px;
  z-index: 8050;
  text-align: center;
}
.fancybox-title-float-wrap .child {
  display: inline-block;
  margin-right: -100%;
  padding: 5px 25px;
  background-color: #d23;
  border-radius: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  color: #fff;
}
.fancybox-title-outside-wrap {
  position: relative;
  margin-top: 10px;
  color: #fff;
}
.fancybox-title-inside-wrap {
  padding-top: 10px;
}
.fancybox-title-over-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  color: #fff;
  padding: 10px;
  background: #000;
  background: rgba(0, 0, 0, 0.75);
}
