body.single-post {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
}

body.single-post .page-preloader {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.single-post main {
  overflow: visible;
}

.single-post-layout {
  padding: 82px 0 90px;
  color: var(--merlot);
}

.single-post-layout--theme-light {
  background: #fff;
}

.single-post-layout--theme-dark {
  background: var(--merlot);
  color: var(--eggshell);
}

.single-post-layout__container {
  width: 100%;
  max-width: var(--screen-max);
  margin: 0 auto;
  padding: 0 15px;
}

.single-post-layout__hero {
  max-width: 100%;
}

.single-post-layout__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.single-post-layout__meta-item {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(63, 9, 13, 0.7);
}

.single-post-layout__title {
  max-width: 345px;
  margin: 0;
  font-family: "Komrile", serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 0.95;
  color: var(--merlot);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.single-post-layout__featured {
  position: relative;
  margin: 34px 0 0;
  overflow: hidden;
  background: rgba(63, 9, 13, 0.08);
  aspect-ratio: 345 / 395;
}

.single-post-layout__featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-layout__featured-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, #d8d4ca 0%, #f7f6ee 70%);
}

.single-post-layout__featured-caption {
  margin-top: 12px;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(63, 9, 13, 0.68);
}

.single-post-layout__body {
  margin-top: 68px;
}

.single-post-layout--no-featured .single-post-layout__body {
  margin-top: 44px;
}

.single-post-layout__aside {
  margin-bottom: 25px;
}

.single-post-layout__lead {
  max-width: 345px;
  margin: 0;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(63, 9, 13, 0.75);
  overflow-wrap: anywhere;
}

.single-post-layout__content {
  width: 100%;
  max-width: 345px;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--merlot);
}

.single-post-layout__content > * {
  margin: 0;
}

.single-post-layout__content > * + * {
  margin-top: 12px;
}

.single-post-layout__content h2,
.single-post-layout__content h3,
.single-post-layout__content h4 {
  font-family: "Komrile", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
  color: var(--merlot);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.single-post-layout__content h2 {
  margin-top: 45px;
  font-size: 25px;
}

.single-post-layout__content h3 {
  margin-top: 35px;
  font-size: 21px;
}

.single-post-layout__content h4 {
  margin-top: 30px;
  font-size: 18px;
}

.single-post-layout__content p {
  max-width: 70ch;
  overflow-wrap: anywhere;
}

.single-post-layout__content ul,
.single-post-layout__content ol {
  margin-top: 16px;
  padding-left: 1.35em;
}

.single-post-layout__content li + li {
  margin-top: 9px;
}

.single-post-layout__content blockquote {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-family: "Komrile", serif;
  font-size: 22px;
  line-height: 1.1;
}

.single-post-layout__content figure,
.single-post-layout__content .wp-block-image,
.single-post-layout__content .wp-block-gallery {
  margin-top: 45px;
  margin-bottom: 0;
}

.single-post-layout__content img,
.single-post-layout__content .wp-block-image img,
.single-post-layout__content .wp-block-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.single-post-layout__content figcaption,
.single-post-layout__content .wp-caption-text,
.single-post-layout__content .blocks-gallery-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(63, 9, 13, 0.68);
}

.single-post-layout__content .alignleft,
.single-post-layout__content .alignright,
.single-post-layout__content .aligncenter,
.single-post-layout__content .alignwide,
.single-post-layout__content .alignfull {
  float: none;
  margin-right: 0;
  margin-left: 0;
}

.single-post-layout__content iframe,
.single-post-layout__content video,
.single-post-layout__content embed,
.single-post-layout__content object {
  width: 100%;
  max-width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: auto;
}

.single-post-layout__content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.single-post-layout__content th,
.single-post-layout__content td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  overflow-wrap: anywhere;
}

.single-post-layout--theme-dark .single-post-layout__title,
.single-post-layout--theme-dark .single-post-layout__lead,
.single-post-layout--theme-dark .single-post-layout__content,
.single-post-layout--theme-dark .single-post-layout__content h2,
.single-post-layout--theme-dark .single-post-layout__content h3,
.single-post-layout--theme-dark .single-post-layout__content h4,
.single-post-layout--theme-dark .single-post-layout__related-title,
.single-post-layout--theme-dark .single-post-layout__related-card-title,
.single-post-layout--theme-dark .single-post-layout__related-read {
  color: var(--eggshell);
}

.single-post-layout--theme-dark .single-post-layout__meta-item {
  color: rgba(247, 246, 238, 0.72);
}

.single-post-layout--theme-dark .single-post-layout__featured {
  background: rgba(247, 246, 238, 0.12);
}

.single-post-layout--theme-dark .single-post-layout__featured-fallback {
  background: linear-gradient(140deg, #4f171b 0%, #74484b 90%);
}

.single-post-layout--theme-dark .single-post-layout__featured-caption,
.single-post-layout--theme-dark .single-post-layout__content figcaption,
.single-post-layout--theme-dark .single-post-layout__content .wp-caption-text,
.single-post-layout--theme-dark .single-post-layout__content .blocks-gallery-caption,
.single-post-layout--theme-dark .single-post-layout__related-date {
  color: rgba(247, 246, 238, 0.72);
}

.single-post-layout--theme-dark .single-post-layout__content blockquote {
  border-left-color: rgba(247, 246, 238, 0.4);
}

.single-post-layout--theme-dark .single-post-layout__content th,
.single-post-layout--theme-dark .single-post-layout__content td {
  border-color: rgba(247, 246, 238, 0.3);
}

.single-post-layout--theme-dark .single-post-layout__related-line {
  background: rgba(247, 246, 238, 0.3);
}

.single-post-layout--theme-dark .single-post-layout__related-media {
  background: rgba(247, 246, 238, 0.12);
}

.single-post-layout__related {
  margin-top: 90px;
}

.single-post-layout__related-title {
  margin: 0 0 40px;
  font-family: "Komrile", serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 0.95;
  color: var(--merlot);
}

.single-post-layout__related-title em {
  font-style: italic;
}

.single-post-layout__related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.single-post-layout__related-card {
  min-width: 0;
}

.single-post-layout__related-link {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: inherit;
  text-decoration: none;
}

.single-post-layout__related-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(63, 9, 13, 0.08);
  aspect-ratio: 345 / 225;
}

.single-post-layout__related-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-layout__related-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(63, 9, 13, 0.48);
}

.single-post-layout__related-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.single-post-layout__related-card-title {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--merlot);
  overflow-wrap: anywhere;
}

.single-post-layout__related-read-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.single-post-layout__related-read {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--merlot);
}

.single-post-layout__related-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.single-post-layout__related-date {
  display: block;
  margin-top: 12px;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(63, 9, 13, 0.68);
  text-transform: uppercase;
}

.single-post-layout__related-link:focus-visible {
  outline: 2px solid var(--merlot);
  outline-offset: 4px;
}

.single-post-layout__empty {
  margin: 0;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--merlot);
}

@media (hover: hover) {
  .single-post-layout__related-link:hover .single-post-layout__related-card-title,
  .single-post-layout__related-link:hover .single-post-layout__related-read {
    opacity: 0.72;
  }
}

@media (min-width: 768px) {
  .single-post-layout {
    padding: 107px 0 140px;
  }

  .single-post-layout__container {
    padding: 0 25px;
  }

  .single-post-layout__title {
    max-width: 803px;
    font-size: 70px;
  }

  .single-post-layout__featured {
    margin-top: 58px;
    aspect-ratio: 974 / 565;
  }

  .single-post-layout__body {
    margin-top: 20px;
  }

  .single-post-layout--no-featured .single-post-layout__body {
    margin-top: 55px;
  }

  .single-post-layout__aside {
    margin-bottom: 78px;
  }

  .single-post-layout__lead {
    max-width: 220px;
  }

  .single-post-layout__content {
    max-width: 570px;
    font-size: 16px;
  }

  .single-post-layout--narrow .single-post-layout__content {
    max-width: 520px;
  }

  .single-post-layout__content > * + * {
    margin-top: 15px;
  }

  .single-post-layout__content h2 {
    margin-top: 80px;
    font-size: 40px;
  }

  .single-post-layout__content h3 {
    margin-top: 55px;
    font-size: 28px;
  }

  .single-post-layout__content h4 {
    margin-top: 45px;
    font-size: 22px;
  }

  .single-post-layout__content blockquote {
    margin-top: 30px;
    padding-left: 22px;
    font-size: 30px;
  }

  .single-post-layout__content figure,
  .single-post-layout__content .wp-block-image,
  .single-post-layout__content .wp-block-gallery {
    margin-top: 60px;
  }

  .single-post-layout__related {
    margin-top: 126px;
  }

  .single-post-layout__related-title {
    margin-bottom: 50px;
    font-size: 70px;
  }

  .single-post-layout__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .single-post-layout__related-link {
    gap: 15px;
  }

  .single-post-layout__related-media {
    aspect-ratio: 480 / 310;
  }

  .single-post-layout__related-card-title {
    font-size: 20px;
    line-height: 1.1;
  }
}

@media (min-width: 1200px) {
  .single-post-layout {
    padding-bottom: 200px;
  }

  .single-post-layout__container {
    padding: 0 40px;
  }

  .single-post-layout__title {
    max-width: 1108px;
    font-size: 100px;
  }

  .single-post-layout__featured {
    margin-top: 72px;
    aspect-ratio: 1520 / 800;
  }

  .single-post-layout__body {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 220px minmax(0, 570px);
    column-gap: 160px;
    align-items: start;
  }

  .single-post-layout--no-featured .single-post-layout__body {
    margin-top: 64px;
  }

  .single-post-layout__aside {
    margin-bottom: 0;
  }

  .single-post-layout--narrow .single-post-layout__body {
    grid-template-columns: 220px minmax(0, 480px);
    column-gap: 120px;
  }

  .single-post-layout__related {
    margin-top: 140px;
  }

  .single-post-layout__related-title {
    margin-bottom: 55px;
    font-size: 100px;
  }

  .single-post-layout__related-grid {
    gap: 20px;
  }

  .single-post-layout__related-media {
    aspect-ratio: 750 / 410;
  }

  .single-post-layout__related-card-title {
    font-size: 24px;
    line-height: 1.1;
  }
}
