/* ===============================================
   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;
}

/* ===============================
   SPLIT LAYOUT
================================ */

.split-wrap{
  display: flex;
  width: 100vw;

  /* ✅ iOS 주소창 대응 */
  height: 100svh;
  overflow: hidden;
}

/* LEFT : VIDEO / IMAGE */
.split-video{
  flex: 1;
  position: relative;
  background: #fff;

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

  /* ✅ 혹시 100svh 지원 안 되는 브라우저 대비 */
  min-height: 100vh;
}

/* ===============================
   VIDEO
================================ */

.split-video video{
  display: block;
  width: 100%;
  height: 100%;

  /* ✅ 데스크톱은 작품 전체 보이게 */
  object-fit: contain;
  object-position: center;
}

/* ===============================
   FALLBACK IMAGE
================================ */

.split-video .video-fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
  display: block;
}

/* 비디오가 실제로 재생되면 숨김 */
.split-video.is-playing .video-fallback{
  display: none;
}

/* ===============================
   WHEN VIDEO FAILS
================================ */

.split-video.video-failed video{ display: none; }
.split-video.video-failed .video-fallback{ display: block; }


/* ===============================
   RIGHT : TEXT PANEL
================================ */

.split-text {
  flex: 1;
  background: #fff;

  display: flex;
  justify-content: center;
  align-items: center;   /* ⭐ 이게 핵심 */
}

/* 실제 스크롤 되는 텍스트 박스 */
.text-inner {
  width: 100%;
  max-width: 550px;

  max-height: 55vh;      /* ⭐ 화면 중앙에 가장 안정적인 비율 */
  padding: 0 24px;

  overflow-y: auto;
  scrollbar-width: thin;
}

/* ===============================
   TYPOGRAPHY REFINEMENT
================================ */

/* Title */
.art-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.art-title-ko {
  display: block;
  margin-top: 4px;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;

  color: rgba(0,0,0,0.6);
}


/* Meta */
.art-meta {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(0,0,0,0.65);
}
/* Divider under meta */
.art-meta.medium {
  padding-bottom: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}


/* English description */
.desc-en p {
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(0,0,0,0.82);
}

/* Korean text */
.text.kor {
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,0.7);
}


.above-slider-link {
  text-align: left;
  margin: 50px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}


.above-slider-link a {
  display: inline-flex;
  justify-content: flex-start; /* ⭐ 여기 */
  align-items: center;
  gap: 6px;

  color: #000;
  font-size: 10px;
  text-decoration: none;
  opacity: 0.7;
}

/* hover 효과 */
.above-slider-link a:hover {
  color: #da0452;
  opacity: 1;
}

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

@media (max-width: 900px){

  .split-wrap{
    flex-direction: column;

    /* ✅ 스크롤 가능하게 풀기 */
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .split-video{
    width: 100vw;

    /* ✅ 비디오는 화면에 꽉 차게 */
    height: 100svh;
    min-height: 100svh;
    flex: 0 0 auto;
  }

  .split-video video,
  .split-video .video-fallback{
    width: 100%;
    height: 100%;

    /* ✅ 여백 없애기 */
    object-fit: cover;
    object-position: center;
  }

  .split-text{
    flex: 0 0 auto;
    align-items: flex-start;
  }

  .text-inner{
    width: 100%;
    max-width: none;
    padding: 44px 20px 00px;

    max-height: none;     /* 핵심 */
    overflow: visible;    /* 그대로 */
  }

  .above-slider-link{
    margin-top: 60px;
    padding-bottom: 10px;
  }
}

