.pg-orbit-grid {
  display: grid;
}
.pg-orbit-item {
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-in-out;

  // [dir="rtl"] & {
  //     text-align: center;
  // }

  &:hover {
    img {
      transform: perspective(500px) rotateX(50deg);
    }
    .pg-orbit-content {
      opacity: 1;
      transform: perspective(500px) rotateX(0);
    }
  }
}
.pg-orbit-image-wrap {
  display: flex;
  inline-size: 100%;
  block-size: 100%;
  img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transform-origin: bottom center;
    transform: perspective(500px) rotateX(0);
    transition: all 0.5s ease 0s;
  }
}
.pg-orbit-content {
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  transform-origin: top center;
  transform: perspective(500px) rotateX(-50deg);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  transition: all 0.5s ease 0s;
  background: rgba(13, 59, 84, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-orbit-content-inner {
  inline-size: 80%;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-50%);

  [dir="rtl"] & {
    transform: translateX(50%) translateY(-50%);
  }
}
.pg-orbit-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  margin-block-end: 6px;
  color: #fff;
}
.pg-orbit-meta {
  color: #eee;
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin: 0;
  margin-block-end: 15px;
}
.pg-orbit-readmore {
  display: inline-flex;
  a {
    color: rgba(13, 59, 84, 0.8);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    transition: all 0.3s ease;
    &:hover {
      color: #fff;
      background: #0d3b54;
    }
  }
}
