/* V37 honor gallery: equal media stages, original image proportions retained.
   Load after the V36 honor styles. The V37 stage must wrap each .v34-perspective. */
.v30-honors-slide {
  align-items: stretch;
}

.v30-honor-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  align-items: stretch;
  min-width: 0;
  height: 100%;
}

/* Equal aspect-ratio media stage gives the certificate and plaque the same
   visual height. Empty space is intentional where source proportions differ. */
.v37-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.32 / 1;
  min-width: 0;
  overflow: hidden;
  padding: clamp(10px, 1.5vw, 18px);
  background: #f3f1ec;
  border: 1px solid #e4e1db;
  border-radius: 6px;
}

/* Keep the V34 perspective wrapper's JS-written native aspect-ratio. Its
   dimensions are constrained by the equal stage, so it remains centered and
   scales proportionally rather than being stretched or cover-cropped. */
.v37-stage > .v34-perspective {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin-inline: auto;
}

.v37-stage > .v34-perspective img {
  display: block;
  max-width: none;
}

.v30-honor-item figcaption,
.v30-honor-item > figcaption {
  align-self: end;
  min-height: 1.6em;
  padding-top: 10px;
  text-align: center;
}

@media (max-width: 760px) {
  .v30-honors-slide {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .v30-honor-item {
    height: auto;
  }

  .v37-stage {
    width: 100%;
    aspect-ratio: 1.32 / 1;
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v30-honors-slide {
    animation: none;
    transition: none;
  }
}
/* Keep all media within an equal-sized frame without stretching original text. */
.v30-honor-item { grid-template-rows:auto auto auto; align-content:start; }
.v37-stage { padding:0; }
.v37-stage > .v34-perspective { max-height:none; }
@media (max-width:760px) { .v37-stage { padding:0; } }
/* Override the earlier two-class alignment rule so both figures stretch equally. */
.v26-honors-slide.v30-honors-slide { align-items:stretch; }
