/* Portfolio-style rule sequence for Public Opinion. */

.slide-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stage-viewport-card {
  width: 100%;
  aspect-ratio: 2752 / 1536;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  user-select: none;
}

.stage-viewport-card:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}

.stage-scene-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: high-quality;
  transition: opacity .22s ease, transform .25s ease;
  pointer-events: none;
}

.stage-scene-img.fade-out {
  opacity: .15;
  transform: scale(.99);
}

.stage-side-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid #bcbcb5;
  border-radius: 0;
  background: rgba(250, 249, 246, .92);
  color: #171717;
  cursor: pointer;
  opacity: .22;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.stage-viewport-card:hover .stage-side-arrow,
.stage-viewport-card:focus-within .stage-side-arrow {
  opacity: .9;
}

.stage-side-arrow:hover:not(:disabled) {
  opacity: 1;
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.stage-side-arrow:disabled {
  opacity: .08 !important;
  cursor: not-allowed;
}

.stage-arrow-left { left: 18px; }
.stage-arrow-right { right: 18px; }

.stage-progress {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  transform: translateX(-50%);
  background: rgba(250, 249, 246, .9);
  color: #171717;
  font: 700 12px/1.4 Arial, "Noto Sans SC", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.stage-progress-sep { color: #8a8a82; font-weight: 400; }

.stage-caption-card {
  width: 100%;
  display: block;
  padding: 28px 0 16px;
  text-align: center;
  transition: opacity .22s ease, transform .22s ease;
}

/* The deck is embedded as two edge-to-edge sections on the portfolio paper. */
body.embed-page {
  background: transparent;
}

body.embed-page .main-container {
  padding: 0 0 16px;
}

.stage-caption-card.fade-out {
  opacity: .15;
  transform: translateY(4px);
}

.caption-index {
  display: none;
  margin: 0;
  color: #5b5b55;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
}

.caption-copy {
  width: min(100%, 820px);
  margin-inline: auto;
  min-width: 0;
}

.caption-title {
  margin: 0 0 14px;
  color: #171717;
  font: 700 30px/1.16 Arial, "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

.caption-desc {
  margin: 0;
  font: 400 15px/1.6 Arial, "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  color: #252525;
}

@media (max-width: 860px) {
  .caption-title { font-size: 25px; }
  .caption-desc { font-size: 14px; }
  .stage-side-arrow { width: 38px; height: 38px; opacity: .7; }
}

@media (max-width: 640px) {
  .slide-wrapper { margin: 16px auto 24px; gap: 16px; }
  .stage-caption-card { padding: 0; }
  .caption-title { font-size: 23px; margin-bottom: 8px; }
}
