.fp-feed {
  --fp-width: 640px;
  max-width: var(--fp-width);
  margin: 0 auto;
}

.fp-post {
  margin: 0 0 2.5rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  padding-bottom: 1rem;
}

/* L'image garde ses proportions, ne dépasse ni la largeur du fil
   ni une part de la hauteur de l'écran (--fp-max-h, en % de la hauteur). */
.fp-img {
  display: block;
  margin: 0 auto;
  height: auto;
  aspect-ratio: var(--fp-ratio, 1);
  width: min(100%, calc(var(--fp-max-h, 90) * 1vh * var(--fp-ratio, 1)));
  width: min(100%, calc(var(--fp-max-h, 90) * 1dvh * var(--fp-ratio, 1)));
}

/* Smartphone en paysage : la hauteur disponible est trop faible,
   on lève la limite et l'image prend toute la largeur (défilement vertical). */
@media (orientation: landscape) and (max-height: 500px) {
  .fp-feed {
    max-width: none;
  }
  .fp-img {
    width: 100%;
  }
}

.fp-meta {
  padding: 0.75rem 0.25rem 0;
}

.fp-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.fp-caption {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.fp-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.fp-sentinel {
  height: 1px;
}

.fp-end {
  text-align: center;
  opacity: 0.6;
  margin: 2rem 0;
}

.fp-feed.is-loading::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 1.5rem auto;
  border: 3px solid rgba(128, 128, 128, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: fp-spin 0.8s linear infinite;
}

@keyframes fp-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fp-feed.is-loading::after { animation: none; }
}
