/* Show the same portion of the school-supplied poster on the page and in the photo viewer. */
.poster-crop {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-inline: auto;
  border-radius: .25rem;
}
body :is(main, #main) :is(figure,article) .poster-crop > img,
.gallery-view .poster-crop > img {
  position: absolute;
  display: block;
  left: var(--crop-left);
  top: var(--crop-top);
  width: var(--crop-width) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
}
.poster-crop.upright > img {
  transform-origin: 0 0;
  transform: rotate(-90deg) translateX(-100%);
}
.poster-crop.clockwise > img {
  transform-origin: 0 0;
  transform: rotate(90deg) translateY(-100%);
}
.prefect-list.school-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .75rem;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  margin-inline: auto;
  text-align: center;
}
.school-portraits > li { min-width: 0; }
.school-portraits .learner-name {
  display: block;
  margin-top: .4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.school-portraits .learner-detail {
  display: block;
  margin-top: .2rem;
  font-size: 1rem;
  line-height: 1.35;
}

main section article.school-group-photo { display: block; }
