.portrait {
  display: block;
  justify-self: end;
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px -18px #17336538;
}

.portrait img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateX(-3.5%) scale(1.12);
  transform-origin: center bottom;
}

@media (max-width: 900px) {
  .portrait {
    width: 220px;
  }
}

@media (max-width: 650px) {
  .portrait {
    align-self: flex-end;
    box-shadow: none;
  }
}

@media print {
  .portrait {
    display: none;
  }
}
