/* Dedicated photography page: grouped by capture day, original composition. */
.photography-page .sec-head h1{font-size:var(--step-2)}
.photo-days{list-style:none;margin:0;padding:0;display:grid;gap:48px}
.photo-day{min-width:0}
.photo-day-date{font-family:var(--font-mono);font-size:.9rem;line-height:1.5;font-weight:500;font-variant-numeric:tabular-nums;color:var(--muted);margin:0 0 14px}
.photo-day-grid{display:flex;align-items:flex-start;gap:14px}
.photo-card{flex:var(--photo-ratio) 1 0;min-width:0;margin:0}
.photo-open{display:block;max-width:100%;background:var(--surface);border-radius:var(--radius);overflow:hidden}
.photo-open img{display:block;width:100%;height:auto;object-fit:contain;transition:opacity .18s}
.photo-day-grid[data-count="1"] .photo-card{flex:0 1 auto}
.photo-day-grid[data-count="1"] img{width:auto;max-width:100%;max-height:80vh;max-height:min(720px,80svh)}
.photo-open:hover img{opacity:.9}
#photo-dialog{width:min(1160px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
#photo-dialog::backdrop{background:rgba(3,8,18,.88)}
.photo-dialog-body{display:flex;flex-direction:column;padding:16px;gap:12px}
.photo-toolbar,.photo-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}
.photo-toolbar h2{font-size:1rem}
#photo-dialog button{font:inherit;font-size:.9rem;cursor:pointer;border:1px solid var(--line);border-radius:5px;min-height:44px;padding:6px 14px;background:var(--surface);color:var(--ink);flex-shrink:0}
#photo-dialog button:hover{border-color:var(--accent)}
.photo-image-area{display:grid;place-items:center;background:#080b11;min-height:180px}
#photo-full{max-width:100%;width:auto;height:auto;max-height:70dvh;object-fit:contain}
#photo-error{color:#fff;padding:24px;text-align:center}
#photo-caption{text-align:center;font-size:.85rem;color:var(--muted)}
@media(max-width:460px){.photo-dialog-body{padding:10px}.photo-controls{gap:6px}#photo-dialog button{padding-inline:10px}#photo-caption{font-size:.75rem}#photo-full{max-height:65dvh}}
@media(max-width:600px){.photo-days{gap:32px}.photo-day-date{font-size:.82rem;margin-bottom:10px}.photo-day-grid{gap:10px}.photo-day-grid[data-count="3"]{flex-wrap:wrap}.photo-day-grid[data-count="3"] .photo-card:first-child{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.photo-open img{transition:none}}
