
.thumbnail {
	float: left;
	margin: 15px;
  	position: relative;
  	width: 150px;
  	height: 150px;
  	overflow: hidden;
  	background-size: cover;
  	border: 5px double silver;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    outline: 0;
}

.thumbnail img {
  	position: absolute;
  	left: 50%;
  	top: 50%;
  	height: 100%;
  	width: auto;
  	-webkit-transform: translate(-50%,-50%);
  	    -ms-transform: translate(-50%,-50%);
  	        transform: translate(-50%,-50%);
}	

.thumbnail img.portrait {
  width: 100%;
  height: auto;
}