/* Post stylesheet: shared by every Post, linked after site.css. */

sup {
  font-size: 0.6em;
}

/* Photos */

.image-cards {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin: 2em 0;
}

/* Cards in a row share its width equally, which gives equal heights when the
   photos have the same shape. If they don't, set --ratio (width/height) on
   every figure in that row: <figure style="--ratio: 448/637">. */
.image-cards figure {
  flex: calc(var(--ratio, 1)) 1 0%;
  min-width: 0;
  margin: 0;
}

.image-cards figure img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.photo-single {
  margin: 2em 0;
  text-align: center;
}

.photo-single img {
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.photo-collage {
  margin: 2em 0;
}

.photo-collage .image-cards {
  margin: 0;
}

figcaption {
  margin-top: 0.5em;
}

/* Modifiers: apply to .photo-single, .photo-collage or .image-cards */

.photo-single.--sm,
.photo-collage.--sm,
.image-cards.--sm {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .photo-single.--sm,
  .photo-collage.--sm,
  .image-cards.--sm {
    max-width: 65%;
  }
}

.photo-single.--wide,
.photo-collage.--wide,
.image-cards.--wide {
  margin-left: -15vw;
  margin-right: -15vw;
}

@media (max-width: 1000px) {
  .photo-single.--wide,
  .photo-collage.--wide,
  .image-cards.--wide {
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* Footnotes */

.footnotes {
  margin-top: 2em;
}

.footnotes p {
  margin: 0.25em 0;
}
