.project-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 3rem 2rem; }
.project-card { min-width: 0; }
.project-card:nth-child(2) { margin-top: 0; }
.project-card-link { min-width: 0; height: 100%; display: flex; flex-direction: column; border-radius: .5rem; }
.project-photo { aspect-ratio: 3/2; }
.project-photo img { width: 100%; height: 100%; }
.project-info { align-items: flex-start; }
.project-info > div { min-width: 0; }
.project-info h3 { line-height: 1.2; overflow-wrap: anywhere; }
.project-info p { font-size: .9375rem; line-height: 1.6; }
.project-excerpt { font-size: 1rem; line-height: 1.7; color: var(--muted); margin-top: 1rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-action { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: auto; font-size: .9375rem; font-weight: 600; }
.project-card-action svg, .photo-open svg, .project-gallery svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.project-image-label { position: absolute; bottom: .75rem; left: .75rem; padding: .25rem .625rem; border-radius: .25rem; background: #10212bf0; color: #fff; font-size: .75rem; }
.project-photo.without-photo { background: var(--navy); color: #fff; aspect-ratio: auto; }
.project-photo.without-photo .pill { display: none; }
.project-fact-visual { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(14rem,28vw,25rem); padding: clamp(1.5rem,3vw,2.5rem); gap: .6rem; }
.project-fact-visual > span { font-size: .9375rem; color: #c7d2d5; }
.project-fact-visual strong { font-family: var(--head); font-weight: 500; font-size: clamp(1.5rem,3vw,2.5rem); line-height: 1.2; letter-spacing: -.04em; color: var(--yellow); max-width: 15ch; overflow-wrap: anywhere; }
.project-cover { width: min(1440px,calc(100% - 2rem)); margin-inline: auto; background: #e9eeec; }
.project-cover > a { position: relative; display: block; }
.project-cover img { width: 100%; height: auto; max-height: 38rem; object-fit: cover; aspect-ratio: 2; }
.project-cover figcaption { padding: .75rem 1rem; font-size: .8125rem; color: var(--muted); }
.photo-open { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .625rem 1rem; border-radius: .3rem; background: #fff; color: var(--ink); font-size: .875rem; }
.project-facts-banner { border-radius: .5rem; background: var(--navy); color: #c7d2d5; padding: clamp(2rem,5vw,4rem); display: flex; flex-direction: column; gap: 1rem; }
.project-facts-banner strong { color: var(--yellow); font: 500 clamp(2.25rem,5vw,4rem)/1.15 var(--head); letter-spacing: -.04em; }
.project-story p { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.project-source-link { display: inline-block; font-size: .875rem; min-height: 2.75rem; padding-block: .625rem; text-decoration: underline; text-underline-offset: .25rem; overflow-wrap: anywhere; }
.project-gallery-section { padding-top: 0; }
.project-gallery-section h2 { margin-bottom: 2rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.project-gallery > a { border-radius: .5rem; overflow: hidden; background: #e9eeec; }
.project-gallery img { aspect-ratio: 4/3; object-fit: cover; }
.project-gallery a > span { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; min-height: 2.75rem; font-size: .875rem; }
.project-return { padding-bottom: 2rem; }
.project-return .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.not-found-copy { margin-block: 1.5rem; }
.photo-dialog { border: 0; padding: 4.25rem clamp(1rem,7vw,5rem) 1rem; background: #0b1720; color: #fff; width: min(1280px,calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); border-radius: .5rem; }
.photo-dialog::backdrop { background: #03090deb; }
.photo-dialog figure { margin: 0; }
.photo-dialog figure img { width: 100%; max-height: calc(100dvh - 12rem); height: auto; object-fit: contain; }
.photo-dialog figcaption { text-align: center; padding: 1rem .5rem; font-size: .875rem; line-height: 1.6; }
.photo-dialog button { display: grid; place-items: center; border: 1px solid #75828a; border-radius: 50%; width: 3rem; height: 3rem; color: #fff; background: #162c3d; font-size: 1.75rem; line-height: 1; }
.photo-dialog button[hidden] { display: none; }
.photo-close { position: absolute; right: .75rem; top: .75rem; }
.photo-prev, .photo-next { position: absolute; top: 50%; transform: translateY(-50%); }
.photo-prev { left: .5rem; }.photo-next { right: .5rem; }
body.photo-opened { overflow: hidden; }
@media (max-width: 900px) {
  .project-catalog { gap: 2rem 1.5rem; }
  .project-cover img { aspect-ratio: 1.5; }
  .detail-grid { gap: 2.5rem; }
  .project-fact-visual { padding: 1.5rem; }
}
@media (max-width: 700px) {
  .project-catalog { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .project-info h3 { font-size: 1.625rem; }
  .project-cover { width: calc(100% - 1rem); }
  .project-cover img { aspect-ratio: 4/3; }
  .project-gallery { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .project-return .wrap { flex-direction: column; align-items: flex-start; }
  .photo-dialog { width: calc(100% - 1rem); max-width: calc(100% - 1rem); padding-inline: .5rem; padding-bottom: 4rem; }
  .photo-dialog figure img { max-height: calc(100dvh - 16rem); }
  .photo-prev, .photo-next { top: auto; bottom: .5rem; transform: none; }
  .photo-prev { left: calc(50% - 4rem); }.photo-next { right: calc(50% - 4rem); }
}
