/* Rep Resources presentation (present.html), from the Viewfinders meeting show:
   black, full screen, nothing but the slide. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #000; color: #fff; font-family: "Inter", system-ui, sans-serif; overflow: hidden; }
[hidden] { display: none !important; }

.stage { position: fixed; inset: 0; display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.stage img, .stage canvas { max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; display: block; }
.note { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.6rem); text-align: center; padding: 0 24px; max-width: 900px; line-height: 1.3; }
.note a { color: #fff; }

/* The member's name on a Photo Share photo: big enough to read across the room. */
.caption {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 36px 24px calc(18px + env(safe-area-inset-bottom));
  text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 3.4rem); letter-spacing: 0.04em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0)); text-shadow: 0 2px 8px #000; pointer-events: none;
}

/* Controls fade away while the show runs; any mouse move or tap brings them back. */
.controls {
  position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  transition: opacity 0.4s ease;
}
body.idle:not(.framed):not(.loading) .controls { opacity: 0; pointer-events: none; }
body.idle:not(.framed):not(.loading) { cursor: none; }
.spacer { flex: 1; }
.count { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.ctl {
  background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid #fff; padding: 8px 14px; font: 500 0.75rem "Inter", sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; text-decoration: none; min-width: 44px; text-align: center;
}
.ctl:hover { background: #fff; color: #000; }
#prev, #next { font-size: 1.2rem; letter-spacing: 0; padding: 4px 14px; }
@media (max-width: 520px) { #full { display: none; } }

/* A Google Slides presentation: Google's own player, under the controls bar,
   which stays up while it shows. */
.stage iframe.gslides { position: absolute; left: 0; right: 0; bottom: 0; top: calc(56px + env(safe-area-inset-top)); width: 100%; height: calc(100% - 56px - env(safe-area-inset-top)); border: 0; background: #000; }
body.framed .controls { background: #000; }

