.viewer-page {
  width: min(1160px, calc(100% - 32px));
  margin: 140px auto 72px;
}

.viewer-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.viewer-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.9;
}

.viewer-header > p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.6;
}

.viewer-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 920px) 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.viewer-panel-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.viewer-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.36);
}

.viewer-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.viewer-panel figcaption {
  min-height: 92px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.4;
}

.viewer-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2.1rem;
  font-weight: 900;
  cursor: pointer;
}

.viewer-controls {
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 900px;
}

.viewer-count {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

@media (max-width: 760px) {
  .viewer-stage {
    grid-template-columns: 1fr 1fr;
  }

  .viewer-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .viewer-panel-group {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .viewer-panel figcaption {
    min-height: auto;
  }

  .viewer-arrow {
    width: 100%;
    grid-row: 2;
  }

}
.viewer-progress-label { margin-top: 12px; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; }
.viewer-progress-track { width: min(440px,100%); height: 8px; margin: 8px auto 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.viewer-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffb7a5,#bfa8ff); transition: width .25s ease; }
.viewer-reset-progress { padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: white; background: rgba(255,255,255,.07); font: 800 .8rem Inter,sans-serif; cursor: pointer; }
