/* Only the Dilworth photo header; all other page content retains its existing styles. */
#hero.dc-dilworth-hero {
  position: relative;
  min-height: 0;
  height: auto;
  background: none;
}
.dc-dilworth-hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.dc-dilworth-photo-labels {
  position: absolute;
  inset: 18px 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}
.dc-dilworth-photo-labels span {
  justify-self: start;
  margin-left: 20px;
  padding: 5px 12px;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  font-size: .9rem;
  font-weight: 600;
}
.dc-dilworth-hero-title {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 0 25px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.dc-dilworth-hero-title h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
  line-height: 1.25;
}
@media (max-width: 767px) {
  .dc-dilworth-photo-labels { top: 8px; }
  .dc-dilworth-photo-labels span { margin-left: 8px; padding: 3px 8px; font-size: .7rem; }
  .dc-dilworth-hero-title { position: static; padding: 18px 12px; color: var(--bs-primary); background: #fff; }
  .dc-dilworth-hero-title h1 { font-size: 1.5rem; }
}

/* Project progression replaces only the original three-photo row. */
.dc-progression-note { margin: 1.5rem 0 1rem; font-size: .95rem; }
.dc-progression-photo { margin-bottom: 0; }
.dc-progression-photo-link { display: block; overflow: hidden; background: #f4f1ed; }
.dc-progression-photo-link img { display: block; width: 100%; height: auto; }
.dc-progression-photo-link:focus-visible { outline: 3px solid #de7402; outline-offset: 4px; }
.dc-progression-photo figcaption { padding-top: .65rem; font-size: .95rem; line-height: 1.5; }
.dc-progression-photo figcaption span { display: block; }
.dc-progression-stage { margin-bottom: .2rem; color: #8f4900; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dc-dilworth-progression { margin-bottom: 1.75rem; }
#dc-dilworth-photo-dialog { width: min(1120px, calc(100vw - 32px)); max-height: 94vh; padding: 16px; border: 0; border-radius: 4px; color: #fff; background: #181613; overflow-y: auto; }
#dc-dilworth-photo-dialog::backdrop { background: rgba(0,0,0,.85); }
.dc-photo-close { display: block; margin: 0 0 12px auto; padding: 5px 12px; }
.dc-photo-enlarged { margin: 0; }
.dc-photo-enlarged img { display: block; max-width: 100%; width: auto; max-height: 68vh; height: auto; margin: auto; object-fit: contain; }
.dc-photo-enlarged figcaption { padding: 12px 4px 4px; font-size: 1rem; line-height: 1.45; text-align: center; }
.dc-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
#dc-dilworth-photo-dialog button { border: 1px solid #aaa; border-radius: 3px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.dc-photo-controls button { padding: 8px 12px; }
#dc-dilworth-photo-dialog button:hover { background: #3d3831; }
#dc-dilworth-photo-dialog button:focus-visible { outline: 3px solid #ed941a; outline-offset: 3px; }
#dc-dilworth-photo-count { white-space: nowrap; font-size: .9rem; }
@media (max-width: 575px) {
  #dc-dilworth-photo-dialog { padding: 12px; }
  .dc-photo-controls button { padding: 8px; font-size: .9rem; }
}

