.photo-popup {
position:absolute;
right:30px;
top:40px;
width:180px;
}

.photo-popup img {
border-radius:8px;
}

@media only screen and (max-width: 767px) {
  .popup__container {
    width: 100%;
    padding: 0 20px;
  }

.photo-popup {
  position: relative;
  right: 0;
  top: 20px;
  width: 100%;
  margin-bottom: 30px;
}

}
.content {
  min-height: 100%;
}
.popup__container {
  width: 700px;
  color: #4d4d4d;
}
.popup {
  background-color: rgba(0, 0, 0, 0.9);
  -webkit-transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  -o-transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  -moz-transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  will-change: opacity, transform;
}
.popup__container {
  text-align: left;
  background-color: #fff;
  padding: 35px;
  margin: 30px auto;
  box-shadow: rgba(0, 0, 0, 0.25) 0 14px 45px, rgba(0, 0, 0, 0.22) 0 10px 18px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0 14px 45px,
    rgba(0, 0, 0, 0.22) 0 10px 18px;
  -moz-box-shadow: rgba(0, 0, 0, 0.25) 0 14px 45px,
    rgba(0, 0, 0, 0.22) 0 10px 18px;
  border-radius: 8px;
  transition: opacity 0.2s ease, visibility 0s 0.1s,
    transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0s,
    -webkit-transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0s;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  transform: scale(0.8);
  -webkit-transition: opacity 0.2s ease, visibility 0s 0.1s,
    -webkit-transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0s;
  transition: opacity 0.2s ease, visibility 0s 0.1s,
    -webkit-transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0s;
  transition: opacity 0.2s ease, visibility 0s 0.1s,
    transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0s;
  will-change: transform, opacity;
}
.popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding-top: 8px;
}
.popup__close span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #2f2c2c;
}
.popup__close span:first-of-type {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.popup__close span:last-of-type {
  -webkit-transform: rotate(-45deg) translateY(-1px);
  -moz-transform: rotate(-45deg) translateY(-1px);
  -ms-transform: rotate(-45deg) translateY(-1px);
  -o-transform: rotate(-45deg) translateY(-1px);
  transform: rotate(-45deg) translateY(-1px);
}
@media (max-width: 767px) {
  .popup__container {
    width: 80%;
    margin: 10px auto;
    padding: 20px 18px;
  }
  .popup__close {
    top: 10px;
    right: 10px;
  }
}
.popup.opened .popup__container {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
}

.popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  visibility: hidden;
  z-index: 1050;
  overflow: auto;
  outline: 0;
  text-align: center;
  transform: translate3d(0, 0, 0);
}
.popup:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 100%;
}
@media (max-width: 767px) {
  .popup {
    padding: 20px 0;
  }
}
.popup__container {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.popup.opened {
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  visibility: visible;
}
body.popup-opened {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}
