.galShadowBg {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
}

.amGalCont {
  width: 486px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.galBigCont {
  position: relative;
  width: 476px;
  height: 600px;
  margin: 5px 5px 5px 5px;
  overflow: hidden;
}

.galBigBgImg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
}

.galBigImgLeft {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  left: -100%;
  top: 0;
}

.galBigImgRight {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  right: -100%;
  top: 0;
}

.galBigImg {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
  z-index: 2;
}

.galBigImg:hover {
  cursor: pointer;
}

.galSmallCont {
  position: relative;
  overflow: hidden;
}

.galSmallScroll {
  position: relative;
  overflow: hidden;
}

.galSmallImg {
  float: left;
  width: 71px;
  height: 89px;
  margin: 5px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.galSmallImg:hover {
  cursor: pointer;
  outline: 1px solid #b01818;
  outline-offset: -1px;
}

div.galSmallImg.active {
  position: relative;
}

@keyframes galSmallImgAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.6;
  }
}

div.galSmallImg.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.6;
  background: #d98e20;
  background-size: 100% 100%;
  animation: galSmallImgAnim 0.6s;
}

.galLeftArrow,
.galLeftArrowOrig {
  position: absolute;
  background: url(./images/galArrow.png) no-repeat 0 0;
  width: 35px;
  height: 35px;
  top: 288px;
  left: 20px;
}

.galLeftArrow {
  z-index: 10;
}

.galLeftArrow:hover,
.galLeftArrowOrig:hover {
  background: url(./images/galArrow.png) no-repeat 0 -35px;
  cursor: pointer;
}

.galRightArrow,
.galRightArrowOrig {
  position: absolute;
  background: url(./images/galArrow.png) no-repeat -35px 0;
  width: 35px;
  height: 35px;
  top: 288px;
  right: 20px;
}

.galRightArrow {
  z-index: 10;
}

.galRightArrow:hover,
.galRightArrowOrig:hover {
  background: url(./images/galArrow.png) no-repeat -35px -35px;
  cursor: pointer;
}

.galOrigImg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  z-index: 210;
  text-align: center;
  vertical-align: middle;
}

.galOrigImgBg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  z-index: 209;
  text-align: center;
  vertical-align: middle;
}

.galOrigImgBg img {
  height: 100%;
  opacity: 0;
  display: inline-block;
}

.galOrigImg img {
  height: 100%;
  display: inline-block;
}

.galLeftArrowOrig {
  top: 45%;
}

.galRightArrowOrig {
  top: 45%;
}

.modalCloseButton {
  position: absolute;
  background: url(./images/close.png) no-repeat;
  width: 35px;
  height: 35px;
  top: 20px;
  right: 20px;
}

.modalCloseButton:hover {
  background: url("./images/close.png") no-repeat 0 -35px;
  cursor: pointer;
}

/*-----------------------------------------------*\
    Стили мобильной версии сайта
\*-----------------------------------------------*/

@media screen and (max-width: 1190px) {
  .amGalCont {
    width: 650px;
  }

  .galBigCont {
    position: relative;
    width: 640px;
    height: 800px;
  }

  .galBigImg {
    touch-action: pan-y;
  }

  .galRightArrow,
  .galRightArrowOrig {
    position: absolute;
    background: url(./images/galArrowM.png) no-repeat -45px 0;
    width: 45px;
    height: 45px;
    top: 380px;
    right: 30px;
  }

  .galLeftArrow,
  .galLeftArrowOrig {
    position: absolute;
    background: url(./images/galArrowM.png) no-repeat 0 0;
    width: 45px;
    height: 45px;
    top: 380px;
    left: 30px;
  }

  .galLeftArrow:hover,
  .galLeftArrowOrig:hover {
    background: url(./images/galArrowM.png) no-repeat 0 -45px;
    cursor: pointer;
  }
  .galRightArrow:hover,
  .galRightArrowOrig:hover {
    background: url(./images/galArrowM.png) no-repeat -45px -45px;
    cursor: pointer;
  }

  .galSmallImg img {
    display: block;
    width: 120px;
    height: 150px;
    margin: 0;
  }
}
