/* ======================
   Rendering Page
====================== */

.rendering-page {
  width: var(--page-width);
  margin: 0 auto;

  padding:
    var(--portfolio-page-top)
    0
    var(--portfolio-page-bottom);
}


/* ======================
   Section Heading
====================== */

.rendering-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 36px;

  color: #888;
}


/*
 * 使用短横线代替章节编号，
 * 保持区域提示清晰而不过分强调。
 */
.rendering-section-heading::before {
  content: "";

  flex-shrink: 0;

  width: 32px;
  height: 1px;

  background:
    rgba(255, 255, 255, 0.28);
}


.rendering-section-heading h2 {
  margin: 0;

  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
}


/* ======================
   Interactive 3D
====================== */

.rendering-interactive {
  width: 100%;
}

.rendering-interactive-list {
  width: 100%;
}


/* ======================
   Interactive Project
====================== */

.project {
  display: flex;
  flex-direction: column;
  gap: 24px;

  margin-bottom: 160px;
}

.project:last-child {
  margin-bottom: 0;
}


/* ======================
   Three.js Viewer
====================== */

.viewer {
  position: relative;

  width: 100%;
  height: 70vh;
  min-height: 600px;

  overflow: hidden;

  border-radius: 24px;

  /*
   * JS和模型加载完成前使用深色背景，
   * 避免加载层圆角边缘出现浅色接缝。
   */
  background: #151515;

  isolation: isolate;
}

.viewer-canvas {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: inherit;

  outline: none;

  /*
   * 阻止浏览器默认触摸手势，
   * 将模型操作交给OrbitControls。
   */
  touch-action: none;
}


/* ======================
   Viewer Loading
====================== */

.viewer-loading {
  position: absolute;
  z-index: 5;

  /*
   * 向外扩大1px，
   * 覆盖圆角抗锯齿接缝。
   */
  inset: -1px;

  border-radius: inherit;

  background: #151515;

  opacity: 1;
  visibility: visible;

  pointer-events: none;

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.viewer-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}


/* ======================
   Loading Information
====================== */

.viewer-loading-information {
  position: absolute;
  right: 30px;
  bottom: 36px;
  left: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.viewer-loading-information p {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0;

  color:
    rgba(255, 255, 255, 0.58);

  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.viewer-loading-percentage {
  flex-shrink: 0;

  color:
    rgba(255, 255, 255, 0.58);

  font-size: 0.68rem;

  /*
   * 使用等宽数字，
   * 防止百分比宽度跳动。
   */
  font-variant-numeric:
    tabular-nums;

  line-height: 1;
  letter-spacing: 0.1em;
}


/* ======================
   Loading Dot
====================== */

.viewer-loading-dot {
  flex-shrink: 0;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #fff;

  animation:
    viewer-loading-dot-pulse
    1.4s
    ease-in-out
    infinite;
}


/* ======================
   Loading Progress
====================== */

.viewer-loading-progress {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;

  height: 1px;

  overflow: hidden;

  /*
   * 进度条未完成部分。
   */
  background:
    rgba(255, 255, 255, 0.1);
}

.viewer-loading-progress span {
  display: block;

  /*
   * 宽度由rendering.js根据
   * 实际加载进度实时修改。
   */
  width: 0;
  height: 100%;

  background:
    rgba(255, 255, 255, 0.82);

  transform: none;

  transition:
    width 0.2s ease-out;
}


/* ======================
   Loading Animation
====================== */

@keyframes viewer-loading-dot-pulse {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}


/* ======================
   Viewer Buttons
====================== */

.fullscreen-btn,
.reset-view-btn,
.background-toggle-btn {
  position: absolute;
  z-index: 10;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  background:
    rgba(20, 20, 20, 0.45);
  color: #fff;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  -webkit-tap-highlight-color:
    transparent;

  appearance: none;
  -webkit-appearance: none;

  touch-action: manipulation;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.fullscreen-btn {
  top: 20px;
}

.reset-view-btn {
  top: 76px;
}

.reset-view-icon {
  display: block;

  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.background-toggle-btn {
  top: 132px;
}

/*
 * 只有真正支持鼠标悬停的设备
 * 才启用hover效果。
 */
@media (hover: hover) and (pointer: fine) {
  .fullscreen-btn:hover,
  .reset-view-btn:hover,
  .background-toggle-btn:hover {
    background:
      rgba(255, 255, 255, 0.18);

    transform: scale(1.06);
  }
}

.fullscreen-btn:active,
.reset-view-btn:active,
.background-toggle-btn:active {
  transform: scale(0.96);
}

/*
 * 手机和平板使用粗指针触摸，
 * 强制取消浏览器模拟并保留的hover状态。
 */
@media (pointer: coarse) {
  .fullscreen-btn:hover,
  .reset-view-btn:hover,
  .background-toggle-btn:hover {
    background:
      rgba(20, 20, 20, 0.45);

    transform: none;
  }


  /*
   * 只在手指实际按下时显示反馈。
   */
  .fullscreen-btn:active,
  .reset-view-btn:active,
  .background-toggle-btn:active {
    background:
      rgba(255, 255, 255, 0.18);

    transform: scale(0.96);
  }
}

.fullscreen-btn:focus-visible,
.reset-view-btn:focus-visible,
.background-toggle-btn:focus-visible {
  outline:
    1px solid
    rgba(255, 255, 255, 0.9);

  outline-offset: 4px;
}

.fullscreen-btn:disabled {
  opacity: 0.65;
  cursor: wait;

  transform: none;
}


/* ======================
   Viewer Fullscreen
====================== */

/*
 * :fullscreen：电脑和安卓支持的系统级全屏。
 * .is-pseudo-fullscreen：iPhone等不支持普通元素全屏时，使用网页内备用全屏。
 */

.viewer:fullscreen,
.viewer.is-pseudo-fullscreen {
  width: 100vw;

  height: 100vh;
  height: 100dvh;

  min-height: 0;
  max-height: none;

  border-radius: 0;
}


/* iPhone备用全屏 */
.viewer.is-pseudo-fullscreen {
  position: fixed;
  z-index: 500;
  inset: 0;
}


/* 备用全屏时禁止后面的页面滚动 */
html.viewer-pseudo-fullscreen,
html.viewer-pseudo-fullscreen body {
  overflow: hidden;

  overscroll-behavior: none;
}


/*
 * 普通移动端允许上下滑动页面，
 * 但进入全屏后，触摸操作全部交给模型。
 */
.viewer:fullscreen .viewer-canvas,
.viewer.is-pseudo-fullscreen
.viewer-canvas {
  touch-action: none !important;
}


/*
 * 全屏按钮避开iPhone刘海和安全区域。
 */
.viewer:fullscreen .fullscreen-btn,
.viewer:fullscreen .reset-view-btn,
.viewer:fullscreen .background-toggle-btn,
.viewer.is-pseudo-fullscreen
.fullscreen-btn,
.viewer.is-pseudo-fullscreen
.reset-view-btn,
.viewer.is-pseudo-fullscreen
.background-toggle-btn {
  right:
    calc(
      28px +
      env(safe-area-inset-right, 0px)
    );
}

.viewer:fullscreen .fullscreen-btn,
.viewer.is-pseudo-fullscreen
.fullscreen-btn {
  top:
    calc(
      28px +
      env(safe-area-inset-top, 0px)
    );
}

.viewer:fullscreen .reset-view-btn,
.viewer.is-pseudo-fullscreen
.reset-view-btn {
  top:
    calc(
      84px +
      env(safe-area-inset-top, 0px)
    );
}

.viewer:fullscreen
.background-toggle-btn,
.viewer.is-pseudo-fullscreen
.background-toggle-btn {
  top:
    calc(
      140px +
      env(safe-area-inset-top, 0px)
    );
}


/* ======================
   Interactive Project Information
====================== */

.project-info h3 {
  margin: 0;

  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.project-info p {
  margin: 8px 0 0;

  color: #999;

  font-size: 0.9rem;
  line-height: 1.6;
}


/* ======================
   Rendered Stills
====================== */

.rendering-stills {
  width: 100%;

  /*
   * 与交互模型区域之间保留
   * 较明显的章节距离。
   */
  margin-top:
    clamp(10rem, 18vh, 16rem);
}


/* ======================
   Stills Grid
====================== */

/*
 * 使用Flex布局让每一行都可以
 * 使用不同的左右宽度比例。
 *
 * 第一行：01 / 02
 * 第二行：05 / 03
 * 第三行：06 / 07
 */
.stills-grid {
  --stills-gap:
    clamp(20px, 2.5vw, 40px);

  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;

  gap:
    clamp(72px, 8vw, 120px)
    var(--stills-gap);

  width: 100%;
}


/*
 * 第一行：01 / 02
 *
 * 宽度为66% / 34%，
 * 两张图片高度统一为可用宽度的41%。
 */
.still-project-01 {
  --still-aspect-ratio: 66 / 41;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.66
    );
}

.still-project-02 {
  --still-aspect-ratio: 34 / 41;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.34
    );
}


/*
 * 第二行：05 / 03
 *
 * 宽度为39% / 61%，
 * 两张图片高度统一为可用宽度的48%。
 */
.still-project-05 {
  --still-aspect-ratio: 39 / 48;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.39
    );
}

.still-project-03 {
  --still-aspect-ratio: 61 / 48;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.61
    );
}


/*
 * 第三行：06 / 07
 *
 * 宽度为62% / 38%，
 * 两张图片高度统一为可用宽度的34.7%。
 */
.still-project-06 {
  --still-aspect-ratio: 62 / 34.7;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.62
    );
}

.still-project-07 {
  --still-aspect-ratio: 38 / 34.7;

  width:
    calc(
      (100% - var(--stills-gap))
      * 0.38
    );
}


/* ======================
   Still Project
====================== */

.still-project {
  min-width: 0;
}

.still-project-open {
  display: block;

  width: 100%;
  padding: 0;

  border: 0;

  background: transparent;
  color: inherit;

  text-align: left;

  cursor: pointer;
}

/*
 * 使用键盘Tab选中作品时，
 * 显示清晰的焦点轮廓。
 */
.still-project-open:focus-visible {
  outline:
    1px solid
    rgba(255, 255, 255, 0.75);

  outline-offset: 6px;
}


/* ======================
   Still Project Image
====================== */

.still-project-image {
  position: relative;

  display: block;

  width: 100%;

  /*
   * 每排两张图片使用相互对应的比例，
   * 从而保证显示高度完全相同。
   */
  aspect-ratio:
    var(--still-aspect-ratio);

  overflow: hidden;

  border-radius: 12px;

  background: #151515;
}

.still-project-image img {
  display: block;

  width: 100%;
  height: 100%;

  /*
   * 为保证同排图片高度相同，
   * 允许裁掉少量超出部分。
   */
  object-fit: cover;
  object-position: center;

  transition:
    transform 0.7s
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
}

.still-project-open:hover
.still-project-image img {
  transform: scale(1.035);
}


/* ======================
   Still Project Overlay
====================== */

.still-project-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;

  padding: 22px;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0)
        48%
    );

  color: #fff;

  opacity: 0;

  transition:
    opacity 0.35s ease;
}

.still-project-open:hover
.still-project-overlay {
  opacity: 1;
}

.still-project-overlay span {
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}



/* ======================
   Still Project Information
====================== */

.still-project-information {
  padding-top: 18px;
}

.still-project-information h3 {
  margin: 0;

  font-size:
    clamp(
      1.25rem,
      2vw,
      1.8rem
    );

  font-weight: 500;
  line-height: 1.25;
}

.still-project-information p {
  margin: 8px 0 0;

  color: #888;

  font-size: 0.78rem;
  line-height: 1.6;
}


/* ======================
   Still Viewer
====================== */

.still-viewer[hidden] {
  display: none;
}

.still-viewer {
  position: fixed;
  z-index: 300;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.still-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/*
 * 查看器打开后，
 * JS会给body添加这个类。
 */
html.still-viewer-open,
html.still-viewer-open body {
  overflow: hidden;
}


/* ======================
   Still Viewer Backdrop
====================== */

.still-viewer-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;

  width: 100%;
  height: 100%;
  padding: 0;

  border: 0;

  background:
    rgba(5, 5, 6, 0.94);

  cursor: default;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* ======================
   Still Viewer Panel
====================== */

.still-viewer-panel {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 330px);

  width: min(1800px, 100%);
  height: calc(100dvh - 24px);

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;

  background: #0d0d0e;

  opacity: 0;

  transform:
    translateY(20px)
    scale(0.99);

  transition:
    opacity 0.4s ease,
    transform 0.5s
      cubic-bezier(0.22, 1, 0.36, 1);
}

.still-viewer.is-open
.still-viewer-panel {
  opacity: 1;
  transform: none;
}


/* ======================
   Still Viewer Close
====================== */

.still-viewer-close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);
  border-radius: 50%;

  background:
    rgba(20, 20, 20, 0.6);
  color: #fff;

  font-size: 1.4rem;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.still-viewer-close:hover {
  background:
    rgba(255, 255, 255, 0.18);

  transform: scale(1.1);
}

.still-viewer-close:focus-visible {
  outline:
    1px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}


/* ======================
   Still Viewer Media
====================== */

.still-viewer-media {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  height: 100%;

  padding:
    clamp(0.5rem, 1vw, 1rem)
    clamp(1rem, 1.5vw, 1.5rem);

  overflow: hidden;

  background: #111113;

  touch-action: pan-y;

  cursor: grab;
  user-select: none;
}

.still-viewer-media.is-dragging {
  cursor: grabbing;
}

.still-viewer-image {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  pointer-events: none;

  opacity: 1;

  transform:
    translateX(0)
    scale(1);

  transition:
    opacity 0.28s ease,
    transform 0.38s
      cubic-bezier(0.22, 1, 0.36, 1);
}

.still-viewer-image.is-changing-left {
  opacity: 0;

  transform:
    translateX(-28px)
    scale(0.985);
}

.still-viewer-image.is-changing-right {
  opacity: 0;

  transform:
    translateX(28px)
    scale(0.985);
}


/* ======================
   Still Viewer Navigation
====================== */

.still-viewer-navigation {
  position: absolute;
  z-index: 3;
  top: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  padding: 0;

  border:
    1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  background:
    rgba(10, 10, 11, 0.45);
  color: #aaa;

  font-size: 1rem;

  cursor: pointer;

  transform: translateY(-50%);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.still-viewer-navigation:hover {
  border-color:
    rgba(255, 255, 255, 0.45);

  background:
    rgba(255, 255, 255, 0.12);
  color: #fff;
}

.still-viewer-previous:hover {
  transform:
    translateY(-50%)
    translateX(-3px);
}

.still-viewer-next:hover {
  transform:
    translateY(-50%)
    translateX(3px);
}

.still-viewer-navigation[hidden] {
  display: none;
}

.still-viewer-previous {
  left: 12px;
}

.still-viewer-next {
  right: 12px;
}

.still-viewer-navigation:focus-visible {
  outline:
    1px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}


/* ======================
   Still Viewer Information
====================== */

.still-viewer-information {
  display: flex;
  flex-direction: column;

  min-width: 0;
  height: 100%;

  padding:
    clamp(5rem, 8vh, 7rem)
    clamp(1.25rem, 2vw, 2rem)
    clamp(2rem, 5vh, 4rem);

  overflow-y: auto;

  border-left:
    1px solid rgba(255, 255, 255, 0.1);

  background: #0b0b0c;
}

.still-viewer-counter {
  display: flex;
  gap: 0.45rem;

  margin-bottom:
    clamp(4rem, 10vh, 7rem);

  color: #666;

  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.still-viewer-counter span:first-child {
  color: #fff;
}

.still-viewer-information h2 {
  margin: 0;

  font-size:
    clamp(1.6rem, 2vw, 2.6rem);

  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.still-viewer-tools {
  margin: 18px 0 0;

  color: #777;

  font-size: 0.75rem;
  line-height: 1.8;
}

.still-viewer-description {
  margin: 2.25rem 0 0;

  color: #999;

  font-size: 0.88rem;
  line-height: 1.9;
}

/* ==============================
   360° Panorama Link
============================== */

.still-viewer-link {
  display: inline-block;
  align-self: flex-start;

  width: fit-content;
  margin-top: 2rem;

  color: #999;

  font-size: 0.88rem;
  line-height: 1.9;

  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;

  transition:
    color 0.3s ease;
}

.still-viewer-link:hover {
  color: #fff;
}

.still-viewer-link[hidden] {
  display: none;
}


/* ======================
   Tablet
====================== */

@media (max-width: 1200px) {
  .still-viewer-panel {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(270px, 310px);
  }

  .still-viewer-media {
    padding: 10px 1.5rem;
  }
}

@media (max-width: 900px) {
  .still-viewer {
    padding: 8px;
  }

  .still-viewer-panel {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(250px, 290px);

    height: calc(100dvh - 16px);
  }

  .still-viewer-information {
    padding:
      5rem
      1.5rem
      1.5rem;
  }

  .still-viewer-media {
    padding: 8px 1rem;
  }
}


/* ======================
   Mobile
====================== */

@media (max-width: 768px) {
  .rendering-page {
    width:
      var(--page-width-mobile);

    padding:
      var(--portfolio-page-top-mobile)
      0
      var(--portfolio-page-bottom-mobile);
  }


  /* Section Heading */

  .rendering-section-heading {
    gap: 12px;
    margin-bottom: 32px;
  }
  
  .rendering-section-heading::before {
    width: 24px;
  }


  /* Interactive Project */

  .project {
    gap: 18px;
    margin-bottom: 96px;
  }

  .project:last-child {
    margin-bottom: 0;
  }


  /* Three.js Viewer */

  .viewer {
    height: 60svh;
    min-height: 360px;
    max-height: 580px;

    border-radius: 18px;
  }

  .viewer-canvas {
    touch-action: pan-y !important;
  }


  /* Loading */

  .viewer-loading-information {
    right: 20px;
    bottom: 32px;
    left: 20px;
  }

  .viewer-loading-information p,
  .viewer-loading-percentage {
    font-size: 0.58rem;
  }

  .viewer-loading-progress {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }


  /* Viewer Buttons */

  .fullscreen-btn,
  .reset-view-btn,
  .background-toggle-btn {
    right: 14px;

    width: 40px;
    height: 40px;
  }

  .fullscreen-btn {
    top: 14px;
  }

  .reset-view-btn {
    top: 64px;
  }

  .background-toggle-btn {
    top: 114px;
  }


  /* Project Information */

  .project-info h3 {
    font-size: 1.6rem;
  }


  /* Rendered Stills */

  .rendering-stills {
    margin-top: 9rem;
  }


  /*
   * 移动端改成单列，
   * 保持图片原始比例。
   */
  .stills-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 72px;
  }

  .still-project-01,
  .still-project-02,
  .still-project-03,
  .still-project-05,
  .still-project-06,
  .still-project-07 {
    width: 100%;
  }

  .still-project-01 {
    --still-aspect-ratio: 3000 / 1875;
  }

  .still-project-02 {
    --still-aspect-ratio: 2499 / 3000;
  }

  .still-project-03 {
    --still-aspect-ratio: 3000 / 2350;
  }

  .still-project-05 {
    --still-aspect-ratio: 3000 / 3750;
  }

  .still-project-06 {
    --still-aspect-ratio: 3000 / 1688;
  }

  .still-project-07 {
    --still-aspect-ratio: 1500 / 1360;
  }

  
  .still-project-overlay {
    display: none;
  }

  .still-project-information {
    padding-top: 14px;
  }


  /* Still Viewer */

  .still-viewer-close {
    position: fixed;
    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;
  }


  .still-viewer {
    display: block;

    padding: 0;
  }

  .still-viewer-panel {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100dvh;

    border: 0;
    border-radius: 0;

    overflow-y: auto;
  }

  .still-viewer-media {
    flex: 0 0 auto;

    width: 100%;
    height: min(68vh, 680px);
    min-height: 380px;

    padding:
      4rem
      1.5rem
      2rem;

    cursor: default;
  }

  .still-viewer-navigation {
    width: 42px;
    height: 42px;
  }

  .still-viewer-previous {
    left: 10px;
  }

  .still-viewer-next {
    right: 10px;
  }

  .still-viewer-information {
    flex: 0 0 auto;

    width: 100%;
    height: auto;
    min-height: 42vh;

    padding:
      2.5rem
      20px
      3rem;

    overflow: visible;

    border-top:
      1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .still-viewer-counter {
    margin-bottom: 3rem;
  }

  .still-viewer-information h2 {
    font-size:
      clamp(1.8rem, 8vw, 2.8rem);
  }

  .still-viewer-description {
    max-width: 540px;
  }
}

@media (max-width: 490px) {
  .still-viewer-media {
    height: 62vh;
    min-height: 340px;

    padding:
      3.5rem
      1rem
      1.5rem;
  }
}


/* ======================
   Reduced Motion
====================== */

@media (
  prefers-reduced-motion: reduce
) {
  .viewer-loading-dot {
    animation: none;
    opacity: 0.65;
  }

  /*
   * 保留真实进度宽度，
   * 只关闭宽度动画。
   */
  .viewer-loading-progress span {
    transition: none;
  }

  .still-project-image img {
    transition: none;
  }

  .still-project-open:hover
  .still-project-image img {
    transform: none;
  }

  .still-viewer,
  .still-viewer-panel,
  .still-viewer-image,
  .still-viewer-navigation,
  .still-viewer-close {
    transition: none;
  }
}