/* The screenshots page: one picture at a time, an arrow either side, and what
   it shows underneath. Its own names (ts-*), on the colours of turingos.css. */
.tos-shots { background: #fff; }

.ts-page {
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 16px clamp(3.5rem, 8vw, 6rem);
  color: var(--tos-text, #0b0d14);
}

.ts-head { max-width: 46rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.ts-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #1f6bff;
}
.ts-head .ts-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
}
.ts-lead { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--tos-muted, #5a6072); }

.ts-viewer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  align-items: start;
  outline: none;
}
.ts-slides { grid-column: 2; margin: 0; padding: 0; list-style: none; }
.ts-slide figure { margin: 0; }

/* Every picture stands in the same frame, whatever its shape, so the arrows
   and the words under it do not jump about from one to the next. */
.ts-stage {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #f1f3f8;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(9, 12, 20, 0.08), 0 30px 70px -45px rgba(9, 12, 20, 0.45);
}
.ts-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

.ts-slide figcaption { max-width: 46rem; margin: 1.5rem auto 0; text-align: center; }
.ts-count { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--tos-dim, #8a90a2); }
.ts-slide h3 { margin: 0 0 0.6rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.ts-slide figcaption p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--tos-muted, #5a6072); }

.ts-arrow {
  display: none;
  width: 3.25rem; height: 3.25rem;
  /* level with the middle of the picture, not of the picture and its words */
  margin-top: calc((100vw - 32px - 9.5rem) * 0.28125 - 1.6rem);
  border: 1px solid rgba(9, 12, 20, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #0b0d14;
  cursor: pointer;
  box-shadow: 0 10px 30px -18px rgba(9, 12, 20, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ts-arrow:hover { background: #0b0d14; color: #fff; transform: scale(1.06); }
.ts-arrow:focus-visible, .ts-dot:focus-visible { outline: 2px solid #1f6bff; outline-offset: 3px; }
.ts-arrow svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-prev { grid-column: 1; grid-row: 1; }
.ts-next { grid-column: 3; grid-row: 1; }
@media (min-width: 1376px) { .ts-arrow { margin-top: calc((84rem - 32px - 9.5rem) * 0.28125 - 1.6rem); } }

.ts-dots { display: none; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 1.75rem; }
.ts-dot { width: 0.55rem; height: 0.55rem; padding: 0; border: 0; border-radius: 50%; background: #d5d9e4; cursor: pointer; }
.ts-dot.is-active { background: #0b0d14; }

.ts-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(2rem, 5vw, 3rem); }
.ts-btn {
  display: inline-flex; align-items: center; padding: 0.8rem 1.4rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.ts-btn-dark { background: #0b0d14; color: #fff; }
.ts-btn-glass { background: #f1f3f8; color: #0b0d14; }

/* With scripts: one picture at a time. Without: all of them, down the page. */
.ts-page.has-js .ts-slide { display: none; }
.ts-page.has-js .ts-slide.is-active { display: block; }
.ts-page.has-js .ts-arrow { display: inline-flex; align-items: center; justify-content: center; }
.ts-page.has-js .ts-dots { display: flex; }
.ts-page:not(.has-js) .ts-slide + .ts-slide { margin-top: 3.5rem; }
.ts-page:not(.has-js) .ts-viewer { display: block; }

@media (max-width: 720px) {
  /* The arrows come down beside the count, under the picture, where a thumb is. */
  .ts-viewer { grid-template-columns: 1fr 1fr; }
  .ts-slides { grid-column: 1 / -1; grid-row: 1; }
  .ts-arrow { margin-top: 1rem; width: 3rem; height: 3rem; }
  .ts-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .ts-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .ts-stage { border-radius: 12px; }
}

/* The buttons under the viewer on the page of its own. */
.ts-page-foot { padding-top: 0; }
.ts-page-foot .ts-foot { margin-top: 0; }
