.construction-progress {
  --progress-border: #d6d6d6;
  --progress-frame: #e4e4e4;
  --progress-ink: #262626;
}

.construction-progress__report {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: 24px;
}

.construction-progress__building h3,
.construction-progress__general h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.construction-progress__intro p,
.construction-progress__building-copy p {
  margin: 8px 0 0;
}

.construction-progress__text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.construction-progress__building {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--progress-border);
  background: #f0f0f0;
}

.construction-progress__building:has(.construction-progress__building-copy:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.construction-progress__building h3,
.construction-progress__general h3 {
  color: var(--progress-ink);
  font-size: clamp(19px, 2vw, 26px);
}

.construction-progress__general h3 {
  margin-bottom: 12px;
}

.construction-progress .construction-progress__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: clamp(8px, 1vw, 16px);
}

.construction-progress .construction-progress__photos:has(figure:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
}

.construction-progress__general .construction-progress__photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.construction-progress__photos .react-gallery__trigger {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--progress-frame);
}

.construction-progress__photos figure {
  min-width: 0;
  margin: 0;
}

.construction-progress__photos figcaption {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 0.875em;
}

.construction-progress__photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.construction-progress__album-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  color: var(--progress-ink);
}

.construction-progress__album-footer p {
  margin: 0;
  margin-inline-start: auto;
  text-align: end;
}

.construction-progress__album-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 790px) {
  .construction-progress__building {
    grid-template-columns: minmax(0, 1fr);
  }

  .construction-progress .construction-progress__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .construction-progress__photos .react-gallery__trigger {
    aspect-ratio: 1;
  }
}
