.pp-media-content {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 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;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}