.pp-media-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.pp-random-image-wrap {
  overflow: hidden;
  position: relative;
  text-align: center;
}
.pp-random-image-wrap .pp-random-image-target {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
.pp-random-image-wrap .pp-random-image {
  display: inline-block;
  vertical-align: middle;
}
.pp-random-image-wrap .pp-media-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.pp-random-image-caption-over .pp-random-image-link {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}