.polaroid {
  display: inline-block;
  align-self: flex-start; /* prevents stretching */
  height: auto;
  width: auto;

  margin-top: 5px;
  padding: 10px 10px 10px 8.5px;
  border: 1px solid #BFBFBF;
  background-color: white;
  box-shadow: 7px 7px 5px #aaaaaa;

  font: 70%/170% Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000000;
}

@media (max-width: 767px) {
  .polaroid {
    margin: 20px auto 0;
  }
}

.polaroid img {
  max-width: 100%;
  height: auto;            /* flexible height */
  display: block;          /* removes extra bottom gap */
}

/* if you want to rotate, add these attributes to the tag*/
.rotate_right {
  float: left;
  /* IE 9 */
  /* Safari */
  transform: rotate(7deg);
}

.rotate_left {
  float: left;
  /* IE 9 */
  /* Safari */
  transform: rotate(-8deg);
}