.photo-board {
  --board-paper: #dfeefe;
  --board-ink: #102845;
  --board-muted: #233e5b;
  --board-veil: rgb(222 237 251 / .85);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: clamp(345px, 36vw, 590px);
  overflow: clip;
  border-radius: 24px;
  background: var(--board-paper);
  color: var(--board-ink);
}
:root[data-theme='dark'] .photo-board {
  --board-paper: #112748;
  --board-ink: #f4f8ff;
  --board-muted: #d4e4f8;
  --board-veil: rgb(16 34 64 / .9);
}
.photo-board__image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 62%;
}
.photo-board::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--board-veil), var(--board-veil) 27%, transparent 56%);
}
.photo-board__copy { width: 47%; padding: clamp(30px, 4vw, 80px); padding-right: 0; }
.photo-board h1 {
  font-size: clamp(2.75rem, 4.8vw, 5.5rem);
  font-weight: 745;
  line-height: 1.01;
  letter-spacing: -.055em;
}
.photo-board p { max-width: 35ch; margin-top: 16px; font-size: clamp(1.05rem, 1.35vw, 1.4rem); line-height: 1.46; color: var(--board-muted); }
.photo-board .btn { margin-top: clamp(18px, 2vw, 30px); }
.photo-board .btn span { font-size: 1.2em; line-height: 1; }
:root[data-theme='dark'] .photo-board .btn-primary { background: #e6f1ff; color: #112b51; }
:root[data-theme='dark'] .photo-board .btn-primary:hover { background: #fff; }
@media (min-width: 1880px) {
  .photo-board__image { width: min(100%, max(55%, 1540px)); object-position: center 58%; mask-image: linear-gradient(90deg, transparent, #000 20%); }
  .photo-board::before { background: linear-gradient(90deg, var(--board-paper) 30%, transparent 59%); }
}
@media (max-width: 740px) {
  .photo-board { align-items: start; min-height: 0; border-radius: 18px; }
  .photo-board__copy { grid-row: 1; width: 100%; padding: 22px 20px 6px; }
  .photo-board h1 { font-size: clamp(2.35rem, 7.5vw, 3.45rem); }
  .photo-board__image { position: static; grid-row: 2; width: 100%; height: clamp(150px, 33vw, 230px); object-position: 82% 68%; }
  .photo-board::before { inset: auto 0 0; height: clamp(150px, 33vw, 230px); background: linear-gradient(180deg, var(--board-paper), transparent 34%); }
  .photo-board p { margin-top: 10px; }
  .photo-board .btn { min-height: 44px; padding: 9px 14px; margin-top: 14px; }
}
