/* One centered source region: original x309/y764/w1320/h1056 at 1938×2584.
   Both the outline and detail are projections of these same bounds. */
.sample-showcase {
  --sample-crop-x: .159442724458204;
  --sample-crop-y: .295665634674923;
  --sample-crop-width: .681114551083591;
  --sample-crop-height: .408668730650155;
  --sample-photo-aspect: .75;
  background: var(--accent-soft);
}
.sample-heading p { max-width: none; font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.sample-composition {
  position: relative;
  isolation: isolate;
  grid-template-columns: clamp(240px, 27vw, 300px) minmax(0, 520px);
  gap: clamp(3rem, 7vw, 6.5rem);
  padding: 2.5rem 2rem 3rem;
}
.sample-phone-image { width: 100%; aspect-ratio: 738 / 1485; }
/* Exact complete-photo rectangle in the approved 1476×2970 Gallery frame. */
.sample-phone-photo {
  position: absolute;
  left: 5.28455284552846%;
  top: 16.8350168350168%;
  width: 89.4308943089431%;
  height: 59.2592592592593%;
}
.sample-phone-photo > img { width: 100%; height: 100%; }
.sample-phone-photo .sample-region {
  outline-width: 3px;
  left: calc(100% * var(--sample-crop-x));
  top: calc(100% * var(--sample-crop-y));
  width: calc(100% * var(--sample-crop-width));
  height: calc(100% * var(--sample-crop-height));
}
.sample-phone-label { margin-top: .75rem; text-align: center; color: var(--muted); font-size: .8125rem; }
.sample-detail { position: relative; }
.sample-detail-label { color: var(--muted); }
.sample-detail-crop {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: .5rem .5rem 0 0;
  aspect-ratio: calc(var(--sample-crop-width) * var(--sample-photo-aspect) / var(--sample-crop-height));
}
.sample-detail-crop > img {
  position: absolute;
  max-width: none;
  width: calc(100% / var(--sample-crop-width));
  height: auto;
  left: calc(-100% * var(--sample-crop-x) / var(--sample-crop-width));
  top: calc(-100% * var(--sample-crop-y) / var(--sample-crop-height));
}
@media (max-width: 900px) and (min-width: 701px) {
  .sample-composition {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem 1.25rem 2.5rem;
  }
}
@media (max-width: 700px) {
  .sample-composition {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
  }
  .sample-phone { width: min(290px, 100%); }
  .sample-detail { width: min(520px, 100%); }
}
@media (forced-colors: active) {
  .sample-showcase { background: Canvas; }
}
