/* A static six-frame gallery in the existing homepage document section. */
.kv-refresh .kh-documents.kv-certificates {
  background: #faf7f0 !important;
}
.kv-refresh .kv-about-certificates { background:#faf7f0; padding-block:58px; scroll-margin-top:105px; }
.kv-refresh .kv-certificates > .kh-wrap {
  padding: 22px 0 26px !important;
  max-width: 1540px !important;
}
.kv-refresh .kv-certificates h2,
.kv-refresh .kv-certificates .kv-enter > h2 {
  text-align: center;
  margin: 0 0 38px !important;
  font-size: clamp(30px, 2.8vw, 44px) !important;
}
.kv-certificate-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 1.55vw, 28px);
  align-items: start;
}
.kv-refresh .kv-certificate {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.kv-refresh .kv-certificate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 1536;
  object-fit: contain;
  box-shadow: 0 6px 16px #2a333b12;
  cursor: default;
}
@media (max-width: 1279px) {
  .kv-certificate-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .kv-refresh .kv-certificates > .kh-wrap { max-width: 1000px !important; }
}
@media (max-width: 639px) {
  .kv-certificate-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .kv-refresh .kv-certificates > .kh-wrap { width: calc(100% - 36px) !important; }
  .kv-refresh .kv-certificates h2,
  .kv-refresh .kv-certificates .kv-enter > h2 { margin-bottom: 28px !important; }
}
@media (max-width: 359px) {
  .kv-certificate-gallery { grid-template-columns: 1fr; max-width: 250px; margin-inline: auto; }
}
