/* A+B: keyboard access and full-size photographs. Existing grid remains unchanged. */
.project-cover:focus-visible { outline: 2px solid #eee; outline-offset: -2px; }
.project-cover:focus-visible .details-wrap { opacity: 1; }
.project-cover:focus-visible .cover-image:after { background: #010101; opacity: .65; }
.ab-viewer { background: #020202; color: #eee; border: 0; padding: 0; margin: auto; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; }
.ab-viewer:not([open]) { display: none; }
.ab-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.ab-viewer::backdrop { background: #020202; }
.ab-viewer-header, .ab-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; font: 14px/1.4 Arial,sans-serif; }
.ab-viewer-caption { margin: 0; max-width: calc(100% - 65px); }
.ab-viewer-image { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%); }
.ab-viewer button { font: 22px/1 Arial,sans-serif; color: #eee; background: transparent; border: 1px solid #555; border-radius: 0; min-width: 44px; min-height: 44px; cursor: pointer; }
.ab-viewer button:hover { border-color: #eee; }
.ab-viewer button:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.ab-viewer-count { margin: 0; color: #aaa; }
.ab-viewer-open { overflow: hidden; }
@media (max-width: 540px) { .ab-viewer-header,.ab-viewer-footer { padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .project-cover .cover-image:after,.project-cover .details-wrap { transition: none; } }
