/* ====================================================
   i.LAB MEDIA — Portfolio Page CSS
   ==================================================== */

/* HERO */
.pt-hero{
  padding:160px var(--pad) 72px;
  background:var(--bg);
}
.pt-hero .sec-label{margin-bottom:20px;display:block}
.pt-hero h1{
  font-family:var(--en);
  font-size:clamp(44px,7.5vw,100px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.03em;
  color:#fff;
}
.pt-hero h1 em{
  font-style:normal;
  background:linear-gradient(120deg,var(--purple2),var(--mint));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.pt-hero-sub{
  font-family:var(--en);
  font-size:clamp(13px,1.3vw,16px);
  color:rgba(255,255,255,0.45);
  letter-spacing:.05em;
  line-height:2;
  margin-top:28px;
  max-width:100%;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:0 4px;
}
.sub-item{
  color:#2dd4bf;
  font-weight:500;
  white-space:nowrap;
  letter-spacing:.04em;
}
.sub-dot{
  color:rgba(45,212,191,0.3);
  font-size:1.1em;
  padding:0 8px;
  font-weight:300;
}

/* ─── WORKS GRID ─── */
.wk-wrap{
  background:var(--bg);
  padding:56px 0 100px;
}
/* 아이뮤지엄 full 카드 — 그리드와 동일한 너비로 중앙정렬 */
.wk-full{
  max-width:1200px;
  margin:0 auto 3px;
  width:100%;
  display:block;
}
.wk-grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:3px;
}

/* CARD */
.wk-card{
  position:relative;
  cursor:pointer;
  overflow:hidden;
  background:#111;
}
.wk-card:hover .wk-thumb img{
  transform:scale(1.05);
  filter:brightness(.85);
}
.wk-card:hover .wk-play{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}
.wk-card:hover .wk-ov{
  opacity:1;
}

/* 썸네일 */
.wk-thumb{
  position:relative;
  overflow:hidden;
}
.wk-full .wk-thumb{height:420px;}
.wk-card:not(.wk-full) .wk-thumb{aspect-ratio:16/9;}

.wk-thumb img{
  width:100%;height:100%;
  object-fit:cover;
  filter:brightness(.65);
  transition:transform .6s cubic-bezier(.25,.46,.45,.94), filter .4s;
  display:block;
}
/* i.MUSEUM full-width — 가운데 크롭 */
.wk-full .wk-thumb img{
  object-fit:cover;
  object-position:center center;
}

/* 재생 버튼 */
.wk-play{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%) scale(.85);
  width:72px;height:72px;
  background:rgba(255,255,255,.12);
  border:2px solid rgba(255,255,255,.5);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  opacity:0;
  transition:opacity .3s, transform .3s;
  backdrop-filter:blur(4px);
}
.wk-full .wk-play{
  width:96px;height:96px;
}
.wk-full .wk-play svg{width:52px;height:52px;}

/* 번호 오버레이 */
.wk-ov{
  position:absolute;
  top:16px;left:20px;
  opacity:0;
  transition:opacity .3s;
}
.wk-num{
  font-family:var(--en);
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  color:rgba(255,255,255,.5);
  text-transform:uppercase;
}

/* 카드 하단 타이틀 */
.wk-info{
  padding:16px 20px 18px;
  background:var(--bg2);
  border-top:1px solid var(--line);
}
.wk-info h3{
  font-family:var(--ko);
  font-size:clamp(14px,1.4vw,17px);
  font-weight:700;
  color:#fff;
  margin:0;
  letter-spacing:-.01em;
}

/* ─── YOUTUBE MODAL ─── */
.yt-modal{
  display:none;
  position:fixed;inset:0;
  z-index:9999;
  align-items:center;
  justify-content:center;
}
.yt-modal.open{display:flex;}

.yt-modal-bg{
  position:absolute;inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(6px);
  cursor:pointer;
}
.yt-modal-box{
  position:relative;
  width:min(900px, 92vw);
  z-index:1;
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.7);
  background:#000;
}
.yt-close{
  position:absolute;
  top:-44px;right:0;
  width:36px;height:36px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  cursor:pointer;
  transition:background .2s;
  z-index:2;
}
.yt-close:hover{background:rgba(255,255,255,.25);}
.yt-frame-wrap{
  position:relative;
  padding-bottom:56.25%;
  height:0;
}
.yt-frame-wrap iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
}

/* CTA */
.pt-cta{
  background:var(--bg2);
  border-top:1px solid var(--line);
  padding:100px var(--pad);
  text-align:center;
}
.pt-cta h2{
  font-family:var(--ko);
  font-size:clamp(26px,4vw,48px);
  font-weight:700;letter-spacing:-.02em;
  color:#fff;margin-bottom:36px;
}

/* Responsive */
@media(max-width:600px){
  .pt-hero{padding:140px var(--pad) 56px}

  /* 서브텍스트 줄바꿈 허용 */
  .pt-hero-sub{
    flex-wrap:wrap;
    font-size:12px;
  }
  .sub-item{white-space:normal;}

  /* 그리드 1열 */
  .wk-wrap{padding:40px 0 60px}
  .wk-grid{grid-template-columns:1fr;gap:2px}

  /* i.MUSEUM — 좌우여백 제거, 청계소울오션과 동일하게 */
  .wk-full{
    max-width:100%;
    margin:0 0 2px 0;
    width:100%;
  }
  .wk-full .wk-thumb{
    height:auto;
    aspect-ratio:16/9;
  }
  .wk-full .wk-thumb img{
    content:url('https://www.genspark.ai/api/files/s/yQlkTDXQ');
  }
  .wk-thumb img{
    filter:brightness(1) saturate(1);
  }

  .yt-modal-box{width:96vw}
}
