.ilightbox-overlay,
.ilightbox-loader,
.ilightbox-loader *,
.ilightbox-holder,
.ilightbox-holder .ilightbox-container,
.ilightbox-holder .ilightbox-container img.ilightbox-image,
.ilightbox-holder .ilightbox-container .ilightbox-caption,
.ilightbox-toolbar,
.ilightbox-toolbar *,
.ilightbox-thumbnails,
.ilightbox-thumbnails *,
.ilightbox-holder .ilightbox-container .ilightbox-social,
.ilightbox-holder .ilightbox-container .ilightbox-social * {
    float:none;
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    line-height:100%;
    vertical-align:baseline;
    background:transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
       -moz-user-select: -moz-none;
     -khtml-user-select: none;
         -o-user-select: none;
            user-select: none;
}

.ilightbox-overlay,
.ilightbox-loader,
.ilightbox-loader *,
.ilightbox-holder .ilightbox-container .ilightbox-caption,
.ilightbox-toolbar,
.ilightbox-thumbnails,
.ilightbox-thumbnails *,
.ilightbox-holder .ilightbox-container .ilightbox-social {
  transform: translateZ(0);
}

.ilightbox-noscroll {
  overflow: hidden;
}

.ilightbox-closedhand * {
  cursor: url(ilightbox/closedhand.cur),default !important;
}

.ilightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
}

.ilightbox-loader {
  position: fixed;
  z-index: 100005;
  top: 45%;
  left: -192px;
  padding-left: 30px;
  opacity: 0.9;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
  filter: alpha(opacity=90);
  -webkit-border-radius: 0 100px 100px 0;
      border-radius: 0 100px 100px 0;
}

.ilightbox-loader div {
  width: 72px;
  height: 72px;
  -webkit-border-radius: 0 100px 100px 0;
          border-radius: 0 100px 100px 0;
}

.ilightbox-loader.horizontal {
  left: 45%;
  top: -192px;
  padding: 0;
  padding-top: 30px;
  -webkit-border-radius: 0 0 100px 100px;
          border-radius: 0 0 100px 100px;
}

.ilightbox-loader.horizontal  div {
  -webkit-border-radius: 0 0 100px 100px;
          border-radius: 0 0 100px 100px;
}

.ilightbox-toolbar {
  display: none;
  position: fixed;
  z-index: 100010;

  a {
    float: left;
    cursor: pointer;
  }

  .ilightbox-prev-button,
  .ilightbox-next-button {
    display: none;
  }
}

.ilightbox-thumbnails {
  display: block;
  position: fixed;
  z-index: 100009;

  &.ilightbox-horizontal {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;

    .ilightbox-thumbnails-container {
      width: 100%;
      height: 100px;
    }
  }

  &.ilightbox-vertical {
    top: 0;
    right: 0;
    width: 140px;
    height: 100%;
    overflow: hidden;

    .ilightbox-thumbnails-container {
      width: 140px;
      height: 100%;
    }
  }

  .ilightbox-thumbnails-container {
    display: block;
    position: relative;
  }

  .ilightbox-thumbnails-grid {
    display: block;
    position: absolute;
    transform: translateZ(0);

    .ilightbox-thumbnail {
      display: block;
      cursor: pointer;
      padding: 10px;
      position: relative;

      img {
        width: 100%;
        height: 100%;
        -webkit-border-radius: 2px;
                border-radius: 2px;
        -ms-interpolation-mode: bicubic;
      }

      .ilightbox-thumbnail-icon {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: .7;

        &:hover {
          opacity: 1;
        }
      }
    }
  }
}

.ilightbox-holder {
  display: none;
  position: fixed;
  z-index: 100003;
  transform: none;

  &.ilightbox-next, &.ilightbox-prev {
    cursor: pointer;
  }

  div.ilightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  &.supportTouch div.ilightbox-container {
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
  }

  img.ilightbox-image {
    width: 100%;
    height: 100%;
  }

  .ilightbox-container .ilightbox-caption {
    display: none;
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    max-width: 100%;
    padding: 5px 10px;
    margin: 0 auto;
    font-size: 12px;
      line-height: 150%;
    word-wrap: break-word;
    z-index: 20003;
    box-sizing: border-box;

    -webkit-border-radius: 3px 3px 0 0;
            border-radius: 3px 3px 0 0;
  }

  .ilightbox-alert {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    padding-top: 100px;
    margin: auto;
    width: 300px;
    height: 50px;
  }

  .ilightbox-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ilightbox-inner-toolbar {
    position: relative;
    z-index: 100;

    .ilightbox-toolbar {
      position: absolute;
    }
  }
}

.ilightbox-button {
  position: fixed;
  z-index: 100008;
  cursor: pointer;
}

.isMobile .ilightbox-button,
.isMobile .ilightbox-thumbnails {
  display: none !important;
}

.isMobile .ilightbox-toolbar{
  .ilightbox-prev-button,
  .ilightbox-next-button {
    display: block;
  }
}

.ilightbox-title{
  font-size: 12px !important;

  a{
    color: #ccc;

    &:hover{
      color: #ffffff;
    }
  }
}

.ilightbox-holder.light .ilightbox-inner-toolbar .ilightbox-title a,
.ilightbox-holder.metro-white .ilightbox-inner-toolbar .ilightbox-title a{
  color:#555;

  &:hover{
    color: #000;
  }
}
