/* The supplied photography sketch: a quiet viewer with a contact-sheet option. */
.about-photography{grid-column:5/9;grid-row:1/3;gap:24px;position:relative;min-height:600px}
.photography-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.photography-heading-row h3,.photography-count{flex:none}
.about-photography h3{color:var(--muted);font:400 1rem/1.4 Inter,Arial,sans-serif;text-transform:uppercase}
.photography-count{color:var(--muted);font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.photography-stage{position:relative;flex:1;min-height:320px}
.photography-single{container-type:size;position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:0}
.photography-frame{position:relative;align-self:stretch;justify-self:stretch;width:100%;height:100%;aspect-ratio:auto;min-width:0;min-height:0;margin:0;overflow:hidden}
.photography-frame img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.photography-arrow{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:var(--control-radius);background:var(--surface-subtle);color:var(--ink);cursor:pointer;touch-action:manipulation;transition:color .16s,border-color .16s,background-color .16s}
.photography-arrow svg{display:block;width:20px;height:20px}
.photography-previous svg{transform:rotate(180deg)}
.photography-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:max-content;gap:8px;align-content:start;overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto;scrollbar-gutter:stable;padding:3px}
.photography-thumbnail{position:relative;display:block;width:100%;height:auto;aspect-ratio:3/4;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;touch-action:manipulation}
.photography-thumbnail img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.photography-scroll-cue{display:block;flex:1;min-width:0;color:var(--muted);font:400 1rem/1.4 Inter,Arial,sans-serif;text-align:center;pointer-events:none;user-select:none}
.photography-scroll-cue[hidden]{display:block;visibility:hidden}
.photography-view-toggle{display:flex;align-items:center;justify-content:center;gap:8px}
.photography-view-toggle button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:88px;min-height:44px;padding:10px 16px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);font:400 1rem/1.4 Inter,Arial,sans-serif;text-transform:none;cursor:pointer;touch-action:manipulation;transition:color .16s,background-color .16s}
.photography-view-toggle button[aria-pressed="true"]{color:var(--brand-primary);background:transparent}
.photography-arrow:is(:hover,:focus-visible,:active){color:var(--brand-primary);border-color:var(--brand-primary);background:var(--surface-subtle)}
.photography-view-toggle button:is(:hover,:focus-visible,:active){color:var(--brand-primary);background:transparent}
/* Keep hover and keyboard rings inside each tile, including at scroll edges. */
.photography-thumbnail::after{content:"";position:absolute;inset:0;z-index:1;border:1px solid transparent;pointer-events:none}
.photography-thumbnail:hover::after{border-color:var(--brand-primary)}
.about-photography button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.about-photography .photography-thumbnail:focus-visible{outline:none}
.photography-thumbnail:focus-visible::after{border:3px solid var(--focus-ring)}
.photography-status,.photography-help{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.photography-single[hidden],.photography-grid[hidden]{display:none}
@media(min-width:601px) and (max-width:900px){.about-photography{grid-column:2;grid-row:1;min-height:540px;padding:24px}.photography-single{gap:8px}.photography-grid{gap:8px}}
@media(max-width:600px){.about-photography{grid-column:1;grid-row:auto;min-height:540px;padding:32px 24px;gap:24px}.photography-stage{min-height:350px}.photography-single{gap:8px}.photography-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){.about-photography button{transition:none}}

/* A brief stepped reveal inside the shared 3:4 photo frame. */
.photography-frame>img:not(.photography-ghost){z-index:2}
.photography-frame .photography-ghost{z-index:1;pointer-events:none}
.photography-scan{position:absolute;top:0;bottom:0;left:0;width:1px;z-index:3;background:var(--brand-primary);opacity:.35;pointer-events:none}
.photography-view-toggle svg{display:block;flex:none;width:18px;height:18px}
.photography-arrow:active{transform:translateY(1px)}

/* Browsing controls sit below the photo, leaving its full width available. */
.photography-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;flex:none}
.photography-controls .photography-view-toggle{gap:0;min-width:0}
.photography-controls .photography-view-toggle button{min-width:0;padding:10px 8px}
.about-photography[data-view="grid"] .photography-controls>.photography-arrow{visibility:hidden}
@media(max-width:1100px){.photography-controls .photography-view-toggle button{width:44px;padding:10px}.photography-controls .photography-view-toggle button span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}}

/* Align both arrow edges to the measured 3:4 photo, keeping controls underneath. */
.photography-controls{align-self:center;width:100%;max-width:100%}
.photography-controls.is-compact .photography-view-toggle button{width:44px;padding:10px}
.photography-controls.is-compact .photography-view-toggle button span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
