/* slider */
.slider{
  flex: auto;
  width: 100%;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.slide{
  position: absolute;
  z-index: 0;
  top:0;
  left:0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  background: black;
  padding: 0 var(--m) 0;
  pointer-events: none;
}
.slide figure{
  display: inline-flex;
  /* justify-content: center; */
  align-items: center;
  height: 100%;
  width: 100%;
}
.slide figure + figure{
  margin-left: var(--m);
}
.slide.active{
  z-index: 1;
}
.slide img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  cursor: pointer;
}
.slide.active img{
  pointer-events: auto;
}
.slide.single figure{
  width:100%
}
.slide.single figure img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* NAV */
.slide-arrow-prev, .slide-arrow-next{
  position: absolute;
  z-index: 0;
  top: 0;
  left:0;
  width:50%;
  height: 100%;
}
.slide-arrow-next{
  left:50%;
}
.slide-arrow-next:hover{
  cursor: e-resize;
}
.slide-arrow-prev:hover{
  cursor: w-resize;
}
.count{
  display: block;
}



@media screen and (max-width:1024px) and (orientation: portrait) {
  .slider{
    width: 100%;
    height: auto;
    padding: 0 var(--m);
  }
  .slide{
    position: relative;
    height: auto;
    width: 100%;
    display: block;
    padding: 0;
  }
  .slide figure{
    display: block;
    height: auto;
    width: 100%;
    margin-bottom: var(--m);
  }
  .slide figure + figure{
    margin-left: 0;
  }
  .slide img, .slide.single figure img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: inherit;
  }

  /* NAV */
  .slide-arrow-prev, .slide-arrow-next{
    display: none;
  }

  .count{
    display: none;
  }
}
