/* Approved document photo; tool cards and the editor keep their own layout. */
.reader-upgrade .pdf-photo-heading {
  --photo-direction: 90deg;
  --photo-shade: linear-gradient(var(--photo-direction), #051c18fc 0%, #051c18f2 38%, #051c18c2 54%, #051c1838 76%, #051c1810);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  isolation: isolate;
  overflow: hidden;
  min-height: 380px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 1px #ffffff12, 0 24px 56px #00150d24;
}
.pdf-photo-heading > .landing-photo-media,
.pdf-photo-heading > .landing-photo-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.pdf-photo-heading > .landing-photo-media { z-index: -2; }
.pdf-photo-heading > .landing-photo-media img { object-fit: cover; object-position: 73% center; }
.reader-upgrade .pdf-photo-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--photo-shade);
}
.reader-upgrade .pdf-photo-heading > div { width: min(100%, 560px); max-width: 57%; }
.reader-upgrade .pdf-photo-heading h2 { margin-block: 14px 0; }
.reader-upgrade .pdf-photo-heading > p {
  max-width: min(49%, 470px);
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #c1d7cb;
}
html[dir="rtl"] .pdf-photo-heading { --photo-direction: 270deg; }
html[dir="rtl"] .pdf-photo-heading > .landing-photo-media img { transform: scaleX(-1); }
html[data-pdf-theme="light"] .reader-upgrade .pdf-photo-heading {
  --photo-shade: linear-gradient(var(--photo-direction), #f3f8efff 0%, #f3f8eff7 38%, #f3f8efdc 54%, #f3f8ef33 76%, #f3f8ef05);
  box-shadow: inset 0 1px #fff, 0 18px 48px #285a3817;
}
html[data-pdf-theme="light"] .reader-upgrade .pdf-photo-heading > p { color: #355942; }
@media (max-width: 760px) {
  .reader-upgrade .pdf-photo-heading {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    padding: 0;
    border-radius: 20px;
    background: var(--surface);
  }
  .pdf-photo-heading > .landing-photo-media {
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 0 0 auto;
    height: clamp(190px, 45vw, 290px);
    border-bottom: 1px solid var(--line);
  }
  .pdf-photo-heading > .landing-photo-media img { object-position: 85% center; }
  .reader-upgrade .pdf-photo-heading::before { display: none; }
  .reader-upgrade .pdf-photo-heading > div {
    width: auto;
    max-width: none;
    margin: 26px 24px 0;
  }
  .reader-upgrade .pdf-photo-heading > p {
    max-width: none;
    margin: 20px 24px 28px;
  }
}
@media (forced-colors: active) {
  .reader-upgrade .pdf-photo-heading { border: 1px solid CanvasText; box-shadow: none; }
  .reader-upgrade .pdf-photo-heading > .landing-photo-media,
  .reader-upgrade .pdf-photo-heading::before { display: none; }
  .reader-upgrade .pdf-photo-heading > div,
  .reader-upgrade .pdf-photo-heading > p { max-width: 100%; color: CanvasText; }
}
