/* Photo galleries: photos.html and the per-picture pages that
   scripts/photos.py writes. A 2003 web gallery (thumbnail grid,
   Previous / Index / Next buttons) in the colours of style.css. */

/* gallery intro text on photos.html, in the same box as .last-update */
#content .outline-text-2 > p, #content .outline-text-3 > p {
  font-family: Arial, sans-serif; font-size: 14px; color: #555; background: #f9f9f9;
  padding: 8px 12px; border-left: 4px solid #007acc; border-radius: 5px; box-shadow: 0 1px 3px rgb(0 0 0 / .1);
}

/* thumbnail grid */
.gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 780px; margin: 1em 0 2em; }
.gal a { display: block; text-align: center; padding: 10px 6px 8px; background: #f9f9f9; border: 1px solid #ddd;
         border-radius: 5px; color: #333; font-weight: 400; }
.gal a:hover { border-color: #007acc; box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.gal img { display: block; width: 100px; height: 100px; margin: 0 auto 6px; border: 1px solid #bbb; }
.gal b { display: block; font-size: 14px; line-height: 1.2; color: #009; }
.gal small { font-family: Arial, sans-serif; font-size: 12px; color: #888; }

/* one picture per page */
.gal-count { font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; color: #777; text-transform: none; }
.pnav { display: flex; justify-content: center; gap: 6px; margin: 1em 0; }
.pnav a, .pnav span { font-size: 15px; padding: 5px 14px; border: 1px solid #ccc; border-radius: 3px; background: #f0f0f0; }
.pnav a:hover { background: #ddd; }
.pnav span { color: #aaa; font-weight: 700; }
.pview { max-width: 700px; margin: 0 auto; padding: 16px; text-align: center; }
.pview img { width: auto; height: auto; max-width: 100%; max-height: 75vh; border: 1px solid #bbb; }
.pview p { text-align: center; }
.pview .ptitle { font-size: 1.2em; font-weight: 700; color: #2b2b2b; margin: .6em 0 .2em; }
.pview .pmeta { font-family: Arial, sans-serif; font-size: 14px; color: #555; margin: 0; overflow-wrap: anywhere; }
.gal-foot { font-family: Arial, sans-serif; font-size: 12px; color: #888; text-align: center; margin: 2em 0; }

@media (max-width: 600px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
  .gal img { width: 100%; height: auto; aspect-ratio: 1; }
}
