/* Project 2 additions. The shared editorial system remains in case-study.css. */

.portal-page {
  --portal-wide: 720px;
}

.portal-page .hero__grid {
  align-items: center;
}

.portal-page .hero__proof,
.portal-page .hero__proof figure,
.portal-page .hero__proof .shot-btn,
.portal-page .hero__proof .shot,
.portal-page .hero__proof figcaption {
  max-width: none;
  width: 100%;
}

.portal-page .hero__proof .shot img {
  height: auto;
  object-fit: contain;
}

@media (min-width: 900px) {
  .portal-page .hero__grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  }

  .portal-page .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }
}

.portal-shot,
.portal-shot-btn {
  width: 100%;
  max-width: none;
}

.portal-shot {
  border-radius: 0;
  padding: 5px;
}

.portal-shot img {
  border-radius: 0;
}

.portal-gallery {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  margin-top: 38px;
}

.portal-gallery--pair {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
  .portal-gallery--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-gallery figure,
.portal-gallery .shot,
.portal-gallery .shot-btn,
.portal-gallery figcaption {
  width: 100%;
  max-width: none;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 36px;
  padding: 1px;
  background: var(--rule);
  border-radius: 0;
  overflow: hidden;
}

@media (min-width: 720px) {
  .proof-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.proof-band div {
  background: var(--card);
  padding: clamp(22px, 3vw, 32px);
}

.proof-band strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.proof-band span {
  display: block;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.boundary-grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  margin-top: 36px;
}

@media (min-width: 820px) {
  .boundary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.boundary-grid > div {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.boundary-grid h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.boundary-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.boundary-grid li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 0.94rem;
}

.portal-page .lightbox__img {
  width: auto;
  max-width: min(1600px, 100%);
}

.portal-page .lightbox.is-zoomed .lightbox__img {
  max-width: none;
}

.portal-page .lightbox__cap {
  max-width: min(1600px, 100%);
}

.mobile-proof {
  max-width: 390px;
  margin-inline: auto;
}

.mobile-proof .shot,
.mobile-proof .shot-btn,
.mobile-proof figcaption {
  max-width: 390px;
}

@media (prefers-reduced-motion: reduce) {
  .portal-page .shot-btn .shot {
    transition: none;
  }
}
