.photo-viewer { margin: auto; width: min(1200px, 96vw); max-width: 96vw; max-height: 94vh; padding: 52px 16px 16px; border: 0; border-radius: 12px; background: #15212d; color: #fff; }
.photo-viewer::backdrop { background: #000d; }
.photo-viewer figure { margin: 0; text-align: center; }
.photo-viewer__image { display: block; max-width: 100%; max-height: 74vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.photo-viewer figcaption { padding: 12px 0 0; line-height: 1.6; }
.photo-viewer__close { position: absolute; top: 10px; right: 12px; padding: 8px 16px; border: 1px solid #fff8; border-radius: 6px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.photo-viewer__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
