/* Relationship maps shared by The Table and Portfolio. */

.relationship-map-panel {
  overflow: visible;
}

.relationship-map-intro {
  max-width: 72ch;
}

.relationship-map-frame {
  position: relative;
  margin: 24px -8px 8px;
  padding: 18px 16px 12px;
  background:
    radial-gradient(circle at 15% 20%, rgba(154, 20, 20, 0.06), transparent 32%),
    rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(10, 10, 10, 0.68);
  box-shadow: 4px 5px 0 rgba(10, 10, 10, 0.16);
  transform: rotate(0.18deg);
}

.relationship-map-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(10, 10, 10, 0.18);
  pointer-events: none;
}

.relationship-map-frame picture,
.relationship-map-frame img {
  position: relative;
  display: block;
  width: 100%;
}

.relationship-map-frame img {
  height: auto;
}

.relationship-map-frame figcaption {
  position: relative;
  max-width: 72ch;
  margin: 8px auto 0;
  padding: 8px 12px 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.relationship-map-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .relationship-map-frame {
    margin-right: -12px;
    margin-left: -12px;
    padding: 10px 6px 8px;
  }

  .relationship-map-frame figcaption {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .relationship-map-frame {
    transform: none;
  }
}

@media print {
  .relationship-map-frame {
    break-inside: avoid;
    background: #fff;
    box-shadow: none;
  }
}
