/* Measured from the updated 1920 × 5138 detail-page reference. */
.detail-page {
  background: #fff;
  color: #121212;
  color-scheme: light;
}

.font-detail {
  padding-bottom: 8.229167vw;
}

.detail-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-introduction {
  position: relative;
  min-height: 32.5vw;
}

.detail-introduction h1 {
  position: absolute;
  top: 7.03125vw;
  left: 4.166667%;
  margin: 0;
  font: 400 4.375vw / 1.12 "Helvetica Now Display", "HONOR Sans Brand";
  letter-spacing: -0.065em;
}

.detail-description {
  position: absolute;
  top: 7.03125vw;
  left: 49.583333%;
  width: 43.125%;
  color: #ccc;
  font: 400 1.041667vw / 1.25 "Helvetica Now Display", "HONOR Sans Brand";
}

.detail-description p {
  margin: 0;
  text-wrap: pretty;
}

.detail-metadata {
  margin: 5.833333vw 0 0;
}

.detail-metadata div {
  display: flex;
}

.detail-metadata dt,
.detail-metadata dd {
  margin: 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 3.802083vw;
  row-gap: 3.645833vw;
  width: 72.239583%;
  margin-left: 24.21875%;
  align-items: start;
}

.detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}

.detail-gallery[data-image-reveal] [data-reveal-state] img {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(32px) scale(0.94);
  transform-origin: 50% 0;
}

.detail-gallery[data-image-reveal] [data-reveal-state="visible"] img {
  opacity: 1;
  clip-path: none;
  transform: none;
}

@media (max-width: 600px) {
  .font-detail {
    padding-bottom: 64px;
  }

  .detail-introduction {
    min-height: 0;
    padding: 32px 18px 46px;
  }

  .detail-introduction h1,
  .detail-description {
    position: static;
    width: auto;
  }

  .detail-introduction h1 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .detail-description {
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.45;
  }

  .detail-metadata {
    margin-top: 28px;
  }

  .detail-gallery {
    width: auto;
    margin-inline: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}
