/* Photo essays and the gallery on the clock page. */
.photo-page {
  margin: 0;
  background: #f5f7fa;
  color: #18283c;
  font-family: Inter, "Segoe UI", sans-serif;
}
.photo-page main { width: min(1180px, 90%); margin: auto; padding: clamp(26px, 5vh, 68px) 0; }
.masthead, .photo-page figcaption, .view-nav { display: flex; justify-content: space-between; gap: 1.5rem; }
.masthead { align-items: center; padding-bottom: 20px; border-bottom: 1px solid #bdc8d3; }
.masthead a:first-child { font-size: 1.2rem; font-weight: 650; }
.photo-page a, .view-card { color: #184f90; text-underline-offset: 4px; }
.photo-heading { margin: clamp(2rem, 6vw, 5rem) 0 1.5rem; }
.photo-heading p { margin: 0 0 .4rem; color: #52637a; }
.photo-heading h1, .gallery-section h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.photo-heading h1 { font-size: clamp(2.3rem, 6vw, 5.2rem); }
.photo-page figure { margin: 0; }
.full-photo { display: block; width: 100%; height: auto; }
.photo-page figcaption { align-items: baseline; margin-top: 1.1rem; }
.caption { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 43rem; line-height: 1.5; }
.credit { margin: 0; color: #52637a; font-size: .88rem; line-height: 1.6; }
.view-nav { justify-content: flex-start; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #bdc8d3; }
.view-nav [aria-current] { color: #18283c; font-weight: 650; text-decoration: none; }
.gallery-section { margin-top: clamp(3rem, 8vw, 6rem); }
.gallery-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.3rem; }
.view-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 3vw, 2rem); }
.view-card { display: block; text-decoration: none; color: #18283c; font-size: 1.15rem; font-weight: 600; }
.view-card img { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; margin-bottom: .65rem; }
.view-card:hover span, .view-card:focus-visible span { text-decoration: underline; }
@media (max-width: 700px) {
  .view-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .photo-page figcaption { flex-direction: column; gap: .8rem; }
  .masthead, .view-nav { flex-wrap: wrap; gap: .8rem 1.5rem; }
}
