/* 项目详情（照 Arent & Pyke 项目页）：
   - 顶部大图：整屏宽，高 90vh（最多 70vw），页眉透明压在上面
   - 标题 58px 在左半，介绍 24px 在右半（不缩进），规格 15px 在左下
   - 图片行间距 35px：两张竖幅（3:4，各宽 50% - 17.5px）/ 一张横幅（4:3）/ 一张竖幅配一段 24px 的文字
   - "更多图片"横向拖动（450×585，不显示滚动条），最后是上一个 / 下一个项目（30px） */

.project__feature {
  position: relative;
  height: 90vh;
  max-height: 70vw;
  overflow: hidden;
}

.project__feature .pic {
  position: absolute;
  inset: 0;
}

.project__body {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3.8rem var(--margin) 0;
}

.project__title {
  margin-bottom: 4rem;
  font-size: var(--fs-40);
  font-weight: var(--weight-light);
  line-height: 1.2;
}

.project__intro {
  font-size: var(--fs-20);
  font-weight: var(--weight-light);
  line-height: var(--leading-lead);
}

.project__specs {
  margin-top: 3rem;
}

.project__specs dt,
.project__specs dd {
  font-size: var(--fs-15);
  line-height: 1.5rem;
}

.project__specs dd {
  margin-top: 0.4rem;
}

.project__specs dd + dt {
  margin-top: 2rem;
}

.project__gallery {
  margin-top: 8rem;
}

.gallery-row,
.gallery-col + .gallery-col {
  margin-top: 2rem;
}

.gallery-row:first-child {
  margin-top: 0;
}

.gallery-col .pic {
  aspect-ratio: 3 / 4;
}

.gallery-row--single .pic {
  aspect-ratio: 4 / 3;
}

.callout {
  font-size: var(--fs-20);
  font-weight: var(--weight-light);
  line-height: var(--leading-lead);
}

.gallery-col--text .callout {
  margin-bottom: 6.2rem;
}

/* 项目提交里在格子中换的行，网页上照样换行 */
.callout {
  white-space: pre-line;
}

@media (min-width: 56.25em) {
  /* 简介和图旁边的文字不做 A&P 的首行缩进：中文按句换行时缩进很怪（2026-11-17 用户定） */
  .project__gallery {
    margin-top: 4rem;
  }
}

@media (min-width: 75em) {
  .project__body {
    padding-top: 6.55rem;
  }

  .project__title {
    float: left;
    width: calc(50% - 0.5 * var(--gutter));
    font-size: var(--fs-58);
    line-height: 5.8rem;
  }

  .project__intro {
    float: right;
    width: calc(50% - 0.5 * var(--gutter));
    margin-bottom: 24rem;
    font-size: var(--fs-24);
  }

  .project__specs {
    float: left;
    clear: right;
    width: calc(50% - 0.5 * var(--gutter));
    margin-top: 0;
    margin-bottom: 4.8rem;
  }

  .project__gallery {
    clear: both;
  }

  .gallery-row {
    margin-top: 3.5rem;
  }

  .gallery-row--double {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  .gallery-col {
    width: calc(50% - 1.75rem);
  }

  .gallery-col + .gallery-col {
    margin-top: 0;
  }

  .callout {
    font-size: var(--fs-24);
  }

  .gallery-row--with-text .gallery-col--text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .gallery-row--with-text:not(.gallery-row--text-first) .callout {
    margin-left: 3rem;
  }

  .gallery-row--text-first .callout {
    margin-right: 3rem;
  }

  /* 单独一段文字、半幅一张图：占半边，左右照提交的排版表 */
  .gallery-row--text .gallery-col--text,
  .gallery-row--half .gallery-col {
    width: calc(50% - 1.75rem);
  }

  .gallery-row--text.gallery-row--right .gallery-col--text {
    margin-left: auto;
  }

  .gallery-row--text.gallery-row--left .callout {
    margin-right: 3rem;
  }

  .gallery-row--text.gallery-row--right .callout {
    margin-left: 3rem;
  }

  .gallery-row--half.gallery-row--right {
    justify-content: flex-end;
  }
}

/* 手机上文字放在图片下面 */
@media (max-width: 74.9375em) {
  .gallery-row--text-first {
    display: flex;
    flex-direction: column-reverse;
  }

  .gallery-row--text-first .gallery-col + .gallery-col {
    margin-top: 0;
  }

  .gallery-row--with-text .callout {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

/* ---------- 更多图片：横向滑动，右边一直铺到屏幕边 ---------- */
.more {
  margin-top: 8rem;
}

.more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.more__title {
  font-size: var(--fs-16);
  line-height: 5.28rem;
}

.more__hint {
  font-size: var(--fs-14);
  line-height: 4.62rem;
  color: var(--ink-soft);
}

.more__track {
  display: flex;
  gap: 1.5rem;
  margin-right: calc(50% - 50vw);
  padding-right: var(--margin);
  padding-bottom: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* 不显示滚动条：触屏左右滑，电脑上按住拖动（drag-scroll.js），也可以用键盘左右键 */
  cursor: grab;
}

.more__track::-webkit-scrollbar {
  display: none;
}

.more__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.more__track img {
  -webkit-user-drag: none;
  user-select: none;
}

.more__item {
  flex: 0 0 auto;
  width: min(70vw, 45rem);
  scroll-snap-align: start;
}

.more__item .pic {
  aspect-ratio: 450 / 585;
}

/* ---------- 上一个 / 下一个项目 ---------- */
.related {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 9.1rem;
  margin-bottom: 12.5rem;
}

.related__prev,
.related__next {
  display: block;
  font-size: var(--fs-30);
  font-weight: var(--weight-light);
  line-height: 3.6rem;
}

.related__next {
  margin-left: auto;
  text-align: right;
}

.related__label {
  display: block;
  font-size: var(--fs-15);
  font-weight: var(--weight-regular);
  line-height: 3.6rem;
}

.related__name {
  display: block;
  transition: opacity 0.3s linear;
}

.related a:hover .related__name {
  opacity: 0.6;
}

@media (max-width: 42.4375em) {
  .related__prev {
    display: none;
  }

  .related__next {
    margin-inline: auto;
    text-align: center;
  }
}
