.project-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
  }

  .project-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .project-detail h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .project-detail p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .project-detail img,
  .project-detail video {
    width: 100%;
    border-radius: 6px;
    margin: auto;
    margin-bottom: 30px;
    vertical-align: top;
  }

  .back {
      position: fixed;
    display: inline-block;
    margin-left: 50px;
    margin-top: 60px;
    font-size: 15px;
    color: black;
    text-decoration: none;
    border: 1px solid black;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.2s;
  }

  .back:hover {
    background: black;
    color: white;
  }

  .vimeo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* 세로형 3:4 비율을 강제로 맞춰줍니다 */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 30px;
  }

.vimeo-wrapper iframe {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
border: 5;
border-radius: 6px;
}

/* --- 비디오 가로 배치 레이아웃 --- */
.video-row {
  display: flex;
  justify-content: center;
  margin: 10px auto; /* 위아래 여백 */
  width: 90%;
}

.video-row .vimeo-wrapper {
  flex: 1; /* 두 비디오가 동일한 비율로 공간을 나누어 가집니다 */
}


/* 📱 모바일 화면에서는 다시 위아래로 자연스럽게 쌓이게 만들기 */
@media (max-width: 768px) {
  .video-row {
    flex-direction: column; /* 가로(row)에서 세로(column)로 변경 */
    gap: 30px;
  }
}
/* 기본 PC용 스타일 */

/* 모바일 화면용 스타일 (최대 768px) */
@media (max-width: 768px) {
/* 예: 메뉴 작게, 글자 줄이기, 레이아웃 쌓기 */
ul {
  flex-direction: column;
  align-items: flex-end;
  margin-top: 10px;
}
#logo img,
.site-logo {
  display: block;
  width: 40vw;         /* or a fixed px like 150px */
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;     /* 적절히 조정 */
  margin-bottom: 10px;
}

#header {
  padding-top: 20px;
  padding-bottom: 20px;
}
.menu a {
  padding: 6px 10px;
  font-size: 14px;
}

img {
  margin-left: 10px;
  margin-top: 10px;
  max-width: 90%;
}
.video-row {
  max-width: 90%;
}

.project-section {
  height: 70vh;
  background-position: center;
}

.overlay h1 {
  margin-top: 20px;
  font-size: 24px;
}

.overlay p {
  font-size: 14px;
}

.project-detail {
  padding: 20px 10px;
  padding-top: 110px;
  text-align: center;
}

.project-detail p {
  text-align: center;
}

.project-detail img {
  display: block;
  margin: 20px auto; 
  max-width: 90%;
}


.back {
  position: fixed; /* 기존 relative나 fixed 대신 absolute를 사용해 위치를 고정합니다 */
  display: inline-block;
  top: 80px; /* 화면 맨 위에서부터 100px 아래로 내립니다 (로고 바로 밑) */
  left: 20px; /* 화면 왼쪽에서 20px 살짝 띄워줍니다 */
  margin: 0; /* 불필요한 마진(여백)은 싹 지워줍니다 */
  z-index: 100; /* 다른 요소에 가려지지 않고 잘 눌리도록 최상단 배치 */
}
}
