body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0px;
      background: #fff;
      text-align: left;
      color: #333;
      line-height: 1.6;
    }

/* =========================
   第一张封面照片 (001)
========================= */
#project-first-image img {
  max-width: 965px;
  width: 100%;
  height: 575px;             /* 固定高度 */
  object-fit: cover;         /* 超出部分裁剪 */
  object-position: center;   /* 裁剪时居中 */
  display: block;
  margin: 0 auto 0px auto;
}

.middle-description {
  max-width: 965px;
  margin: 0px auto; /* 水平居中 + 上下间距 */
  line-height: 1.6;
  font-size: 14px;
  padding: 0 20px;   /* 保证小屏幕也有左右留白 */
  white-space: pre-line; /* 保持换行 */
  margin-bottom: 20px;
}


/* =========================
   meta + description 佈局
========================= */
#meta-text-wrapper {
  display: flex;
  gap: 40px;                  /* 左右间距 */
  align-items: flex-start;    /* 顶部对齐 */
  margin: 15px auto;
  max-width: 965px;           /* 和图片同宽 */
}

#project-meta {
  width: 240px;
  display: grid;
  grid-template-columns: 110px 1fr; /* 左侧固定 85px，右侧自适应 */
  gap: 8px 0;                      /* 行间距 */
  font-size: 14px;
  color: #525252; 
  line-height: 1.4;
}

#project-meta h2 {
  grid-column: 1 / -1;  /* 标题独占整行 */
  margin-top: 0;
  margin-bottom: 0px;
  font-size: 16px;
  color: #2e2e2e;
}

#project-meta .label {
  font-weight: bold;
  color: #525252;
}

#project-meta .value {
  padding-left: 0; /* 保证和 label 分开 */
}

/* 右侧 description */
#project-text {
  font-size: 14px;
  flex: 1;
  color: #333;
  line-height: 1.6;
  white-space: pre-line; /* 保留换行 */
  margin-top: 28px; /* 根据需要调整距离 */
}

/* =========================
   Killer Images (002–006)
========================= */
.project-image {
  max-width: 965px;
  width: 100%;
  display: block;
  margin: 20px auto; /* 居中并留点间隔 */
}

/* gallery 整體區塊 */
.gallery-wrapper {
  max-width: 965px;
  margin: 20px auto;
  margin-top: 35px;
  text-align: center;
}

/* 主圖 */
.gallery-main {
  width: 100%;
  max-width: 965px;
  height: 625px;         /* 固定高度 */
  object-fit: cover;     /* 居中裁剪 */
  object-position: center;
  margin-bottom: 15px;
}

/* 縮略圖容器：最多兩行，每行 7 張 */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  max-width: 965px;
  margin: 0 auto;
  margin-top: -10px;
  margin-bottom: 100px;
}

/* 縮略圖 */
.gallery-thumb {
  width: 100%;
  height: 80px;         /* 固定高度 */
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

/* hover 效果 */
.gallery-thumb:hover {
  opacity: 1;
}

/* active 效果 */
.gallery-thumb.active {
  opacity: 1;
}

/* Lightbox 樣式 */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}
#lightbox img.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
}
#lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* =========================
   小屏幕响应式
========================= */
@media (max-width: 768px) {
  #meta-text-wrapper {
    flex-direction: column;
  }

  #project-meta {
    flex: none;
    width: 100%;
  }

  #project-first-image img {
  max-width: 965px;
  width: 100%;
  height: 285px;             /* 固定高度 */
  object-fit: cover;         /* 超出部分裁剪 */
  object-position: center;   /* 裁剪时居中 */
  display: block;
  margin: 0 auto 0px auto;
}

#project-meta {
  width: 350px;
  display: grid;
  grid-template-columns: 125px 1fr; /* 左侧固定 85px，右侧自适应 */
  gap: 8px 0;                      /* 行间距 */
  font-size: 14px;
  color: #525252; 
  line-height: 1.1;
  margin-left: 15px;
  margin-top: -5px;
}

#project-meta h2 {
  grid-column: 1 / -1;  /* 标题独占整行 */
  margin-top: 0;
  margin-bottom: 0px;
  font-size: 16px;
  color: #2e2e2e;
}

#project-text {
  font-size: 14px;
  flex: 1;
  color: #333;
  line-height: 1.6;
  white-space: pre-line;
  margin: -20px 15px 35px 15px; /* 左右留白15px，下方间距75px，上方为0 */
}

.project-image {
  max-width: 965px;
  width: 100%;
  display: block;
  margin: 0px auto; /* 居中并留点间隔 */
}

.middle-description {
  max-width: 965px;
  margin: 0px auto; /* 水平居中 + 上下间距 */
  line-height: 1.6;
  font-size: 14px;
  padding: 0 20px;   /* 保证小屏幕也有左右留白 */
  white-space: pre-line; /* 保持换行 */
  margin-bottom: 50px;
  margin-top: 50px;
}

.gallery-main {
  width: 100%;
  max-width: 965px;
  height: 300px;         /* 固定高度 */
  object-fit: cover;     /* 居中裁剪 */
  object-position: center;
  margin-bottom: 15px;
  margin-top: 35px;
}

/* 縮略圖容器：最多兩行，每行 7 張 */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 965px;
  margin: 0 auto;
  margin-top: -15px;
  margin-bottom: 50px;
}

/* 縮略圖 */
.gallery-thumb {
  width: 100%;
  height: 50px;         /* 固定高度 */
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}


}


