.padding-content-top {
  padding-top: calc(100vh + 2.5rem);
}

.custom-post-layout {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px 80px 12px;

  ul {
    margin-left: 1.3rem;
  }
}

.post-featured-image {
  position: absolute;
  top: 0;
  width: 100%;
}

.overlay-img {
  position: relative;
  
  img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center bottom;
  }
}

.overlay-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 49, 99, 0.8);
}

.overlay-img .posts-meta {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  inset: 0;
  margin: 0;
  padding: 0 15px;
  text-align: center;
  top: 90px;

  .posts-title {
    color: white;
    font-size: 40px;
    font-weight: 500;
    padding: 0 20px;
  }

  .posts-date {
    color: white;
    font-size: 18px;
    font-weight: 500;
  }

}

/* Case no image post */
.padding-content-top:has(.no-thumbnail) {
  padding-top: 32.5rem;
}

.no-thumbnail .posts-meta {
  top: 285px;
}

.no-thumbnail::before {
  background: #113163;
  width: 100%;
  height: 30rem;
  color: white;
}

/* Remove relative positioning on main container for single posts */
.single #main {
  position: static !important;
}

/* Responsive device mobile */
@media only screen and (max-width: 48em) {
  .overlay-img .posts-meta {

    .posts-title {
      color: white;
      font-size: 24px;
      font-weight: 500;
      padding: 0;
    }

    .posts-date {
      color: white;
      font-size: 16px;
      font-weight: 500;
    }
  }
}

/* Remove page header excerpt on single post */
.single-post .page-header-excerpt {
    display: none;
}
