/* Page-specific styles for Refine AI. Loaded after the shared CSS. */

/* Visuals with short captions, below the intro.
   48px between every section, the same rhythm as hero → intro. */
.shots {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

/* An 8px matte in the placeholder tone around each image (960 → 944 × 531) */
.shot__media {
  padding: var(--space-2);
  background: var(--media-placeholder);
}

.shot__media > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Four illustrations in one matte: 2 × 2 with 8px between them (944 → 468 × 263 each).
   Stacked on narrow screens, where a quarter-size tile would be too small to read. */
.shot__media--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.shot__media--grid > img,
.shot__media--grid > iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  background: #18181b; /* the illustrations' own backdrop while they load */
}

.shot__media--grid > iframe {
  pointer-events: none; /* purely visual; never steals scroll or clicks */
}

@media (min-width: 45em) {
  .shot__media--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Two square images side by side at every width (944 → 468 × 468 each) */
.shot__media--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot__media--pair > img {
  aspect-ratio: 1;
}

/* No image chosen yet: reserve the same 16:9 area inside the matte */
.shot__media:empty::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
}

.shot figcaption {
  max-width: var(--col-text); /* 544, same measure as the intro */
  margin-top: var(--space-4);
  padding-inline: var(--text-inset);
  color: var(--text-secondary);
}

.shot__title {
  font-weight: 600;
  color: var(--text-primary);
}
