.photo-project {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 clamp(26px, 4vw, 58px);
  scroll-margin-top: 100px;
}
.photo-project-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.photo-project-head > div:first-child { min-width: 0; }
.photo-project h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.65vw, 34px);
  line-height: 1.35;
  text-wrap: balance;
}
.photo-project-count { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.photo-project-stage { position: relative; min-width: 0; }
.photo-project-controls {
  position: absolute;
  inset-inline: 0;
  top: var(--rail-control-y, 50%);
  z-index: 5;
  height: 0;
  padding: 0;
  pointer-events: none;
}
.photo-project-controls[hidden] { display: none; }
.photo-project-controls button {
  position: absolute;
  display: grid; place-items: center; width: 48px; height: 48px;
  padding: 0; border: 1px solid #d5dcf0; border-radius: 50%;
  color: #323eab; background: #fff; font: 26px/1 var(--sans);
  box-shadow: 0 4px 18px #111c5033;
  pointer-events: auto;
  cursor: pointer; transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.photo-project-controls [data-photo-prev] { left: 0; transform: translate(-50%, -50%); }
.photo-project-controls [data-photo-next] { right: 0; transform: translate(50%, -50%); }
.photo-project-controls button:hover:not(:disabled) { color: white; background: #323eab; border-color: #323eab; }
.photo-project-controls button:active:not(:disabled) { background: #202c87; box-shadow: 0 2px 7px #111c5033; }
.photo-project-controls button:disabled { color: #aeb7cc; background: #f8f9fc; cursor: default; box-shadow: 0 2px 9px #111c501a; }
.photo-project-controls button:focus-visible,
.photo-project-strip:focus-visible,
.photo-image-link:focus-visible { outline: 2px solid #323eab; outline-offset: 3px; }
.photo-image-link:focus-visible { outline-offset: -4px; }
.photo-project-strip {
  --photo-gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--photo-gap)) / 1.75);
  align-items: start;
  gap: var(--photo-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  margin: 0;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: #aab5cb #edf0f5;
}
.photo-project-item { min-width: 0; margin: 0; scroll-snap-align: start; }
.photo-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #edf0f5;
  cursor: zoom-in;
}
.photo-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-project-item figcaption { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.portfolio-module-grid [data-module="brochure"] .module-cover-collage--print img:last-child { object-position: center top; }
@media (max-width: 640px) {
  .photo-project-head { gap: 12px; }
  .photo-project-strip { --photo-gap: 14px; grid-auto-columns: 88%; }
  .photo-project-stage { margin-inline: 8px; }
  .photo-project-controls button { width: 44px; height: 44px; }
  .photo-project-item figcaption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-project-controls button { transition: none; }
}

.photo-project-head .photo-report-source { margin:0; font-size:13px; line-height:1.5; text-align:right; }
