/* Photos remain available with JavaScript disabled. */
.project-photo-gallery { margin: 0 0 32px; min-width: 0; }
.project-photo-heading { color: #153b52; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 14px; }
.project-photo-gallery [hidden] { display: none !important; }
.project-photo-slides { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit,minmax(min(100%, 300px),1fr)); }
.project-photo-gallery.is-enhanced .project-photo-slides { display: block; }
.project-photo-slide { margin: 0; overflow: hidden; min-width: 0; border: 1px solid #dce5eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(21,59,82,.08); }
.project-photo-frame { display: flex; justify-content: center; align-items: center; height: clamp(220px, 35vw, 430px); background: #eaf0f4; }
.project-photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-photo-caption { padding: 16px 22px; color: #23303a; line-height: 1.6; overflow-wrap: anywhere; }
.project-photo-caption a { color: #153b52; font-weight: 700; text-decoration: underline; }
.project-photo-caption p { margin: 5px 0 0; }
.project-photo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; color: #153b52; }
.project-photo-controls button { font: inherit; font-weight: 600; background: #fff; color: #153b52; border: 1px solid #36536b; border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.project-photo-controls button:hover { background: #eaf0f5; }
.project-photo-gallery a:focus-visible, .project-photo-controls button:focus-visible { outline: 3px solid #245a82; outline-offset: 3px; }
.project-photo-controls [data-project-photo-status] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .project-photo-gallery.is-enhanced .project-photo-slide:not([hidden]) { animation: project-photo-enter 420ms ease-out; }
  @keyframes project-photo-enter { from { opacity: .35; } to { opacity: 1; } }
}
@media (max-width: 600px) {
  .project-photo-controls { justify-content: center; }
  .project-photo-caption { padding: 12px 16px; }
}
