.photo-fan { max-width: 820px; margin: 0 auto; }
.fan-stage { display: block; position: relative; width: 100%; aspect-ratio: 3 / 2; margin: 24px 0 36px; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.fan-card { position: absolute; inset: 5% 7%; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(32,26,29,.2); pointer-events: none; }
.fan-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.fan-back-two { transform: translateX(5%) rotate(7deg); z-index: 1; }
.fan-back-one { transform: translateX(-4%) rotate(-5deg); z-index: 2; }
.fan-front { z-index: 3; }
.fan-out { z-index: 4; }
.fan-controls { display: flex; justify-content: center; align-items: center; gap: 24px; }
.fan-count { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.fan-stage:focus-visible { outline: 3px solid var(--garnet); outline-offset: 12px; border-radius: 12px; }
@media (max-width: 520px) { .fan-card { padding: 4px; } .fan-stage { margin-bottom: 24px; } }

.fan-enlarge-control { margin-top: 12px; text-align: center; }
.fan-viewer { max-width: calc(100% - 24px); max-height: calc(100% - 24px); padding: 12px; border: 0; border-radius: var(--radius); background: var(--white); }
.fan-viewer::backdrop { background: rgba(32, 26, 29, 0.8); }
.fan-viewer form { margin-bottom: 8px; text-align: right; }
.fan-viewer img { width: auto; height: auto; max-width: min(1100px, calc(100vw - 48px)); max-height: calc(100dvh - 96px); object-fit: contain; }