/*!
 * anyimgbox.css
 * createdAt: 2017.09.21
 * updatedAt: 2017.09.22
 */

/*========================================

  .anybox__outer

========================================*/
.anybox__outer {
  overflow: hidden;
  position: fixed;
  text-align: center;
  z-index: 2010;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition-property: opacity;
  transition-timing-function: ease;
}
.anybox__outer:before {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  content: '';
}


/*========================================

  .anybox__wrap

========================================*/
.anybox__wrap {
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  z-index: 2020;
  margin: 0px auto;
  max-width: 100%;
}


/*========================================

  .anybox__content

========================================*/
.anybox__content {
  position: relative;
}


/*========================================

  .anybox__loading

========================================*/
.anybox__loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  background-image: url(../img/anybox/loading@2x.gif);
  background-repeat: no-repeat;
  background-size: 100% auto;
}


/*========================================

  .anybox-backdrop

========================================*/
.anybox__backdrop {
  overflow: hidden;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: inherit;
  transition-property: opacity;
  transition-timing-function: ease;
}


/*========================================

  .anybox-image

========================================*/
.anybox__imageWrap {
  position: relative;
  -webkit-animation: anybox--direction_enter 0.4s;
  animation: anybox--direction_enter 0.4s;
}
.anybox--direction_next .anybox__imageWrap {
  -webkit-animation: anybox--direction_next 0.4s;
  animation: anybox--direction_next 0.4s;
}
.anybox--direction_prev .anybox__imageWrap {
  -webkit-animation: anybox--direction_prev 0.4s;
  animation: anybox--direction_prev 0.4s;
}
.anybox__imageInner {
  position: relative;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 100%;
  line-height: 0;
}
.anybox__imageItem {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 20px 0 0;
  max-width: 100%;
  width: auto;
  height: auto;
}
.anybox__imageCaption {
  display: block;
  overflow: hidden;
  text-align: right;
  margin-top: 10px;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
}
.anybox__imageBlank {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*========================================

  .anybox-close

========================================*/
.anybox__close {
  position: absolute;
  cursor: pointer;
  z-index: 2030;
  top: -20px;
  right: -10px;
  width: 40px;
  height: 40px;
  background-image: url(../img/anybox/icn_close.svg);
  background-repeat: no-repeat;
  background-position: center center;
  transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.anybox--state_loading .anybox__close {
  display: none;
}
.anybox__close::-moz-focus-inner {
  padding: 0;
  border: 0;
}
.anybox__close:hover {
  opacity: 0.5;
}
.anybox__close:active {
  opacity: 0.8;
}


/*========================================

  .anybox-arrows

========================================*/
.anybox__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}
.anybox--state_loading .anybox__arrows {
  display: none;
}
.anybox__arrow {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  top: 0;
  bottom: 0;
  margin: auto;
  max-width: 50px;
  max-height: 50px;
  width: 5.2vw;
  height: 5.2vw;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;;
  transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.anybox__arrow::-moz-focus-inner {
  padding: 0;
  border: 0;
}
.anybox__arrow:hover {
  opacity: 0.5;
}
.anybox__arrow:active {
  opacity: 0.8;
}
.anybox__arrowPrev {
  left: 0;
  background-image: url(../img/anybox/icn_prev.svg);
}
.anybox__arrowNext {
  right: 0;
  background-image: url(../img/anybox/icn_next.svg);
}


/*========================================

  animation

========================================*/
/*----------------------------------------
  anybox--direction_enter
----------------------------------------*/
@-webkit-keyframes anybox--direction_enter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -2em, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}
@keyframes anybox--direction_enter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -2em, 0);
    transform: translate3d(0, -2em, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/*----------------------------------------
  anybox--direction_next
----------------------------------------*/
@-webkit-keyframes anybox--direction_next {
  from {
    opacity: 0;
    -webkit-transform: translate3d(3em,0,0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
  }
}
@keyframes anybox--direction_next {
  from {
    opacity: 0;
    -webkit-transform: translate3d(3em,0,0);
    transform: translate3d(3em,0,0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
  }
}

/*----------------------------------------
  anybox--direction_prev
----------------------------------------*/
@-webkit-keyframes anybox--direction_prev {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-3em,0,0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
  }
}
@keyframes anybox--direction_prev {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-3em,0,0);
    transform: translate3d(-3em,0,0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
  }
}