/* In-page photo viewer; the approved gallery layout remains unchanged. */
.photography-open { display: block; cursor: zoom-in; }
.photography-open:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.photo-viewer { width: min(96vw, 1600px); height: 94vh; height: 94dvh; max-width: none; max-height: none; padding: 0; border: 1px solid #59655d; margin: auto; background: #111713; color: #f7f8f5; }
.photo-viewer:not([open]) { display: none; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 78%); }
.photo-viewer-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-width: 0; }
.photo-viewer-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 15px 20px; }
.photo-viewer-header h2 { font: 600 22px/1.35 var(--display); color: #f7f8f5; }
.photo-viewer-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-viewer button { min-height: 44px; padding: 8px 14px; border: 1px solid #8b9a8e; border-radius: 0; background: #1e2b22; color: #f7f8f5; font: 600 14px/1.4 var(--sans); cursor: pointer; }
.photo-viewer button:hover { background: #304635; }
.photo-viewer button:focus-visible, .photo-viewer-stage:focus-visible { outline: 3px solid #b8d2b2; outline-offset: 3px; }
.photo-viewer button:disabled { cursor: default; opacity: .55; }
.photo-viewer-stage { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; background: #0a0e0b; }
.photo-viewer-image { cursor: zoom-out; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-viewer-stage.is-original-size { display: block; overflow: auto; overscroll-behavior: contain; }
.photo-viewer-stage.is-original-size .photo-viewer-image { width: var(--photo-native-width); height: var(--photo-native-height); max-width: none; max-height: none; }
.photo-viewer-image:focus-visible { outline: 3px solid #b8d2b2; outline-offset: -3px; }
.photo-viewer-footer { padding: 12px 20px 16px; }
.photo-viewer-footer p { color: #f7f8f5; font: 400 14px/1.6 var(--sans); }
.photo-viewer-footer .photo-viewer-status { margin-top: 4px; color: #c3cec6; font-size: 13px; }
@media (max-width: 700px) {
  .photo-viewer { width: 100vw; height: 100vh; height: 100dvh; border: 0; }
  .photo-viewer-header { gap: 10px; padding: 12px; }
  .photo-viewer-header h2 { font-size: 20px; }
  .photo-viewer-controls { gap: 8px; }
  .photo-viewer button { padding-inline: 10px; }
  .photo-viewer-image:focus-visible { outline: 3px solid #b8d2b2; outline-offset: -3px; }
.photo-viewer-footer { padding: 10px 12px 12px; }
}

.photography-photo img { aspect-ratio: auto; }
