.cardbox {
  border: solid 1px #ffe630;
  border--webkit-transition: all 0.3s ease-in-out;
  border--moz-transition: all 0.3s ease-in-out;
  border--ms-transition: all 0.3s ease-in-out;
  border--o-transition: all 0.3s ease-in-out;
}
.cardbox:hover p {
  background: #ffe630;
  color: #000;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}
.cardbox p {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  background: #000;
  color: #fff;
}
.cardbox a {
  cursor: pointer;
  position: relative;
  display: block;
  overflow: hidden;
  height: 0;
  width: 100%;
  padding-bottom: 140%;
  background: #fff;
}
.cardbox a img {
  width: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}
.cardbox a img:hover {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transform: translate(-50%, -50%) scale(1.1);
}