.hero-image {
  margin-bottom: var(--space-2xl);
}
.hero-image figure {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}
.hero-image figure img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-image figcaption {
  font-size: 13px;
  color: var(--color-meta);
  padding: 12px 14px 14px;
  line-height: 1.45;
}

.inline-figure-float {
  float: right;
  width: 220px;
  margin: 0 0 var(--space-lg) var(--space-xl);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.inline-figure-float img {
  width: 100%;
  height: auto;
  display: block;
}
.inline-figure-float figcaption {
  font-size: 12px;
  color: var(--color-meta);
  padding: 10px 12px 12px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .inline-figure-float {
    float: none;
    width: 60%;
    margin: var(--space-lg) auto var(--space-lg);
  }
}
.media-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
}
@media (max-width: 760px) {
  .media-grid-3 { grid-template-columns: 1fr; }
}

.portrait-media-grid figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portrait-media-grid figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.square-media-grid figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.uniform-media-grid figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.uniform-media-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
