/* ───────────────────────────────────────────── */
/* 1) TOP VISUAL IMAGE */
/* ───────────────────────────────────────────── */
.project__front img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main content inner width */
.project__inner {
  width: 65%;
  margin: 0 auto;
}


/* ───────────────────────────────────────────── */
/* 2) MAIN SECTION LAYOUT */
/* ───────────────────────────────────────────── */
.project-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 40px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}


/* ───────────────────────────────────────────── */
/* 3) TITLE + SUMMARY TEXT */
/* ───────────────────────────────────────────── */
.project-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Summary (읽기 전 보이는 문단) */
.project-section .project-header > p {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.6;
}


/* ───────────────────────────────────────────── */
/* 4) READ MORE (숨김 본문) */
/* ───────────────────────────────────────────── */
.hidden {
  display: none;
}

/* 펼쳐지는 본문 */
#moreText {
  margin-top: -4px;
}

#moreText p {
  font-size: 18px;
  color: #222;
  line-height: 1.65;
  margin-bottom: 10px;
}

#moreText p:first-child {
  margin-top: 0;
}

/* Read more button */
.read-more-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  color: #222;
}

.read-more-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ───────────────────────────────────────────── */
/* 5) PROJECT META INFO TABLE */
/* ───────────────────────────────────────────── */
.project-meta {
  margin-top: 36px;
  border-top: 1px solid #000;
  font-size: 15px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #000;
  padding: 8px 0;
}

.meta-label {
  width: 140px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-value {
  flex: 1;
}

.meta-value a {
  text-decoration: underline;
}


/* ───────────────────────────────────────────── */
/* 6) IMAGE TYPES */
/* ───────────────────────────────────────────── */
/* Wide full-width style */
.project-image-wide {
  width: 60%;
  max-width: 1400px;
  margin: 32px auto;
}
.project-image-wide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Right aligned smaller image */
.project-image-right {
  width: 60%;
  max-width: 1400px;
  margin: 32px auto;
  text-align: right;
}
.project-image-right img {
  width: 55%;
  height: auto;
  display: block;
  margin-left: auto;
}

/* Left aligned smaller image */
.project-image-left {
  width: 60%;
  max-width: 1400px;
  margin: 32px auto;
  text-align: left;
}
.project-image-left img {
  width: 55%;
  height: auto;
  display: block;
  margin-right: auto;
}


/* ───────────────────────────────────────────── */
/* 7) GALLERY (2 Images per row) */
/* ───────────────────────────────────────────── */
.project-gallery {
  width: 60%;
  max-width: 1400px;
  margin: 32px auto;   /* ← 위아래 32px로 project-image-wide와 통일 */
}

.project-gallery-row {
  display: flex;
  gap: 14px;
  margin-bottom: 0;    /* ← 이미지 묶음과 크레딧 사이 여백을 없애고, 크레딧에서만 제어 */
}

.project-photo {
  flex: 1;
  margin: 0;
}

.project-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ───────────────────────────────────────────── */
/* 8) COPYRIGHT */
/* ───────────────────────────────────────────── */
.work-credit {
  font-size: 10px;
  text-align: right;
  margin-top: 6px;      /* 이미지와 크레딧 사이 간격 */
  margin-bottom: 0;     /* 아래쪽 여백은 제거 (블록 간 간격은 부모 margin으로 관리) */
  opacity: 0.7;
  letter-spacing: 0.02em;
}


/* ───────────────────────────────────────────── */
/* 9) MOBILE RESPONSIVE */
/* ───────────────────────────────────────────── */
@media (max-width: 768px) {

  .project-section {
    padding: 40px 20px;
  }

  .project-section .project-header > p,
  #moreText p {
    font-size: 15px;
    line-height: 1.7;
  }

  .project__inner,
  .project-image-wide,
  .project-image-left,
  .project-image-right,
  .project-gallery {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;   /* 좌우 여백(원하면 0으로 줄일 수 있음) */
  }

  .project-gallery-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  /* 마지막 줄은 여백 0 유지 */
  .project-gallery-row:last-child {
    margin-bottom: 0;
  }

  .project-gallery-row .project-photo img {
    width: 100% !important;
  }

  .meta-row {
    flex-direction: column;
  }

  .meta-label {
    width: 100%;
    margin-bottom: 2px;
  }
}