.panorama { padding: 8px 0 32px; }
.panorama-stage {
  position: relative; height: clamp(350px, 34vw, 520px); margin: 0 auto;
  overflow: hidden; border-radius: 24px; cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.panorama-stage.is-dragging { cursor: grabbing; }
.panorama-stage:focus-visible { outline-offset: -4px; }
.panorama-ring { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.panorama-card {
  position: absolute; top: 50%; left: 50%; width: var(--panorama-card-width, 190px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 16px; background: var(--well); backface-visibility: hidden;
  cursor: inherit; outline: none; will-change: transform; border: 1px solid color-mix(in srgb, var(--edge), transparent 65%);
}
.panorama-card > img, .panorama-password-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.panorama-card > .cover-letter { position: absolute; inset: 0; }
.panorama-password-cover { position: relative; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.panorama-password-cover > img { position: absolute; inset: 0; }
.panorama-password-cover .password-cover-label { padding: 14px 12px; gap: 7px; }
.panorama-password-cover .password-cover-label svg { width: 25px; height: 25px; }
.panorama-caption { min-height: 103px; max-width: 680px; margin: 0 auto; text-align: center; padding: 0 20px; }
.panorama-title { font-size: 20px; font-weight: 560; line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.panorama-title:hover { text-decoration: underline; text-underline-offset: 5px; }
.panorama-subtitle { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.panorama-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 13px; }
.panorama-actions .pill { min-height: 30px; padding: 0 12px; font-size: 11px; font-weight: 450; }
.panorama-actions .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.panorama-count { min-width: 56px; text-align: center; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.panorama-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .panorama { padding-top: 0; padding-bottom: 24px; }
  .panorama-stage { height: 340px; margin-inline: -8px; }
  .panorama-caption { padding-inline: 12px; min-height: 112px; }
  .panorama-title { font-size: 18px; }
  .panorama-subtitle { font-size: 12px; }
  .panorama-actions .pill { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .panorama-card { will-change: auto; } }
