/* One editorial composition: the offer, its photographic memory, and the
   scale of the journey. Typography is owned by typography.css. No viewport
   height or scroll spacer is used in this practical fundraising chapter. */
#opportunity.editorial-opportunity {
  padding: clamp(52px, 5vw, 76px) var(--pad) 0;
  min-height: 0;
  height: auto;
}
#opportunity > .opportunity-top,
#opportunity > .giving-layout,
#opportunity > .campaign-progress {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
#opportunity .opportunity-top {
  padding: 0;
  margin-bottom: clamp(26px, 3vw, 40px);
  gap: 18px;
  align-items: baseline;
}
#opportunity .giving-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
}
#opportunity .giving-copy {
  min-width: 0;
  max-width: 610px;
  padding: 0;
}
#opportunity .giving-copy h2 {
  margin: 0;
  max-width: none;
  text-wrap: initial;
}
#opportunity .giving-description {
  margin: 18px 0 0;
  max-width: none;
}
#opportunity .giving-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 23px 0 0;
  gap: 10px;
}
#opportunity .campaign-state {
  display: block;
  width: fit-content;
  margin: 12px 0 0;
  color: var(--hdf-blue);
}
#opportunity .contribution-note {
  margin: 6px 0 0;
  max-width: none;
}
#opportunity .giving-trust-summary {
  max-width: 44ch;
  margin: 18px 0 0;
}
#opportunity .giving-trust-summary a {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding: 9px 0 7px;
}
#opportunity .editorial-photo-print {
  --paper-angle: 2deg;
  --paper-approach: .6deg;
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100%;
  max-width: 650px;
  align-self: start;
  justify-self: end;
  margin: 3px 0 0;
  padding: 10px 10px 0;
  /* Paper turns around its top-center anchor, never altering the photo itself.
     Existing native-scroll progress settles early; no timer or new scroll space. */
  transform-origin: 50% 0;
  transform: translate3d(0, calc((1 - var(--print-settle, 1)) * 16px), 0)
             rotate(calc(var(--paper-angle) + (1 - var(--print-settle, 1)) * var(--paper-approach)));
  opacity: calc(.82 + var(--print-settle, 1) * .18);
  box-shadow: 1px 2px 3px rgba(23,23,23,.08),
              5px 14px 24px -12px rgba(23,23,23,.17),
              9px 28px 42px -26px rgba(23,23,23,.16);
}
#opportunity .editorial-photo-print img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
#opportunity .editorial-photo-print figcaption {
  align-items: flex-start;
  gap: 11px;
  padding: 17px 6px 19px;
}
#opportunity .print-location-pin {
  flex: 0 0 14px;
  width: 14px;
  height: 17px;
  margin-top: 1px;
}
#opportunity .print-caption-copy { gap: 3px; }
#opportunity .campaign-progress:not([hidden]) {
  margin-top: 30px;
  padding-block: 20px 0;
}
@media (max-width: 900px) {
  #opportunity.editorial-opportunity {
    padding-top: 46px;
  }
  #opportunity .opportunity-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 24px;
    max-width: 560px;
  }
  #opportunity .giving-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 560px;
  }
  #opportunity .giving-copy { max-width: none; }
  #opportunity .giving-description {
    margin-top: 16px;
    max-width: 31ch;
  }
  #opportunity .giving-actions {
    margin-top: 20px;
    gap: 10px;
  }
  #opportunity .giving-trust-summary { margin-top: 15px; }
  #opportunity .editorial-photo-print {
    --paper-angle: .6deg;
    --paper-approach: .3deg;
    width: 100%;
    max-width: 560px;
    justify-self: center;
    margin: 0;
    padding: 8px 8px 0;
  }
  #opportunity .editorial-photo-print figcaption {
    padding: 14px 4px 16px;
  }
}
/* The photographic print stays fully visible without entrance motion. */
html:not(.js) #opportunity .editorial-photo-print {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #opportunity .editorial-photo-print {
    opacity: 1;
    transform: none;
  }
}
@media print {
  #opportunity .editorial-photo-print { opacity: 1; transform: none; box-shadow: none; }
  }
