/* The Roof Inspection layout, with the owner's roof replacement photographs. */
.replacement-page .inspection-hero-panel {
  --service-slate-film: linear-gradient(180deg, rgb(37 42 48 / 6%) 0%, rgb(37 42 48 / 20%) 18%, rgb(37 42 48 / 44%) 40%, rgb(37 42 48 / 62%) 80%, rgb(37 42 48 / 100%) 100%);
  background-image: var(--service-slate-film), url('assets/iggy-roof-tear-off-panorama-v1.webp');
  background-position: center, center 65%;
}
.replacement-page .inspection-next-panel {
  background-image: var(--service-slate-film), url('assets/replacements/aerial-underlayment.webp');
  background-position: center, center 66%;
}
.replacement-videos { padding-top: 0; padding-bottom: 60px; }
.replacement-video { max-width: 960px; margin: 0 auto; }
.replacement-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 910 / 512;
  object-fit: contain;
  border-radius: 8px;
  background: #292622;
}
.replacement-video video:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.replacement-video figcaption { padding-top: 13px; color: #364154; font-size: 17px; line-height: 1.6; }
@media (max-width: 680px) {
  .replacement-page .inspection-hero-panel { background-position: center, 88% center; }
  .replacement-page .inspection-next-panel { background-position: center, 60% center; }
  .replacement-videos { padding-bottom: 40px; }
}
@media (forced-colors: active) {
  .replacement-page .inspection-tinted-panel { background: Canvas; }
  .replacement-video video { border: 1px solid ButtonText; }
}

/* Keep the photo disclosure prominent in both its open and closed states. */
.replacement-page .inspection-more summary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.replacement-page .inspection-more summary:hover,
.replacement-page .inspection-more summary:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Property preparation photographs follow the established replacement gallery. */
.replacement-protection { padding-top: 30px; border-top: 1px solid #e3e7ed; scroll-margin-top: 130px; }
.replacement-protection .inspection-photo-portrait img { object-fit: contain; }
@media (max-width: 680px) {
  .replacement-protection { padding-top: 24px; scroll-margin-top: 110px; }
}
