/* =========================================================
   Facts Detail (under map) — simple, background-blended
   ========================================================= */
/* add consistent side inset just for the text content */
:root{
  --factsd-side-pad: 3.0rem;          /* tweak to taste (e.g. 1.25rem) */
  --factsd-max-ch: 68ch;              /* optional: keeps line length comfortable */
}

.factsd-section{
  /* under map: give breathing space */
  padding: 3rem 0 0 0;
}

/* Vertical stack of detail blocks */
.factsd-list{
  display: grid;
  gap: 2rem;                /* space between blocks */
}

/* One detail block */
.factsd-item{
  display: grid;
  gap: .5rem;
}

/* Headline: centered; lighter weight to feel editorial */
.factsd-headline{
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.25;
  margin: 0;
}

/* Force a horizontal crop on detail images */
.factsd-image{
  width: 100%;
  /* pick your ratio (16/9 is common; change to 4/3 or 21/9 if you prefer) */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

/* Optional fallback if an older browser doesn't support aspect-ratio */
@supports not (aspect-ratio: 9 / 16){
  .factsd-image{
    height: 56.25vw;       /* ~9/16 of viewport width */
    max-height: 280px;     /* cap it so it doesn’t get too tall */
  }
}

/* Justified text (Blocksatz) with hyphenation */
.factsd-text{
  padding-inline: var(--factsd-side-pad);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--factsd-max-ch);

  /* ADDED: Blocksatz formatting */
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Optional: reduce extra gap after the last block */
.factsd-section .factsd-list > .factsd-item:last-child{
  margin-bottom: .5rem;
}

/* If you use a sharp font specifically here, you can set it:
.factsd-section, .factsd-headline, .factsd-text{
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*/
.fact-text,
#factsDetailContainer p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
