figure {
  display: block;
  margin: 2rem auto;
  text-align: center;
}

figure img {
  max-width: 380px;          
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
  background: #0c0c14;      
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 4rem;               
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1100px;      
}

.image-row figure {
  text-align: center;
  max-width: 420px;          
  flex: 1 1 260px;          
  margin: 0;
  opacity: 0.96;            
}

.image-row figure:hover {
  opacity: 1;
}

.image-row img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

figcaption.caption {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  border-radius: calc(var(--radius) * 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 100%;
}

.image-row figure:hover figcaption.caption {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  figcaption.caption {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
  }
}
