/* AJCM 6.34.96 - réparation visuelle des médias historiques. */
.ajcm-media-repaired {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin: 24px auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(16,45,82,.12);
}

.ajcm-media-repaired--portrait {
  width: 112px;
  height: 112px;
  margin: 12px auto 18px;
  border-radius: 999px;
  object-fit: contain;
  padding: 12px;
  background: #eef4fb;
  box-shadow: none;
}

.ajcm-historical-gallery,
.ajcm-historical-gallery__single {
  margin: 22px 0 30px;
}

.ajcm-historical-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ajcm-historical-gallery__card,
.ajcm-historical-gallery__single {
  overflow: hidden;
  border: 1px solid #dbe6f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,45,82,.09);
}

.ajcm-historical-gallery__card img,
.ajcm-historical-gallery__single img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.ajcm-historical-gallery__card figcaption,
.ajcm-historical-gallery__single figcaption {
  margin: 0;
  padding: 12px 14px;
  color: #16395f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .ajcm-historical-gallery {
    grid-template-columns: 1fr;
  }
}
