/* ===============================================
   FIX PUBLICPIXELS DEFAULT LAYOUT EFFECTS
=============================================== */

body[data-page="log"] .pp-main::before,
body[data-page="log"] .art-main::before {
  display: none !important;
}

/* ===============================================
   GLOBAL PAGE BODY
=============================================== */
body {
  margin: 0;
  font-family: "Inter", "Pretendard", system-ui, -apple-system,
               "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: #fff;
  color: #111;
}

/* ===============================
   HEADER (전시 페이지 모드)
   =============================== */

body[data-page="log"] header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  color: rgb(241, 238, 255) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-top: 10px !important;
  z-index: 3000;
}

body[data-page="log"] header .logo-brand,
body[data-page="log"] header .logo-roman,
body[data-page="log"] header .logo-korean {
  color: rgba(234, 234, 236, 0.95) !important;
}

/* 검색, 카트 아이콘 숨기기 */
body[data-page="log"] header .search-icon,
body[data-page="log"] header .shop-toggle {
  display: none !important;
}

/* 스크롤에 따라 숨길 때 쓸 클래스 */
header,
.pp-header {
  transition: opacity 0.35s ease;
}

.header-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 메뉴 텍스트 */
.main-nav a{
  color: rgba(234, 234, 236, 0.95);
}

/* | 구분선 */
.main-nav a::before{
  background: rgba(234, 234, 236, 0.95);
}

/* ===============================
   LIST TOGGLE (목록으로 돌아가기)
   =============================== */

.list-toggle {
  position: fixed;
  top: 12px;
  right: 24px;
  width: 28px;
  height: 28px;
  z-index: 3500;
  cursor: pointer;
  color:  rgba(234, 234, 236, 0.95);
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.list-toggle:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.ic-list {
  width: 24px;
  height: 24px;
}

/* 헤더 숨길 때 같이 사라지도록 */
.list-toggle.header-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===============================
   HEADER SLIDE ANIMATION
   =============================== */

/* 기본 상태: 보임 + 제자리 */
body[data-page="log"] header {
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.4s ease;
}

/* 숨김 상태: 살짝 위로 올려서 사라지는 느낌 */
header.header-hidden {
  opacity: 0;
  transform: translateY(-28px);
  pointer-events: none;
}

/* 리스트 버튼도 같이 위로 올라가게 */
.list-toggle.header-hidden {
  opacity: 0;
  transform: translateY(-28px);
}


/* ===============================================
   ART WRAP
=============================================== */
.art-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 120px;
}

/* ===============================================
   VIDEO
=============================================== */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===============================================
   TITLE + META
=============================================== */
.art-head {
  margin-top: 10px;
  margin-bottom: 0px;
  margin-left: 10px;
  margin-right: 10px;
}

.art-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.art-meta {
  font-size: 13px;
  color: #000000;
  line-height: 1.6;
}

.art-meta.medium {
  padding-bottom: 8px;   /* ⭐ 이 값이 선 위치를 결정 */
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}



/* SECTIONS */
.art-section {
  margin-top: 0px;
  margin-left: 10px;
  margin-right: 10px;
}

.art-section h2 {
  font-weight: 600;
  margin: 0 0 0px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

.art-section p {
  line-height: 1.7;
  margin: 0 0px 52px;
  font-size: 14px;

}


.art-section p.text.kor {
  line-height: 1.85;    /* ⭐ 한글 가독성 */
  font-size: 13px;      /* 살짝 작게 */
  letter-spacing: -0.01em;
}



/* ============================
   3D MODEL VIEWER STYLE (FIXED)
============================ */

.model-viewer-wrap {
  width: 80%;
  height: 500px;
  margin:00px auto 00px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:transparent;
  border: 0px solid #eee;
  border-radius: 0px;
  overflow: hidden;
}

/* ⭐ 여기만 만지면 됨 */
.model-viewer-wrap model-viewer {
  width: 100%;   /* ← 좌우 줄이고 싶으면 60~70% */
  height: 100%;
  display: block;
}


/* model viewer 자체 위 여백 */
model-viewer {
  display: block;
  margin: 00px auto 20px;
}


/* =======================================================
   ABOVE SLIDER LINK
   ======================================================= */
/* 공통 박스 스타일 */
.above-slider-link1 {
  text-align: center;
  margin: 60px auto 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.above-slider-link2 {
  text-align: center;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 공통 링크 스타일 — 최중요! */
.above-slider-link1 a,
.above-slider-link2 a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #000000;
  font-size: 10px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

/* hover 효과 */
.above-slider-link1 a:hover,
.above-slider-link2 a:hover {
  color: #320bc0;
  opacity: 1;
}

/* 아이콘 */
.ic-arrow,
.ic-insta {
  width: 11px;
  height: 11px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


/* ===============================================
   STILLS SLIDER
=============================================== */

.stills-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

/* 이미지 프레임: 너비 기준을 70vw로 통일 */
.still-frame {
  width: 70vw;
  max-width: 900px;
  height: auto;
  max-height: 50vh;         /* 세로 제한 추가 → 세로 이미지 과도한 길이 방지 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;         /* contain 효과를 안정적으로 유지 */
  margin: 0 auto;
  cursor: zoom-in;
}

/* 실제 이미지 */
.still-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;      /* 세로/가로 이미지 안정적으로 표시 */
  max-height: 60vh;         /* 세로 최대 높이 동일 적용 */
  border-radius: 0px;
  border: 0px solid #e4e4e4;
  transition: transform 0.3s ease;
}

/* SLIDER CONTROLS */
.slider-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: #777;
}

.slider-btn {
  cursor: pointer;
  padding: 4px 10px;
  font-size: 18px;
  border-radius: 0px;
  transition: opacity 0.2s ease;
  user-select: none;
}


.page-indicator {
  font-size: 13px;
  letter-spacing: 0.05em;
}


/* ===============================================
   FULLSCREEN POPUP
=============================================== */
body.popup-open header,
body.popup-open .pp-header,
body.popup-open .list-toggle{
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-40px) !important;
}

.popup{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 5000;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popup.show{
  opacity: 1;
  pointer-events: auto;
}

/* 이미지가 항상 화살표 안쪽 안전영역에만 존재하도록 패딩 */
.popup{
  padding: 88px 110px 88px;
  box-sizing: border-box;
}

/* 실제 이미지 */
.popup img{
  width: 100%;
  height: auto;
  max-width: calc(100vw - 220px);
  max-height: calc(100vh - 176px);
  object-fit: contain;
  border-radius: 0px;
  display: block;
  pointer-events: auto;
}

/* 화살표는 항상 화면 좌우 가운데 고정 */
.popup-arrow{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  opacity: 0.65;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  z-index: 6000;
  pointer-events: auto;
}

.popup-arrow.left{ left: 18px; }
.popup-arrow.right{ right: 18px; }

.popup-arrow:hover{ opacity: 1; }

/* 닫기 버튼도 항상 고정 */
.popup-close{
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 6000;
  opacity: 0.7;
  pointer-events: auto;
}

.popup-close:hover{ opacity: 1; }


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


    /* 텍스트와 3D 사이 간격 줄이기 */
  .art-section p {
    margin-bottom: 32px;   /* 기존 72px → 32px */
  }

  /* 3D 모델 위 여백 줄이기 */
  .model-viewer-wrap {
    margin-top: 12px;      /* 거의 바로 붙게 */
    height: 360px;         /* 모바일에서 높이도 줄이는 게 좋아 */
  }


  .above-slider-link2 {
    margin: 0 auto 20px;
  }
  
  /* 슬라이더 전체 래퍼 중앙 정렬 */
  .stills-slider {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .still-frame {
      width: 100%;
      max-width: none;
      box-sizing: border-box;   /* ⭐⭐⭐ 핵심 */
      max-height: 55vh;
      margin: 0 auto;
    }

    .still-frame img {
      width: 100%;
      height: auto;
      max-height: 55vh;
      object-fit: contain;
    }

  /* 컨트롤 */
  .slider-controls {
    margin-top: 8px;
    gap: 14px;
    justify-content: center;
  }

  .slider-btn {
    font-size: 16px;
  }

  .page-indicator {
    font-size: 12px;
  }

}


/* 모바일에서도 화살표를 아래로 내리지 않고 고정 유지 */
@media (max-width: 768px){
  .popup{
    padding: 84px 74px 84px;
  }

  .popup img{
    max-width: calc(100vw - 148px);
    max-height: calc(100vh - 168px);
  }

  .popup-arrow{
    font-size: 24px;
    padding: 12px 14px;
  }

  .popup-close{
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 40px;
  }
}



#ambient-moths {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6; /* header보다 낮고 콘텐츠보단 위 */
}
