/* Flip through an artist's pictures. Made for a thumb: one picture as big as
   the screen allows, swiped, with the artists in a strip that scrolls
   sideways rather than wrapping into a wall of buttons. */

.flip-page .Master > section.flip {
  padding: 10px 16px 20px;
  max-width: 64rem;
  margin: 0 auto;
}

.flip-page footer {
  display: flex;
  padding: 2px 10px;
  margin: 0;
}

.flip-page .build-tag {
  font-family: var(--font-display);
  font-size: var(--footer-size);
  letter-spacing: 0.04em;
  opacity: 0.45;
  margin: 0;
}

.flip-artists {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.flip-artist {
  flex: none;
  font: inherit;
  font-size: calc(1rem * var(--font-scale, 1));
  min-height: 2.8rem;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--button-bg);
  color: inherit;
  cursor: pointer;
}

.flip-artist.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.flip-status {
  color: var(--ink-muted);
  font-size: calc(1.05rem * var(--font-scale, 1));
}

.flip-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* As tall as the screen allows after the bars, so a portrait photograph is
     not squeezed into a letterbox. */
  height: min(72vh, 46rem);
  height: min(72dvh, 46rem);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  /* Up and down still scroll the page; sideways belongs to flip.js. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.flip-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease-out, opacity 0.18s;
  will-change: transform;
}

.flip-stage.is-dragging img { transition: none; }

.flip-go {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.2rem;
  height: 4.4rem;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.flip-go--prev { left: 6px; }
.flip-go--next { right: 6px; }
.flip-go:active { background: rgba(0, 0, 0, 0.7); }

.flip-count {
  margin: 10px 0 0;
  text-align: center;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.flip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-size: calc(1.05rem * var(--font-scale, 1));
  line-height: 1.5;
}

.flip-text b { font-size: calc(1.2rem * var(--font-scale, 1)); }
.flip-text i { color: var(--ink-muted); }
.flip-text span { color: var(--ink-muted); }

.flip-links { margin: 14px 0 0; }

@media (max-width: 720px) {
  .flip-page .Master > section.flip { padding: 6px 8px 16px; }

  /* Fingers do the paging on a phone; the buttons stay for anybody who does
     not know to swipe, but smaller and out of the picture's way. */
  .flip-go { width: 2.6rem; height: 3.6rem; opacity: 0.8; }
}
