.a-day-after-page #content {
  padding: 20px;
  box-sizing: border-box;
}

.a-day-after-page .hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.a-day-after-page .sphere-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5em 1em;
  max-width: 1000px;
  margin: 0 auto 2.5em;
  text-align: center;
}

.a-day-after-page .sphere-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.a-day-after-page .sphere-item img {
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.a-day-after-page .sphere-item figcaption {
  margin-top: 0.5em;
  font-size: 0.8em;
  line-height: 1.3;
}

.a-day-after-page .sphere-link {
  margin: 0.4em 0 0;
  font-size: 0.85em;
  line-height: 1.3;
}

.a-day-after-page .screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
  max-width: 1000px;
  margin: 0 auto 2em;
}

.a-day-after-page .screenshot-item {
  min-width: 0;
}

.a-day-after-page .screenshot-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}

/* tablet landscape */
@media (max-width: 1024px) {
  .a-day-after-page .sphere-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .a-day-after-page .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* tablet portrait */
@media (max-width: 768px) {
  .a-day-after-page #content {
    padding: 16px;
  }

  .a-day-after-page .sphere-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em 0.75em;
  }

  .a-day-after-page .sphere-item img {
    max-width: 120px;
  }

  .a-day-after-page .sphere-item figcaption,
  .a-day-after-page .sphere-link {
    font-size: 0.8em;
  }
}

/* mobile portrait */
@media (max-width: 480px) {
  .a-day-after-page #content {
    padding: 12px;
  }

  .a-day-after-page h1 {
    font-size: 1.5em;
  }

  .a-day-after-page .sphere-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25em 0.5em;
  }

  .a-day-after-page .sphere-item img {
    max-width: 100%;
  }

  .a-day-after-page .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

/* mobile landscape / small height */
@media (max-height: 500px) and (orientation: landscape) {
  .a-day-after-page .sphere-item img {
    max-width: 90px;
  }
}
