@import url("https://fonts.googleapis.com/css?family=Raleway:300,400");

.container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  padding: 0 30px;
}
.container .thumbex {
  margin: 10px 20px 30px;
  width: 100%;
  min-width: 50px;
  max-width: 150px;
  height: 150px;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  outline: 2px solid white;
  outline-offset: -15px;
  box-shadow: 5px 10px 40px 5px rgba(0, 0, 0, 0.5);
}
.container .thumbex .thumbnail {
  overflow: hidden;
  min-width: 50px;
  height: 150px;
  position: relative;
  opacity: 0.88;
  background-color: black;
  backface-visibility: hidden;
  transition: all 0.4s ease-out;
}
.container .thumbex .thumbnail img {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
}

.container .thumbex .thumbnail span {
  position: absolute;
  z-index: 2;
  top: calc(130px - 30px);
  left: 0;
  right: 0;
  background: black;
  padding: 5px 5px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: white;
  font-weight: 300;
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.2px;
  transition: all 0.3s ease-out;
}
.container .thumbex .thumbnail:hover {
  backface-visibility: hidden;
  transform: scale(1.15, 1.15);
  opacity: 1;
}
.container .thumbex .thumbnail:hover span {
  opacity: 0;
}

@media screen and (min-width: 30px)  and (max-width: 1000px) {
  .container .thumbex {
  margin: 10px 20px 30px;
  width: 100%;
  min-width: 70px;
  max-width: 120px;
  height: 90px;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  outline: 2px solid white;
  outline-offset: -15px;
  box-shadow: 5px 10px 40px 5px rgba(0, 0, 0, 0.5);
}
.container .thumbex .thumbnail {
  overflow: hidden;
  min-width: 50px;
  height: 150px;
  position: relative;
  opacity: 0.88;
  background-color: black;
  backface-visibility: hidden;
  transition: all 0.4s ease-out;
}
.container .thumbex .thumbnail img {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  height: 100%;
  width: 100%;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  opacity: 0;
}

.container .thumbex .thumbnail span {
  position: absolute;
  z-index: 2;
  top: calc(40px - 10px);
  left: 0;
  right: 0;
  background: black;
  padding: 2px 5px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  color: white;
  font-weight: 300;
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.2px;
  transition: all 0.3s ease-out;
}
.container .thumbex .thumbnail:hover {
  backface-visibility: hidden;
  transform: scale(1.15, 1.15);
  opacity: 1;
}
.container .thumbex .thumbnail:hover span {
  opacity: 1;
}
}
