/* ===== PAGE PHOTOS D'UNE ÉDITION ===== */

.ph-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 4rem 5rem;
}

/* --- Intro --- */
.ph-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.ph-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ph-back:hover { color: var(--gold); }

.ph-intro .section-title { margin: 0.5rem 0 1.5rem; }

.ph-lead {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.ph-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.ph-cta-note {
  flex: 1 1 240px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Grille en mosaïque (colonnes CSS) --- */
.ph-grid {
  columns: 3;
  column-gap: 12px;
}

.ph-grid .gallery-item {
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
}

.ph-grid .gallery-item img {
  height: auto;
}

/* --- Fin de galerie --- */
.ph-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: center;
}

.ph-credit {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Lightbox : la photo occupe un peu plus d'écran sur cette page --- */
.page-photos .lightbox-img-wrap { max-width: 92vw; max-height: 88vh; }
.page-photos .lightbox-img { max-height: 88vh; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ph-main { padding: 3rem 1.25rem 4rem; }
  .ph-grid { columns: 2; column-gap: 8px; }
  .ph-grid .gallery-item { margin-bottom: 8px; border-radius: 8px; }
}

/* Bandeau : cadrage remonté pour garder de l'air au-dessus du coureur
   sur les écrans très larges */
.page-photos .ed-hero-media img { object-position: center 35%; }
