.boxxx img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}
.boxxx {
  position: relative;
}
.boxxx::after,
.boxxx::before {
  content: "";
  position: absolute;
  opacity: 1;
  transition: all 0.4s ease-out;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}
.boxxx::before {
  border-top: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  transform: scale(0, 1);
}
.boxxx::after {
  border-left: 2px solid #F9DC29;
  border-right: 2px solid #F9DC29;
  transform: scale(1, 0);
}
.boxxx:hover::before {
  background: rgba(0, 0, 0, 1);
  transform: scale(1.05, 1);
}
.boxxx:hover::after {
  transform: scale(1, 1.05);
}
.boxxx .contenttt {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 15px;
  color: #FFF;
  opacity: 0;
}
.boxxx:hover .contenttt {
  opacity: 1;
}

.boxxx .contenttt p {
  padding: 20px;
  font-size: 12px;
  text-align: left;
  line-height: 20px;
  color: #FFF;
  text-indent: 0;
}
.boxxx .contenttt h2 {
  padding: 0;
  margin: 0 auto;
  font-size: 16px;
  text-align: center;
  line-height: 20px;
  color: #F9DC29;
  font-style: italic;
}
.boxxx:hover img {
  opacity: 0.4;
}