/* SOURCE — poème en regard de la première photographie.
   Aucun style de galerie existant n’est modifié. */
.pendhore-project .opening .source-poem {
  flex: 1 1 0;
  min-width: 0;
  max-width: 390px;
  margin-left: clamp(28px, 6.5vw, 92px);
  padding-top: 7px;
  align-self: flex-start;
  color: #585b58;
}
.source-poem-controls {
  display: flex;
  gap: 11px;
  align-items: center;
  font: 400 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
  color: #8b8f8c;
  margin: 0 0 34px;
}
.source-poem-lang {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 2px 6px;
  cursor: pointer;
}
.source-poem-lang.is-active { color: #262a26; border-bottom-color: #262a26; }
.source-poem-lang:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.source-poem-version[hidden] { display: none !important; }
.source-poem-version { animation: sourcePoemFade .45s ease both; }
.source-poem-version p {
  font: 400 clamp(12px, 1.08vw, 14px)/1.8 Arial, Helvetica, sans-serif;
  letter-spacing: .015em;
  margin: 0 0 18px;
  text-align: left;
  white-space: nowrap;
}
.source-poem-version p:last-child { margin-bottom: 0; }
@keyframes sourcePoemFade { from { opacity: 0; transform: translateY(5px) } to { opacity: 1; transform: translateY(0) } }
@media(max-width: 950px) and (min-width: 701px) {
  .pendhore-project .opening .source-poem { margin-left: 26px; }
  .source-poem-version p { white-space: normal; font-size: 12px; }
}
@media(max-width: 700px) {
  /* La première photo conserve exactement sa position et sa taille.
     Le texte passe ensuite sous la photo pour rester lisible. */
  .pendhore-project .opening { flex-direction: column; align-items: flex-start; }
  .pendhore-project .opening .source-poem {
    flex: none;
    width: min(78%, 350px);
    max-width: none;
    align-self: flex-end;
    margin: 52px 1% 0 0;
    padding-top: 0;
  }
  .source-poem-controls { margin-bottom: 27px; }
  .source-poem-version p { font-size: 13px; line-height: 1.85; white-space: normal; }
}
@media(prefers-reduced-motion:reduce) { .source-poem-version { animation: none; } }
