.image-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: start;
}

.image-pair figure {
  text-align: center;
}

.image-pair img {
  width: 100%;
  height: auto;
  border: 2px solid #aaa;
  border-radius: 8px;
}

.image-pair figcaption {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #eee;
  text-transform: uppercase;
  font-size: 1rem;
}

.photo-caption {
  font-size: 1rem; /* sub-titleより少し小さめ */
  color: #fff;
  text-align: center;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  position: relative;
}

.photo-caption::before,
.photo-caption::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin: 0.5rem auto;
}
