
.wrap {
margin: 10px;
}

.box {
      float: left;
      position: relative;
      width: 20%;
      padding-bottom: 20%;
      min-height: 50px;
      /* margin-top: -40px; */
}

.boxInner {
      position: absolute;
      left: 10px;
      right: 10px;
      top: 10px;
      /* bottom: 30px; */
      overflow: hidden;
}

.boxInner img {
      height: auto;
      /* margin-bottom: -190px; */
      width: 100%;
      max-height: 150px;
      object-fit: contain;
    }
     .boxInner .titleBox p{
    line-height: 1.2em;
	font-weight: bold;
}
.boxInner .titleBox p:nth-child(2){
	font-size: .8em;
	line-height: 1.2em;
	font-weight: normal;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
.boxInner .titleBox p:nth-child(3){
	font-size: .8em;
    line-height: 1.2em;
	font-weight: normal;
	text-align: right;
}
    .boxInner .titleBox p:nth-child(4){
    line-height: 1.2em;
	text-align: right;
	color: #ffb62f;
}
    .boxInner .titleBox {
/* position: absolute; */
bottom: 0;
left: 0;
right: 0;
height:95%;
/* margin-bottom: -87%; */
padding:5px 5px 0px 5px;
background: #000;
background: rgba(47, 65, 102, 0.9);
color: #FFF;
/* text-align: center; */
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
font-family:Lato,sans-serif;
font-size:.9em;
line-height:1em;
}
    body.no-touch .boxInner:hover .titleBox, body.touch .boxInner.touchFocus .titleBox {
      margin-bottom: 0;
    }
    @media only screen and (max-width : 320px) {
      /* J-Smartphone view: 1 tile */
      .box {
        width: 100%;
        padding-bottom: 110%;
      }
    }
    @media only screen and (max-width : 480px) {
      /* Smartphone view: 1 tile */
      .box {
        width: 100%;
        padding-bottom: 100%;
      }
    }
    @media only screen and (max-width : 650px) and (min-width : 481px) {
      /* Tablet view: 2 tiles */
      .box {
        width: 50%;
        padding-bottom: 50%;
      }
    }
    @media only screen and (max-width : 1050px) and (min-width : 651px) {
      /* Small desktop / ipad view: 3 tiles */
      .box {
        width: 33.3%;
        padding-bottom: 35%;
      }
    }
    @media only screen and (max-width : 1290px) and (min-width : 1051px) {
      /* Medium desktop: 4 tiles */
      .box {
        width: 25%;
        padding-bottom: 25%;
      }
    }