.single-post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text, #1f2937);
}

.single-post-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.single-post-content figure {
  margin: 1.5rem 0;
}

.single-post-content a {
  color: var(--primary, #c1121f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post-content a:hover {
  color: var(--primary-hover, #9b0e18);
}

.single-post-content blockquote {
  border-left: 4px solid var(--primary, #c1121f);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted, #6b7280);
}

.single-post-content li {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
  margin-bottom: 1rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.single-post-gallery {
  margin-top: 3rem;
}

.single-post-gallery__title {
  margin-bottom: 1.25rem;
  font-size: var(--h3-lg-size, 2.75rem);
  line-height: 1.15;
  font-weight: var(--font-weight-heading, 700);
}

.single-post-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.single-post-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.single-post-gallery__item a {
  display: block;
}

.single-post-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.single-post-gallery__item a:hover img {
  transform: scale(1.03);
}

.single-post-gallery__item figcaption {
  padding-top: 0.5rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.85rem;
}

.single-post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  background: rgba(24, 31, 25, 0.92);
}

.single-post-lightbox[hidden] {
  display: none;
}

.single-post-lightbox__figure {
  display: grid;
  gap: 0.75rem;
  max-width: min(90vw, 72rem);
  max-height: 90vh;
  margin: 0;
}

.single-post-lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.single-post-lightbox__figure figcaption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.single-post-lightbox__close,
.single-post-lightbox__navigation {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #425741;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.single-post-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.single-post-lightbox__navigation--previous {
  left: 1rem;
}

.single-post-lightbox__navigation--next {
  right: 1rem;
}

.single-post-lightbox__close:hover,
.single-post-lightbox__close:focus-visible,
.single-post-lightbox__navigation:hover,
.single-post-lightbox__navigation:focus-visible {
  background: #587258;
}

body.single-post-lightbox-open {
  overflow: hidden;
}

.single-post-content h1 {
  font-size: var(--h2-lg-size, 3.5rem);
  line-height: var(--h1-lg-height, 1.1);
  font-weight: var(--font-weight-heading, 700);
}

.single-post-content h2 {
  font-size: var(--h3-lg-size, 2.75rem);
  line-height: var(--h3-lg-height, 1.15);
  font-weight: var(--font-weight-heading, 700);
}

.single-post-content h3 {
  font-size: var(--h4-lg-size, 2.125rem);
  line-height: var(--h4-lg-height, 1.2);
  font-weight: var(--font-weight-heading, 700);
}

.single-post-content h4 {
  font-size: var(--h4-lg-size, 1.625rem);
  line-height: var(--h4-lg-height, 1.25);
  font-weight: var(--font-weight-heading, 700);
}

@media (width <= 768px) {
  .single-post-gallery__title {
    font-size: var(--h3-sm-size, 1.625rem);
  }

  .single-post-gallery__grid {
    grid-template-columns: 1fr;
  }

  .single-post-lightbox {
    padding: 3rem 1rem;
  }

  .single-post-lightbox__navigation--previous {
    left: 0.5rem;
  }

  .single-post-lightbox__navigation--next {
    right: 0.5rem;
  }

  .single-post-content h1 {
    font-size: var(--h1-sm-size, 2.25rem);
    line-height: var(--h1-sm-height, 1.15);
    font-weight: var(--font-weight-heading, 700);
  }

  .single-post-content h2 {
    font-size: var(--h2-sm-size, 2rem);
    line-height: var(--h2-sm-height, 1.2);
    font-weight: var(--font-weight-heading, 700);
  }

  .single-post-content h3 {
    font-size: var(--h3-sm-size, 1.625rem);
    line-height: var(--h3-sm-height, 1.25);
    font-weight: var(--font-weight-heading, 700);
  }

  .single-post-content h4 {
    font-size: var(--h4-sm-size, 1.375rem);
    line-height: var(--h4-sm-height, 1.3);
    font-weight: var(--font-weight-heading, 700);
  }
}
