/* v0.5: S3 storage story. Scoped to the approved S3 change. */
.s3__head {
  max-width: 760px;
  margin-inline: auto;
}

.s3__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.s3-story__item {
  min-width: 0;
  margin: 0;
}

.s3-story__media {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f0f0e;
}

.s3-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.s3-story__caption {
  display: grid;
  gap: .5rem;
  padding-top: 1rem;
}

.s3-story__caption span {
  color: #aaa99f;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
}

.s3-story__caption p {
  margin: 0;
  color: #fff;
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  font-weight: 700;
  line-height: 1.7;
}

.s3-story__item:nth-child(2) {
  transition-delay: 100ms;
}

.s3-story__item:nth-child(3) {
  transition-delay: 200ms;
}

@media (max-width: 900px) {
  .s3__head {
    max-width: 34rem;
  }

  .s3__head .section-title {
    font-size: clamp(1.7rem, 7vw, 2rem);
  }

  .s3__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .s3-story__media {
    aspect-ratio: 1;
  }

  .s3-story__caption {
    padding-top: .75rem;
  }

  .s3-story__caption p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s3-story__item {
    transition-delay: 0ms !important;
  }
}

body.motion-reduced .s3-story__item {
  transition-delay: 0ms !important;
}
