
.post-cover {
    max-width: 428px;
    height: 400px;
    flex: 1;
    min-width: 340px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #ece8df;
    cursor: pointer;
}

.is-bg-page .post-cover {
    min-width: 260px;
    max-width: 322px;
}

.-ycwt-postslider .post-cover {
    max-width: 385px;
}

.related-row .post-cover {
    max-width: 440px;
}

.post-cover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background: linear-gradient(0deg, black, transparent 60%);
    z-index: 0;
}
.post-cover-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: antiquewhite;
}

.post-cover-thumb img {
    max-width: 100%;
}

.post-cover-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    z-index: 1;
}

.post-cover-title {
    margin-bottom: 12px;
}
.post-cover-title a {
    font-size: 22px;
    color: white;
    font-weight: 600;
}
.post-cover-category a {
    font-size: 15px;
    color: white;
}
.post-cover-category {
    display: flex;
    align-items: center;
    position: relative;
    padding-inline-start: 15px;
}

.post-cover-category::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--backcolor);
    right: 0;
}
.post-grid-layout .-objects-lists{
  --gap: 24px;
  --row: 167px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: var(--row);
  gap: var(--gap);
  align-items: stretch;
  margin-top: 40px;
}

.post-grid-layout  .post-cover{
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: calc(var(--row) * 2);
  height: auto;
  max-width: 500px;
}

.post-grid-layout  .post-cover > a,
.post-grid-layout  .post-cover .post-card{
  display: block;
  width: 100%;
  height: 100%;
}

.post-grid-layout  .post-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-grid-layout  .post-cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.post-grid-layout  .post-cover .meta,
.post-grid-layout  .post-cover .content,
.post-grid-layout  .post-cover .overlay{
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
 
.post-grid-layout  .post-cover:nth-child(1){
  grid-row: span 3;
}
.post-grid-layout  .post-cover:nth-child(2){
  grid-row: span 2;
}
.post-grid-layout  .post-cover:nth-child(3){
  grid-row: span 3;
}
.post-grid-layout  .post-cover:nth-child(4){
  grid-row: span 3;
}

.post-grid-layout  .post-cover:nth-child(n+5){
  grid-row: span 2;
}

.post-grid-layout  .post-cover:nth-child(11) {
    grid-row: span 3;
}
.post-grid-layout  .post-cover:nth-child(10) {
    grid-row: span 3;
}
.post-grid-layout  .post-cover:nth-child(8) {
    grid-row: span 3;
}
.post-grid-layout  .post-cover:nth-child(7) {
    min-width: 100%;
    grid-column: span 3;
}

@media (max-width: 1024px){
  .post-grid-layout .-objects-lists{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --row: 180px;
    --gap: 15px;
  }

  .post-grid-layout  .post-cover{
    grid-row: span 2 !important;
  }
}

@media (max-width: 640px){
  .post-grid-layout .-objects-lists{
    grid-template-columns: 1fr;
    --row: 200px;
  }

  .post-grid-layout  .post-cover{
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-row: span 2 !important;
  }
}

@media (max-width: 480px) {
  .-ycwt-postslider .post-cover {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 360px;
  }

  .post-cover-info {
    padding: 20px;
  }

  .post-cover-title a {
    font-size: 19px;
  }
}
