/* V25: certificate-photo viewer. Source images remain unaltered and uncropped. */
.v25-honors-area {
  margin-top: clamp(48px, 7vw, 88px);
  padding: 0 0 clamp(38px, 5vw, 64px);
}

.v25-honors-heading {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid #e6e5e1;
}

.v25-honors-heading h3 {
  margin: 8px 0 5px;
  color: #263136;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -.025em;
}

.v25-honors-heading p {
  margin: 3px 0;
  color: #68747a;
  font-size: 14px;
  line-height: 1.65;
}

.v25-honors-heading .v25-honors-disclaimer {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 6px 10px;
  border: 1px solid #ead9d6;
  border-radius: 999px;
  background: #fff9f7;
  color: #8d393d;
  font-size: 12px;
  line-height: 1.4;
}

.v25-honors-gallery {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 26px);
  border: 1px solid #e6e5e1;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f7f6f2 100%);
  box-shadow: 0 18px 48px rgb(31 42 46 / 7%);
}

/* Static fallback: all four original photos remain visible when JavaScript is unavailable. */
.v25-honors-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.v25-honors-slide {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e7e4dd;
  border-radius: 12px;
  background: #fff;
}

.v25-honors-original {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f1eb;
}

.v25-honors-original img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

/* The first three original files are upside down; rotate their display only. */
.v25-honors img.v17-rotate { transform: rotate(180deg); }

.v25-honors-slide figcaption {
  margin-top: 10px;
  color: #68747a;
  font-size: 13px;
  line-height: 1.5;
}

.v25-honors-controls[hidden] { display: none !important; }

.v25-honors.is-enhanced .v25-honors-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 18px;
  align-items: stretch;
}

.v25-honors.is-enhanced .v25-honors-stage {
  display: block;
  min-width: 0;
  min-height: 400px;
}

.v25-honors.is-enhanced .v25-honors-slide {
  padding: 0;
  border: 0;
  background: transparent;
}

.v25-honors.is-enhanced .v25-honors-slide[hidden] { display: none !important; }

.v25-honors.is-enhanced .v25-honors-original {
  min-height: 400px;
  height: clamp(400px, 62vh, 720px);
  background: #f1efe9;
}

.v25-honors.is-enhanced .v25-honors-original img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.v25-honors.is-enhanced .v25-honors-slide figcaption { padding: 10px 2px 0; }

.v25-honors-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.v25-honors-arrow {
  min-height: 42px;
  border: 1px solid #dedbd4;
  border-radius: 10px;
  background: #fff;
  color: #343c40;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}

.v25-honors-arrow:hover,
.v25-honors-thumb:hover { border-color: #b94749; }

.v25-honors-arrow:focus-visible,
.v25-honors-thumb:focus-visible,
.v25-honors-original:focus-visible {
  outline: 3px solid #c45152;
  outline-offset: 3px;
}

.v25-honors-thumbnails {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.v25-honors-thumb {
  position: relative;
  display: flex;
  height: 106px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid #e3e0d9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.v25-honors-thumb[aria-pressed="true"] {
  border: 2px solid #b94749;
  box-shadow: 0 0 0 3px rgb(185 71 73 / 10%);
}

.v25-honors-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v25-honors-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(35 43 46 / 78%);
  color: #fff;
  font-size: 10px;
}

.v25-honors-status {
  margin: auto 0 0;
  color: #68747a;
  font-size: 12px;
  text-align: center;
}

.v25-honors-fallback-note {
  max-width: 1120px;
  margin: 10px auto 0;
  color: #758087;
  font-size: 12px;
  line-height: 1.6;
}

.v25-honors.is-enhanced .v25-honors-slide.is-active .v25-honors-original img {
  animation: v25-honor-enter .28s ease-out both;
}

@keyframes v25-honor-enter {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .v25-honors-area { margin-top: 42px; }
  .v25-honors-heading { margin-bottom: 16px; }
  .v25-honors-gallery { padding: 10px; border-radius: 14px; }
  .v25-honors-stage { grid-template-columns: 1fr; gap: 12px; }
  .v25-honors-original { min-height: 220px; }
  .v25-honors-original img { max-height: 68vh; }

  .v25-honors.is-enhanced .v25-honors-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
  }

  .v25-honors.is-enhanced .v25-honors-stage { min-height: 0; }
  .v25-honors.is-enhanced .v25-honors-original {
    min-height: 0;
    height: min(64svh, 620px);
  }
  .v25-honors.is-enhanced .v25-honors-original img { max-width: 100%; }
  .v25-honors-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
  }
  .v25-honors-arrow { min-height: 42px; }
  .v25-honors-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .v25-honors-thumb { height: 82px; padding: 3px; }
  .v25-honors-status { grid-column: 1 / -1; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .v25-honors.is-enhanced .v25-honors-slide.is-active .v25-honors-original img {
    animation: none;
  }
}
