.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 28px;
}

.chapter { min-width: 0; }
.service h3 { margin-top: 0; }
.gallery .chapter h3 { margin: 0 0 8px; font-size: 1.65rem; }
.chapter p { margin: 0 0 18px; color: var(--muted); min-height: 3.1em; }

.chapter-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--line);
  background: #e8e4da;
}
.chapter-track::-webkit-scrollbar { display: none; }
.chapter-slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chapter-photo { position: relative; width: 100%; height: 100%; overflow: hidden; }
.chapter-photo img { width: 100%; height: 100%; object-fit: contain; }
.chapter-photo.source-crop { height: auto; max-height: 100%; }
.source-crop img { position: absolute; left: 0; object-fit: fill; }
.chapter-photo.video-frame { background: #171714; }
.chapter-photo.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171714;
}

.chapter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
}
.chapter-controls[hidden] { display: none; }
.chapter-controls button {
  height: 44px;
  width: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  cursor: pointer;
}
.chapter-controls button:disabled { opacity: .3; cursor: default; }
.chapter-controls button:focus-visible,
.chapter-track:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#tile-floors { padding-top: 0; }
#work, #services, #contact { scroll-margin-top: 140px; }

@media (max-width: 600px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 36px; }
  .chapter p { min-height: 0; }
  .gallery .chapter h3 { font-size: 1.5rem; }
}
