.product-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .86);
  opacity: 0;
  transition: opacity .22s ease;
}
.product-photo-modal.is-open {
  display: flex;
  opacity: 1;
}
.product-photo-modal__stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo-modal__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 108px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 42px rgba(0, 0, 0, .38);
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity .2s ease, transform .2s ease;
  will-change: opacity, transform;
}
.product-photo-modal.is-changing .product-photo-modal__image {
  opacity: .28;
  transform: translateX(var(--ppm-shift, 0)) scale(.985);
}
.product-photo-modal__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  min-height: 24px;
  padding: 0 44px;
  color: #fff;
  font: 13px/1.35 Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-photo-modal__button {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #ff6a00;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.product-photo-modal__button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 5px solid currentColor;
  border-right: 5px solid currentColor;
}
.product-photo-modal__prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.product-photo-modal__prev:before {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.product-photo-modal__next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.product-photo-modal__next:before {
  transform: translate(-65%, -50%) rotate(45deg);
}
.product-photo-modal__close {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .96);
}
.product-photo-modal__close:before,
.product-photo-modal__close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 4px;
  border: 0;
  background: #ff6a00;
}
.product-photo-modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.product-photo-modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.product-photo-modal__counter {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 9px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font: 12px/1.2 Arial, sans-serif;
}
#main_image_link { cursor: zoom-in; }
@media (max-width: 560px) {
  .product-photo-modal { padding: 10px; }
  .product-photo-modal__button {
    width: 42px;
    height: 42px;
  }
  .product-photo-modal__prev { left: 2px; }
  .product-photo-modal__next { right: 2px; }
  .product-photo-modal__caption {
    bottom: -32px;
    padding: 0 38px;
    font-size: 12px;
  }
}
