/* Honors gallery enhancements, scoped to the awards page only. */
#honors-gallery .honors-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

#honors-gallery .honor-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(223, 180, 119, .22);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              border-color .35s ease,
              box-shadow .5s ease;
}

#honors-gallery .honor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(223, 180, 119, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#honors-gallery .honor-scan {
  isolation: isolate;
}

#honors-gallery .honor-scan img {
  transition: transform .65s cubic-bezier(.22, 1, .36, 1),
              filter .65s ease;
}

#honors-gallery .honor-scan > span {
  transition: transform .4s ease, color .4s ease;
}

@media (hover: hover) and (pointer: fine) {
  #honors-gallery .honor-card:hover {
    transform: translateY(-10px);
    border-color: rgba(223, 180, 119, .7);
    box-shadow: 0 28px 50px rgba(0, 0, 0, .3);
  }

  #honors-gallery .honor-card:hover::after {
    opacity: 1;
  }

  #honors-gallery .honor-card:hover .honor-scan img {
    transform: scale(1.065);
    filter: contrast(1.05) saturate(1.06);
  }

  #honors-gallery .honor-card:hover .honor-scan > span {
    transform: translateY(-3px);
    color: #79592c;
  }
}

#honors-gallery .honor-card:focus-within {
  border-color: rgba(223, 180, 119, .8);
  box-shadow: 0 0 0 2px rgba(223, 180, 119, .24);
}

#honors-gallery .honor-scan:focus-visible {
  outline: 3px solid #dfb477;
  outline-offset: -4px;
}

@media (max-width: 1000px) {
  #honors-gallery .honors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #honors-gallery .honors-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #honors-gallery .honor-card,
  #honors-gallery .honor-card::after,
  #honors-gallery .honor-scan img,
  #honors-gallery .honor-scan > span {
    transition: none;
  }

  #honors-gallery .honor-card:hover,
  #honors-gallery .honor-card:hover .honor-scan img,
  #honors-gallery .honor-card:hover .honor-scan > span {
    transform: none;
  }
}
