/* Real job photographs: layout by their true dimensions. A wide shot takes the room of two upright shots; no
   object-fit:cover, so the people, pipe and trench remain visible. Same gallery pattern across pages. */
.shots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(18px, calc(2.2 * min(1vw, 19.2px)), 32px) clamp(12px, calc(1.6 * min(1vw, 19.2px)), 24px); min-width: 0; }
.shot { margin: 0; min-width: 0; flex-grow: 1; flex-shrink: 1; }
.shot--tall { flex-basis: 21%; max-width: 31%; }
.shot--wide { flex-basis: 43%; max-width: 64%; }
.shot-link { display: block; position: relative; text-decoration: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--char); }
.shot-link img { width: 100%; height: auto; aspect-ratio: auto; display: block; border-radius: 14px; }
.shot-link::after { content: ''; position: absolute; inset: 0; border: 2px solid rgb(255 255 255 / .22); border-radius: 14px; pointer-events: none; }
.shot-link:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.shot-cap { margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: #fff; max-width: 44ch; }
.shot-n { display: inline-block; margin-right: 5px; font: 800 1.0625rem var(--display); color: #fff; }   /* white on the soil bands (5:1 on clay); charcoal on topsoil, set in pages.css */
.shot-place { display: block; font-weight: 700; margin-bottom: 3px; }
.shot-label { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 14px; background: #F2C230; color: var(--char); font: 800 .875rem var(--display); }
.shot--after .shot-label { background: #F4F2EE; }
.shots--trio .shot--tall { flex-basis: 28%; max-width: 36%; }
.shots--trio .shot--wide { flex-basis: 50%; max-width: 68%; }
.pair-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, calc(3 * min(1vw, 19.2px)), 48px); }
.pair { min-width: 0; padding: clamp(18px, calc(2 * min(1vw, 19.2px)), 28px); background: var(--char); color: #fff; border-radius: 14px; }
.pair h3 { margin: 0 0 20px; font-size: clamp(1.4rem, 1.1rem + calc(.7 * min(1vw, 19.2px)), 1.9rem); }
.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pair-shots .shot { max-width: none; min-width: 0; }
.pair-shots .shot-cap { font-size: .875rem; }
.pair-shots .shot-link { min-height: 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shot-link img { transition: transform var(--t-panel) var(--ease-out); }
  .shot-link:hover img { transform: scale(1.025); }
}
@media (max-width: 1050px) {
  .shot--tall { flex-basis: 29%; max-width: 42%; }
  .shot--wide { flex-basis: 56%; max-width: 86%; }
  .pair-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .shots { gap: 22px 12px; }
  .shot--tall, .shots--trio .shot--tall { flex-basis: calc(50% - 6px); max-width: calc(50% - 6px); }
  .shot--wide, .shots--trio .shot--wide { flex-basis: 100%; max-width: 100%; }
  .shots .shot--solo { max-width: 100%; }   /* an upright photo with no partner on its row takes the full width */
  .shot-cap { font-size: .875rem; line-height: 1.38; }
  .shot-label { margin-bottom: 8px; }
  .pair { padding: 16px; }
  .pair-shots { gap: 8px; }
  .pair-shots .shot-cap { font-size: .8125rem; }
}
/* A photo is a link without script. With script its link opens an accessible native dialog. */
.photo-dialog { max-width: none; max-height: none; width: calc(100 * min(1vw, 19.2px)); height: 100dvh; margin: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border: 0; background: #101010; color: #fff; overflow: hidden; box-sizing: border-box; }
.photo-dialog::backdrop { background: rgb(0 0 0 / .96); }
.photo-dialog[open] { display: grid; grid-template: auto minmax(0, 1fr) auto auto auto / minmax(48px, 1fr) minmax(0, 1200px) minmax(48px, 1fr); gap: 10px 12px; }
.photo-count { grid-area: 1 / 2; font: 700 1rem var(--display); align-self: center; }
.photo-close { grid-area: 1 / 3; justify-self: end; }
.photo-stage { grid-area: 2 / 2; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.photo-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; }
.photo-dialog .photo-prev { grid-area: 2 / 1; justify-self: end; align-self: center; }
.photo-dialog .photo-next { grid-area: 2 / 3; justify-self: start; align-self: center; }
.photo-caption { grid-area: 3 / 2; max-width: 80ch; min-height: 3em; font-size: 1rem; line-height: 1.4; justify-self: center; text-align: center; overflow: auto; }
.photo-dialog a.photo-call { grid-area: 4 / 2; display: inline-flex; align-items: center; justify-content: center; justify-self: center; min-height: 48px; min-width: 180px; padding: 6px 18px; border-radius: 999px; background: var(--blue); color: #101010; font-weight: 800; text-decoration: none; }
.photo-help { grid-area: 5 / 2; margin: 0; text-align: center; font-size: .875rem; color: #C7C7C7; }
.photo-control { background: var(--char); color: #fff; border: 1px solid #767676; border-radius: 999px; font: 700 1.1rem var(--text); cursor: pointer; min-width: 52px; min-height: 52px; touch-action: manipulation; }
.photo-control:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.photo-control:hover { background: #3A3A3A; }
.photo-control:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 700px) {
  .photo-dialog { padding-inline: 12px; }
  .photo-dialog[open] { grid-template: auto minmax(0, 1fr) auto auto auto / 1fr 1fr; gap: 10px 8px; }
  .photo-count { grid-area: 1 / 1; }
  .photo-close { grid-area: 1 / 2; }
  .photo-stage { grid-area: 2 / 1 / 3 / 3; }
  .photo-caption { grid-area: 3 / 1 / 4 / 3; min-height: 2.8em; max-height: 5.5em; }
  .photo-dialog .photo-prev { grid-area: 4 / 1; justify-self: start; align-self: center; }
  .photo-dialog .photo-next { grid-area: 4 / 2; justify-self: end; align-self: center; }
  .photo-dialog a.photo-call { grid-area: 5 / 1 / 6 / 3; justify-self: stretch; }
  .photo-help { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-dialog[open] .photo-stage img { animation: photo-in var(--t-panel) var(--ease-out) both; }
  @keyframes photo-in { from { opacity: .45; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
}
body.photo-open, html:has(.photo-dialog[open]) { overflow: hidden; }
