a[data-photo] { display: block; cursor: zoom-in; }
a[data-photo]:focus-visible, .photo-viewer button:focus-visible { outline: 2px solid #ffb581; outline-offset: 3px; }
.photo-viewer { width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 10px 14px 14px; border: 1px solid #615a50; border-radius: 16px; color: #f4f1e7; background: #171815; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.photo-viewer figure { margin: 0; }
.photo-viewer img { display: block; width: 100%; max-height: min(72vh, calc(100dvh - 166px)); object-fit: contain; }
.photo-viewer figcaption { margin: 9px 0; text-align: center; }
.photo-viewer button { min-height: 44px; min-width: 44px; border: 1px solid #746a5c; border-radius: 8px; color: inherit; background: #2c2d26; font: 26px/1 system-ui; cursor: pointer; }
.photo-viewer .photo-close { display: block; margin: 0 0 8px auto; }
.photo-controls:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 18px; }
