.photos-page .site-header nav { gap: 22px; margin-right: 22px; }
.photos-page .site-header nav a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: #84a64c; }
.photos-shell { padding-top: 62px; padding-bottom: 82px; min-height: 60vh; }
.photos-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 40px; }
.photos-heading > div { min-width: 0; }
.photos-heading .section-index { font-size: 12px; line-height: 1.8; }
.photos-heading h1 { font-size: clamp(48px, 6.8vw, 90px); line-height: 1.03; letter-spacing: -.06em; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.photos-heading > p { max-width: 390px; font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 5px; }
.photos-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.photo-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-filters button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; background: transparent; color: #626d59; font-size: 14px; line-height: 1.7; }
.photo-filters button:hover { background: #e8eddf; }
.photo-filters button[aria-pressed=true] { border-color: var(--ink); color: var(--ink); background: #e8eddf; font-weight: 600; }
.photo-count { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.photo-status { padding: 54px 22px; margin: 0; border: 1px solid var(--line); background: #eef0e7; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.9; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.photo-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.photo-media { aspect-ratio: 4 / 3; background: #e8eddf; overflow: hidden; }
.photo-image-link { display: block; width: 100%; height: 100%; }
.photo-image-link:focus-visible { outline-offset: -5px; }
.photo-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: #6f7e61; font-size: 14px; line-height: 1.8; text-align: center; }
.photo-placeholder-mark { font-size: 44px; line-height: 1; color: #9cab8b; }
.photo-card-body { padding: 24px; }
.photo-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 15px; }
.photo-category { color: #62744f; font-size: 12px; line-height: 1.8; font-weight: 600; }
.photo-date { color: var(--muted); font-size: 12px; line-height: 1.8; }
.photo-card-title { font-size: 21px; line-height: 1.55; font-weight: 500; letter-spacing: -.5px; margin: 0; overflow-wrap: anywhere; }
.photo-description { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 13px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.photo-related-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.8; padding: 6px 0; margin-top: 18px; }

@media (max-width: 1200px) {
  .photos-page .site-header nav { gap: 17px; margin-right: 12px; }
  .photos-page .header-actions { gap: 18px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 1050px) {
  .photos-page .site-header { position: relative; }
  .photos-page .join-small { display: none; }
  .photos-page .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; }
  .photos-page .menu-toggle span { width: 24px; margin: 0; flex-shrink: 0; }
  .photos-page .language { min-width: 44px; min-height: 44px; font-size: 13px; }
  .photos-page .site-header nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 5%; margin: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px #1d211d0a; font-size: 15px; }
  .photos-page .site-header nav:not(.open) { display: none; }
  .photos-page .site-header nav.open { display: flex; }
  .photos-page .site-header nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
  .photos-page .site-header nav a[aria-current=page] { color: #536a36; }
  .photos-page .site-header nav a[aria-current=page]::after { display: none; }
}
@media (max-width: 800px) {
  .photos-shell { padding-top: 44px; padding-bottom: 58px; }
  .photos-heading { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 30px; }
  .photos-heading h1 { font-size: 62px; }
  .photos-heading > p { max-width: 100%; margin: 0; }
  .photos-toolbar { margin-bottom: 24px; }
  .photo-card-body { padding: 21px; }
  .photo-card-title { font-size: 20px; }
}
@media (max-width: 560px) {
  .photos-page .site-header nav { padding-left: 6%; padding-right: 6%; }
  .photos-shell { padding-top: 35px; padding-bottom: 44px; }
  .photos-heading { gap: 20px; padding-bottom: 26px; }
  .photos-heading .section-index { letter-spacing: .5px; margin-bottom: 14px; }
  .photos-heading h1 { font-size: clamp(44px, 12vw, 56px); }
  .photos-heading > p { font-size: 15px; line-height: 1.85; }
  .photos-toolbar { gap: 14px; padding: 16px 0; }
  .photo-filters { gap: 7px; }
  .photo-filters button { padding: 9px 12px; font-size: 14px; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .photo-card-body { padding: 22px 20px; }
  .photo-card-title { font-size: 22px; }
  .photo-meta { margin-bottom: 12px; }
  .photo-description { font-size: 15px; }
  .photo-status { padding: 40px 18px; }
}

/* Keep gallery navigation at the same readable size as the main site. */
.photos-page .site-header nav { gap: 20px; margin-right: 14px; font-size: 16px; font-weight: 600; }
.photos-page .site-header nav a { min-height: 44px; }
.photos-page .language,
.photos-page .join-small { font-size: 15px; }
@media (max-width: 1100px) {
  .photos-page .site-header nav { gap: 14px; margin-right: 0; font-size: 15px; }
}
@media (max-width: 1050px) {
  .photos-page .site-header nav { gap: 4px; font-size: 16px; }
  .photos-page .site-header nav a { min-height: 44px; font-size: 16px; }
}

/* Keep desktop gallery descriptions and controls readable at normal zoom. */
@media (min-width: 801px) {
  .photos-heading > p { min-width: 0; max-width: 480px; font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
  .photo-filters button { min-height: 48px; padding: 10px 18px; font-size: 16px; }
  .photo-count { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
  .photo-status { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
  .photo-card-body,
  .photo-meta > * { min-width: 0; }
  .photo-category,
  .photo-date { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
  .photo-card-title { font-size: 24px; line-height: 1.5; }
  .photo-description { font-size: 18px; line-height: 1.85; }
  .photo-placeholder { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
  .photo-related-link { min-height: 48px; max-width: 100%; font-size: 16px; line-height: 1.75; white-space: normal; overflow-wrap: anywhere; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .photos-heading > p,
  .photo-description { font-size: 17px; }
  .photo-card-title { font-size: 23px; }
}
