.photo-main { margin:0 auto; max-width:1600px; padding:clamp(2rem,5vw,6rem) var(--space) clamp(3rem,6vw,7rem); }
.photo-main h1, .home-photo h2, .album-cover h2 { font-family:var(--display); font-weight:700; line-height:1.04; letter-spacing:-.035em; }
.photo-main h1 { margin:0 0 .35em; font-size:clamp(2.8rem,7vw,6.5rem); }
.photo-intro,.album-cover p,.home-photo p { font-size:clamp(1.05rem,1.5vw,1.3rem); line-height:1.55; }
.photo-grid { margin-top:2rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.25rem,3vw,3rem); }
.photo-grid figure { margin:0; }
.photo-grid figure:first-child { grid-column:1/-1; }
.photo-link, .home-photo-image { display:block; }
.photo-link { cursor:zoom-in; }
.photo-grid img,.album-cover img,.home-photo img { display:block; width:100%; height:auto; }
.album-cover,.home-photo { display:grid; align-items:center; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); gap:clamp(2rem,4vw,5rem); }
.album-cover { color:var(--ink); text-decoration:none; margin-top:2.2rem; }
.album-cover:hover h2,.album-cover:focus-visible h2 { text-decoration:underline; }
.album-cover h2,.home-photo h2 { margin:.4em 0 .2em; font-size:clamp(2.2rem,4.4vw,4.7rem); }
.photo-count { font:700 .95rem var(--mono); }
.home-photo { padding:clamp(2rem,5vw,5rem) var(--space); background:var(--cream); }
.home-photo .button { margin-top:1rem; }
.photo-viewer { color:white; background:#121721; border:0; padding:1rem; width: min(96vw,1500px); max-width:96vw; max-height:96dvh; box-sizing:border-box; }
.photo-viewer::backdrop { background:#0b1019eb; }
.photo-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:.7rem; }
#photo-large { width:100%; height:auto; max-height:70dvh; object-fit:contain; }
.viewer-bottom { display:flex; justify-content:flex-end; gap:.6rem; }
.viewer-top { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.photo-viewer button { border:1px solid #cbd0d8; background:transparent; color:white; font:inherit; cursor:pointer; padding:.55rem .85rem; min-height:44px; }
.photo-viewer button:hover,.photo-viewer button:focus-visible { color:#121721; background:white; }
@media(max-width:720px) {
  .photo-grid,.album-cover,.home-photo { grid-template-columns:1fr; gap:1.4rem; }
  #photo-large { max-height:60dvh; }
}
