.pg-punch-grid {
  display: grid;
}

.pg-punch-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.pg-punch-image-wrap {
  inline-size: 100%;
  block-size: 100%;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  .pg-punch-img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    vertical-align: middle;
  }
}

.pg-punch-item:hover .pg-punch-image-wrap {
  transform: scale(1.1);
  transition-delay: 0.1s;
}

.pg-punch-image-wrap:before,
.pg-punch-image-wrap:after {
  position: absolute;
  content: "";
  inset-inline-start: 0;
  inline-size: 100%;
}
.pg-punch-image-wrap:before {
  inset-block-start: 0;
  block-size: 190%;
}
.pg-punch-image-wrap::after {
  inset-block-end: 0;
  block-size: 0;
  opacity: 0;
  transition: block-size 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pg-punch-item:hover .pg-punch-image-wrap::after {
  block-size: 100%;
  opacity: 1;
}

.pg-punch-top-content,
.pg-punch-bottom-content,
.pg-punch-readmore {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 30px;
}
.pg-punch-top-content {
  inset-block-start: 0;
}

.pg-punch-bottom-content {
  inset-block-end: 0;
}

.pg-punch-meta {
  color: #fafbff;
  font-size: 16px;
  text-transform: capitalize;
  margin-block-end: 12px;
}
.pg-punch-title {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
  color: #fff;
}

.pg-punch-bottom-content .pg-punch-title,
.pg-punch-bottom-content .pg-punch-meta {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.pg-punch-item:hover .pg-punch-bottom-content .pg-punch-title,
.pg-punch-item:hover .pg-punch-bottom-content .pg-punch-meta {
  opacity: 0;
  transform: translateY(40px);
}

.pg-punch-top-content .pg-punch-title,
.pg-punch-top-content .pg-punch-meta {
  transform: translateY(-40px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.pg-punch-item:hover .pg-punch-top-content .pg-punch-title,
.pg-punch-item:hover .pg-punch-top-content .pg-punch-meta,
.pg-punch-item:hover .pg-punch-readmore {
  opacity: 1;
  transform: translateY(0);
}

.pg-punch-readmore {
  inset-block-end: 0;
  opacity: 0;
  transform: translateX(-40px);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);

  [dir="rtl"] & {
    transform: translateX(40px);
  }
}

.pg-punch-item:hover .pg-punch-readmore {
  transition-delay: 0.3s;
}
.pg-punch-readmore a {
  display: inline-flex;
  color: rgba(13, 59, 84, 0.8);
  background-color: #fff;
  padding: 10px;
  border-radius: 3px;
  transition: color 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  &:hover {
    color: #fff;
    background-color: #0d3b54;
  }
}
