/* 페이지 범위 한정 */
:root{
  --ink:#111;
  --muted:#666;
}

*{ box-sizing:border-box; }

/* 1) 전체 기본 크기 키우기 */
html { font-size: 18px; }   /* 브라우저 기본 16px → 18px */

/* 2) 상단 여백 유지 + 전체 섹션은 그대로 */
body {
  margin: 0;
  padding-top: 100px; /* 80 → 120으로 조금 더 아래로 */
  font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
}

/* 메인 레이아웃 섹션 */
.work-detail {
  padding: 24px 16px 64px;
  min-height: 100vh;              /* 화면 전체 높이 기준 */
  display: flex;
  align-items: flex-start;        /* 세로 상단에서 시작 */
  justify-content: center;
}


/* 3) 내부 그리드: 우측(이미지) 더 넓게 + 사이 여백 더 크게 */
.work-detail__inner {
  max-width: 1400px;                /* 1200 → 1400 */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;   /* 1fr 1.8fr도 가능, 더 크게 보이게 2fr */
  gap: 96px;                        /* 72 → 96 */
  align-items: start;
}



/* 좌측 정보 패널 */
.work-info__back{
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:36px; border-radius:10px;
  background:#f2f2f2; color:#333; text-decoration:none;
  font-size:18px; margin-bottom:16px;
   margin-top: -40px;
}
.work-info__back:hover{ background:#e9e9e9; }

.work-info__title{
  font-size:28px;
  font-weight:800;
  margin:4px 0 4px;
}

.work-info__subtitle{
  font-size:15px;
  color:var(--muted);
  margin:0 0 40px; /* 기존 16px → 28px (subtitle과 meta 사이 간격 증가) */
}

.work-meta{
  display:grid;
  gap:10px;
  margin:18px 0 250px; /* 기존 28px → 40px (meta와 다음 요소 사이 간격 증가) */
}

.work-meta dt{
  font-size:12px;
  color:#8d8d8d;
  letter-spacing:.2px;
}

.work-meta dd{
  margin:2px 0 0;
  font-weight:600;
}

.work-meta > div{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:14px;
}

.work-info__h{
  font-size:12px;
  color:#9a9a9a;
  letter-spacing:.3px;
  margin:20px 0 8px;
}

.work-info__keywords{
  margin:0 0 16px;
  font-weight:600;
}



/* 오버뷰는 아래로 조금 더 */
.work-info__overview {
  margin: 20px 0 0;   /* 60 → 80 */
  line-height: 1.85;
  font-size: 1rem;
  color: #333;
}

/* 우측 비주얼: 단순 이미지 전환 */
.work-visual {
  width: 100%;
  margin-top: -40px;
}

/* 5) 비주얼 박스(이미지) 존재감 키우기 */
.visual-box {
  position: relative;
  width: 120%;                     /* 100% → 120%로 확장 */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.visual-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.visual-box .img--default { opacity: 1; }
.visual-box .img--hover { opacity: 0; }
.visual-box:hover .img--default { opacity: 0; }
.visual-box:hover .img--hover { opacity: 1; }

/* 6) 썸네일 4개 스트립: 비주얼 박스 크기에 맞춰 확장 */
.scene-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 120%;                      /* ✅ visual-box와 동일하게 120% */
}

.scene-strip img {
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.scene-strip img:hover {
  transform: translateY(-2px);
  filter: grayscale(0%);
}


/* 7) 반응형: 작은 화면에서 무리되지 않게 축소 */
@media (max-width: 1024px){
  html { font-size: 16px; }           /* 전체 축소 */
  .work-detail__inner{
    grid-template-columns: 1fr;
    gap: 48px;                        /* 28 → 48 (단일컬럼이라 여유) */
  }
  .work-info__title { font-size: 1.6rem; }
}
@media (max-width: 560px){
  .scene-strip { grid-template-columns: repeat(2, 1fr); }
}
