.pg-ruby-grid {
  display: grid;
}
.pg-ruby-item {
  display: inline-block;
  text-align: start;
  position: relative;
}
.pg-ruby-image-wrap {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
}
.pg-ruby-image-wrap img {
  inline-size: 100%;
  block-size: 100%;
  position: relative;
  object-fit: cover;
  display: block;
}
.pg-ruby-content {
  padding-block: 30px 20px;
  padding-inline: 20px;
  background: #3d6276;
  visibility: hidden;
}

.pg-ruby-title {
  margin: 0;
  margin-block-end: 6px;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: capitalize;
  color: #fff;
}
.pg-ruby-meta {
  color: #eee;
  font-size: 14px;
  text-transform: capitalize;
}
.pg-ruby-readmore {
  display: inline-block;
  a {
    padding: 8px 14px;
    border-radius: 2px;
    display: inline-block;
    background: #0d3b54;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    &:hover {
      color: #0d3b54;
      background: #fff;
    }
  }
}
.pg-ruby-item:first-child {
  z-index: 6;
}
.pg-ruby-item:nth-child(2) {
  z-index: 5;
}
.pg-ruby-item:nth-child(3) {
  z-index: 4;
}
.pg-ruby-item:nth-child(4) {
  z-index: 3;
}
.pg-ruby-item:nth-child(5) {
  z-index: 2;
}
.pg-ruby-item:nth-child(6) {
  z-index: 1;
}

.pg-ruby-item {
  backface-visibility: hidden;
  transition: box-shadow 0.3s;
  box-shadow: 0 0 0 0px #3d6276;
  &:hover {
    box-shadow: 0 0 0 10px #3d6276;
  }
}

.pg-ruby-image-wrap img {
  z-index: 10;
}
.pg-ruby-content {
  opacity: 0;
  backface-visibility: hidden;
  transition: opacity 0.15s, box-shadow 0.3s;
  box-shadow: 0 0 0 0px #3d6276;
  // display: flex;
  // align-items: center;
  // justify-content: space-between;
}
.pg-ruby-item:hover .pg-ruby-content {
  opacity: 1;
  box-shadow: 0 0 0 10px #3d6276;
  visibility: visible;
}
.pg-ruby-title,
.pg-ruby-meta,
.pg-ruby-readmore {
  opacity: 0;
  transition: opacity 0s;
}
.pg-ruby-item:hover .pg-ruby-title,
.pg-ruby-item:hover .pg-ruby-meta,
.pg-ruby-item:hover .pg-ruby-readmore {
  transition: opacity 0.3s;
  opacity: 1;
}
