#models.section {
  padding-bottom: 58px;
}

#models + .section {
  padding-top: 58px;
}

/* Keep the creator directory inside the viewport at 100% browser zoom. */
.demo-models .layout > section,
.demo-models .grid,
.demo-models .card,
.demo-models .details,
.demo-models .tags,
.demo-models .tag {
  min-width: 0;
}

.demo-models .layout > section,
.demo-models .grid,
.demo-models .card {
  max-width: 100%;
}

.demo-models .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-models .details,
.demo-models .tags,
.demo-models .tag {
  overflow-wrap: anywhere;
}

.demo-models .pager {
  max-width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 1200px) {
  .demo-models .wrap {
    max-width: 1440px;
  }
}

@media (max-width: 1199px) {
  .demo-models .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .demo-models .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .demo-models .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .demo-home .section.wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .demo-home #models .heading,
  .demo-home #models .heading > div {
    width: 100%;
    min-width: 0;
  }

  .demo-home #models .heading h2 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
  }

  .demo-home .nav {
    height: 68px;
    gap: 10px;
    padding-inline: 16px;
  }

  .demo-home .nav .brand {
    min-width: 0;
    gap: 6px;
    font-size: 20px;
    white-space: nowrap;
  }

  .demo-home .nav .brand img {
    width: 34px;
    height: 34px;
    flex: none;
  }

  .demo-home #headerConsultLabel {
    min-height: 42px;
    flex: none;
    margin-left: auto;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .demo-models,
  .demo-models main,
  .demo-models .layout,
  .demo-models .layout > *,
  .demo-models .results-bar,
  .demo-models .grid,
  .demo-models .card {
    min-width: 0;
    max-width: 100%;
  }

  .demo-models .layout > section,
  .demo-models .grid,
  .demo-models .card {
    width: 100%;
  }

  .demo-models .details,
  .demo-models .tags,
  .demo-models .tag {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .demo-models .pager {
    flex-wrap: wrap;
  }

  .demo-models .pager button {
    min-width: 44px;
    height: 44px;
  }

  .demo-models .photo {
    height: min(300px, 76vw);
  }

  .demo-home .hero {
    background-position: 58% center;
  }

  .demo-home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(247, 252, 255, 0.97) 0%,
      rgba(234, 247, 255, 0.88) 48%,
      rgba(234, 247, 255, 0.24) 100%
    );
  }

  .demo-home .hero::after {
    background-position: 58% center;
  }

  .demo-home .hero .wrap {
    min-height: 440px;
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .demo-home .hero h1 {
    max-width: 292px;
    margin-top: 11px;
    margin-bottom: 13px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.2px;
  }

  .demo-home .hero p {
    max-width: 310px;
    margin-block: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #47677c;
  }

  .demo-home .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .demo-home .hero-actions .button {
    padding: 11px 17px;
    font-size: 13px;
  }

  .demo-home .wecom-float,
  .demo-models .wecom-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  #models.section {
    padding-top: 46px;
    padding-bottom: 42px;
  }

  #models + .section {
    padding-top: 42px;
  }
}

@media (max-width: 360px) {
  .demo-home .nav .brand {
    font-size: 18px;
  }

  .demo-home #headerConsultLabel {
    padding-inline: 12px;
    font-size: 12px;
  }
}
