/* Leitura em slideshow (/capitulos/<id>/ver) — "ler visualmente" com as imagens principais. */
.slideshow-page body,
body.slideshow-page { height: 100svh; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: #0a1a1a; }

.slideshow-main { min-height: 0; padding: 20px max(24px, calc((100vw - 1180px) / 2)) 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; background: #0a1a1a; color: #ece8df; }

.slideshow-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.slideshow-heading-copy { min-width: 0; }
.slideshow-heading .eyebrow { margin: 0 0 8px; }
.slideshow-heading h1 { margin: 0; font: 600 clamp(28px, 3.2vw, 42px) "Playfair Display", serif; }
.slideshow-mode-actions { display: flex; align-items: center; gap: 10px; }
.slideshow-mode-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: transparent;
  color: #c7d1cf;
  font: 600 11px "Manrope", sans-serif;
  cursor: pointer;
}
.slideshow-mode-link:hover { border-color: var(--copper); color: var(--gold); }
.slideshow-mode-link svg { width: 14px; height: 14px; }

.slideshow-stage { position: relative; width: auto; max-width: 100%; height: 100%; min-height: 0; aspect-ratio: 3 / 2; justify-self: center; outline: none; }
.slideshow-stage.is-wide { width: 100%; aspect-ratio: auto; }
.slideshow-layout-toggle { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(8, 23, 22, .72); backdrop-filter: blur(10px); }
.slide-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #071414;
}
.slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slideshow-stage.is-wide .slide-image { object-fit: cover; }
.slide-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 16, 16, .92), rgba(6, 16, 16, .1) 55%),
    radial-gradient(circle at 85% 15%, rgba(43, 99, 94, .35), transparent 45%);
}
.slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 4vw, 52px);
  max-width: 780px;
}
.slide-copy small {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: var(--gold);
  font: 600 9px "Manrope", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.slide-copy blockquote { margin: 0 0 10px; color: #f4f1e9; font: 400 italic clamp(20px, 2.6vw, 30px)/1.4 "Playfair Display", serif; }
.slide-summary { margin: 0; color: #b9c4c1; font-size: 13px; line-height: 1.6; }
.slideshow-stage.is-wide .slide-copy { max-width: min(720px, 72%); padding: clamp(20px, 3vw, 44px); }
.slideshow-stage.is-wide .slide-copy blockquote { font-size: clamp(18px, 2vw, 27px); line-height: 1.35; }

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(10, 24, 24, .55);
  color: #ece8df;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.slide-arrow:hover { border-color: var(--copper); background: rgba(10, 24, 24, .8); }
.slide-arrow:disabled { opacity: .3; cursor: default; }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
.slide-arrow svg { width: 20px; height: 20px; }

.slide-thumbs {
  margin-top: 0;
  padding-bottom: 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.slide-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  transition: opacity .16s ease, border-color .16s ease;
}
.slide-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-thumbs button:hover { opacity: .85; }
.slide-thumbs button.active { opacity: 1; border-color: var(--copper); }

.slideshow-nav.reading-nav { width: 100%; max-width: none; margin: 0; padding-top: 10px; border-top-color: rgba(255, 255, 255, .1); }
.slideshow-nav.reading-nav a { color: var(--gold); }
.slideshow-nav.reading-nav .reading-nav-index { color: #8ba09c; }

@media (max-width: 640px) {
  .slide-thumbs button { width: 64px; height: 44px; }
  .slide-arrow { width: 38px; height: 38px; margin-top: -19px; }
}
