.container .box {
  position: relative;
  display: inline-block;
  margin: 10px;
  width: calc((100% / 4) - 25px);
  height: 250px;
  background: #262626;
  overflow: hidden;
}
.container .box img {
  position: relative;
  width: 100%;
  height: 100%;
  transition: 5s;
}
.container .box:hover img {
  transform: scale(2);
}

.container .box::before,
.container .box::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  transition: 1s;
  z-index: 2;
}
.container .box::before {
  transform: scale(1, 0);
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
.container .box::after {
  transform: scale(0, 1);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.container .box:hover::before,
.container .box:hover::after {
  transform: scale(1, 1);
}

.container .box .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
}
.container .box:hover .content {
  background: rgba(0, 0, 0, 0.7);
}
.container .box .content .wrap {
  box-sizing: border-box;
  padding: 20px;
  color: #fff;
  z-index: 3;
}
.container .box .content .wrap h1 {
  position: relative;
  font-size: 20px;
  margin-bottom: 10px;
  transform: translateY(-80px);
  opacity: 0;
  transition: 1s;
}
.container .box:hover .content .wrap h1 {
  transform: translateY(0);
  opacity: 1;
}
.container .box .content .wrap p {
  position: relative;
  font-size: 15px;
  transform: translateY(170px);
  opacity: 0;
  transition: 0.5s;
}
.container .box:hover .content .wrap p {
  transform: translateY(0px);
  opacity: 1;
}

.image-container {
  padding: 65px 0;
}

@media (max-width: 1000px) {
  .image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .box {
    width: 100% !important;
    height: 100% !important;
  }
}
