.gallery-wrapper {
  /* overflow: hidden; */
  width: 100%;
  position: relative;
  cursor: default;
  overflow: visible;
  /* background-color: red; */
}



.gallery-wrapper .pager {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  top: 0;
  bottom: 0;
  overflow: visible;
  margin: auto;
}

.gallery-wrapper .pager button {
  border-radius: 50%;
	background-color: rgba(0,0,0, 0.45);
  box-shadow: 0px 0px 0px 4px rgba(255,255,255, 0.99);
  width: 70px;
  height: 70px;
  background-position: center;
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  display: block;
  z-index: 9;
  opacity: 0.1;
  border: 0px solid #fff;
  transition-property: opacity, border;
  transition-duration: 500ms;
}

.gallery-wrapper .pager button:focus{
  outline: 0px none;
  background-size: 125%;
  /* background-color: rgba(0,0,0, 0.75); */
  background-color: rgba(102,30,48, 0.97);
  border: 2px solid #fff
}

.gallery-wrapper .pager button.active {
  opacity: 0.85;
}
.gallery-wrapper .pager button.left {
    left: -88px;
}
@media screen and (max-width: 1200px) {
  .gallery-wrapper .pager button.left {
    left: -56px;
  }
}

@media screen and (max-width: 992px) {
  .gallery-wrapper .pager button.left {
    left: 0;
  }
}

.gallery-wrapper .pager button.right {
  right: 0;
}

.gallery-wrapper a {
  outline: none;
  cursor: default;
}

.gallery {
  width: 100%;
  min-width: calc(10 * 100vw);
  display: flex;
  flex-direction: row;
  align-items: center;
  /* white-space: nowrap; */
  overflow-x: auto;
  margin: 0;
  margin-left: 5%;
  position: relative;
  overflow: visible;
  padding: 2.5%;
  transition: transform 1500ms ease-in-out;
}


figure.gallery-item {
  background-color: #fff;
  /* float: left; */
  margin-right: 0;
  transform: scale(0.8);
  /* width: 764px; */
  width: auto;
  position: relative;
  transition-duration: 1000ms;
  transition-property: transform, opacity, background-color;
}
.gallery-item[data-fade="1"] { opacity: 0.1; }
.gallery-item[data-fade="2"] { opacity: 0.1; }
.gallery-item[data-fade="3"] { opacity: 0.1; }
.gallery-item[data-fade="4"] { opacity: 0.1; }
.gallery-item[data-fade="5"] { opacity: 0.1; }
.gallery-item[data-fade="6"] { opacity: 0.1; }
.gallery-item[data-fade="7"] { opacity: 0.2; }
.gallery-item[data-fade="8"] { opacity: 0.5; }
.gallery-item[data-fade="9"] { opacity: 0.8; }
.gallery-item[data-fade="10"] { opacity: 1; }

figure.gallery-item img {
  height: 50vh;
  max-height: 50vmin;
  max-width: none;
	width: auto;
}

figure.gallery-item.active {
  transform: scale(1.05);
  /* transition: transform 1s; */
  background-color: #F8F8F8;
}

figure.gallery-item.next {
  z-index: 1;
}


@media screen and (max-width: 1200px) {


}

@media screen and (max-width: 992px) {
  figure.gallery-item img {
    height: 40vh;
    max-height: 40vmin;
    max-width: none;
    width: auto;
  }
  .gallery {
    margin-left: 32px;
  }
}
@media screen and (max-width: 767px) {
  .gallery {
    margin-left: 9%;
  }
  figure.gallery-item img {
    height: 50vh;
    max-height: 50vmin;
    max-width: none;
    width: auto;
  }
}
