.text-block { padding: 1rem 0 2rem; }
.text-in-section { padding: 0; }
.text-block:not(:has(img)) h2,
.text-block:not(:has(img)) .prose { max-width: 42rem; }
.text-block figure { margin: 0 0 1.5rem; }
.text-media { margin: 0 0 1.5rem; }
.text-photo { position: relative; }
.text-media figure,
.text-media img { margin: 0; border-radius: var(--radius); }
.text-media figcaption { margin-top: 0.45rem; }
.text-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(16rem, 70%);
}
.text-aside-left .text-badges {
  top: auto;
  right: auto;
  bottom: 1rem;
  left: 1rem;
  align-items: flex-start;
}
.text-aside-right .text-badges {
  top: auto;
  bottom: 1rem;
  right: 1rem;
}
.text-aside .text-media img { width: 100%; height: auto; }
@media (min-width: 768px) {
  .text-aside {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem 2.75rem;
    align-items: center;
  }
  .text-aside .text-media { margin: 0; }
  .text-aside-right { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .text-aside-right .text-media { order: 2; }
}
.text-media .page-badge img {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: 50%;
  background: #fff4d2;
  object-fit: contain;
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
