/* ✅ 모든 페이지 스크롤 무조건 허용 */
html,
body {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden; /* 가로 스크롤만 방지 */
}

/* ✅ 본문 영역도 스크롤 허용 */
#start {
  height: auto !important;
  overflow: visible !important;
  min-height: calc(100vh - 50px);
}

section,
.section {
  overflow: visible !important;
}

/* 데스크톱에서만 SVG 크기 */
@media (min-width: 769px) {
  #start svg,
  #start .description svg {
    width: min(55vw, 560px);
    height: auto;
    max-height: calc(100vh - 50px);
    display: block;
    margin: 0 auto;
  }
}


/* 헤더 영역 전체를 검정으로 */
#header {
  background-color: #000 !important;
}

/* 헤더 네비게이션 글자 색 흰색 */
#header .navbar a,
#header .navbar span {
  color: #fff !important;
}
/* 드롭다운 메뉴 배경 */
.dropmenu ul {
  background-color: #000 !important;
}


.navbar-section.logo {
  display: none !important;
}

/* ✅ 네비게이션 중앙 정렬 유지 */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;  /* 네비게이션 최대 너비 설정 */
    width: 100%;
    display: flex;
    justify-content: center;  /* 중앙 정렬 */
    align-items: center;
    height: 50px !important; /* ✅ 네비게이션 높이 줄이기 */
    z-index: 1000;
    background-color: transparent !important; /* ✅ 배경 투명 설정 */
}

/* ✅ 헤더 높이 조정 */
#header.section {
    height: 50px !important; /* ✅ 기존보다 줄이기 */
    padding: 5px 0 !important; /* ✅ 위아래 패딩 조정 */
    margin-bottom: 10px !important; /* ✅ 아래쪽 여백 줄이기 */
}

.navbar, 
#header.section {
    border-bottom: none !important;  /* ✅ 하단 테두리 제거 */
    box-shadow: none !important;  /* ✅ 그림자 제거 (필요 시) */
}


/* ✅ 메뉴 내부 항목도 중앙 정렬 */
.navbar-section.desktop-menu {
    display: flex;
    justify-content: center !important; /* 중앙 정렬 강제 적용 */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px; /* 메뉴 간 간격 유지 */
    background-color: transparent !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 500; /* 굵게 */
    font-size: 16px;  /* 글자 크기 */
}

.dropmenu ul ul ul {
  display: none !important;
}
/* 2단은 테마 기본 동작(hover/클릭)을 그대로 둠 */


#footer.section.bg-gray {
    background-color: transparent !important; /* ✅ 배경 투명 */
    box-shadow: none !important; /* ✅ 그림자 제거 */
}

#footer {
    display: none !important; /* ✅ 푸터 숨기기 */
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
}

.portfolio-item.landscape {
    flex-direction: column;  /* 가로형 이미지는 세로로 배치 (이미지 위, 글 아래) */
    text-align: center;
}

.portfolio-item.portrait {
    flex-direction: row;  /* 세로형 이미지는 가로로 배치 (이미지 왼쪽, 글 오른쪽) */
    text-align: left;
}

.portfolio-item.portrait img {
    max-width: 50%; /* 세로형 이미지 크기 조절 */
}

.description img:first-of-type {
    display: none !important;
}
.thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.thumbnail-card {
  width: 200px;
  text-align: center;
  transition: transform 0.2s ease;
}

.thumbnail-card img {
  width: 100%;
  aspect-ratio: 4 / 5;   /* 썸네일 틀 높이 고정 */
  object-fit: cover;     /* 틀에 꽉 채우고 넘치는 부분은 크롭 */
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-card:hover {
  transform: scale(1.05);
}

.thumbnail-card a p {
  color: #fff !important;
}

/* 1) 3단계 드롭다운(포트폴리오→Volksmalerei→하위이미지)은 전부 가린다 */
.dropmenu ul ul ul {
  display: none !important;
}

/* 2) 포트폴리오의 2단계만 보이게 (예: Volksmalerei, Drawing, Installationskunst) */
.dropmenu > ul > li > ul {
  display: block !important;
}

/* 3) 프로그램은 1차 서브메뉴 자체를 숨긴다 */
.dropmenu li > a[href="/programs"] + ul {
  display: none !important;
}

.mobile-logo{
  display: none !important;
}

div.clockwork-badge{
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
}

svg {
  width: 50vw;
  height: auto;
}

/* (옵션) cat-path 클래스를 쓰는 path가 있을 때만 의미 있음 */
.cat-path {
  stroke: #fff;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 3s ease forwards;
}

/* ✅ 여기만 수정: st4도 포함 */
.st0,
.st1,
.st2,
.st3,
.st4 {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: drawLine 4s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* 홈에서만 깨진 home.png만 숨김 */
#start img[src$="/user/pages/01.home/home.png"],
#start img[src$="01.home/home.png"] {
  display: none !important;
}

/* 상세 페이지 본문 글씨 흰색 */
#start .content,
#start .content p,
#start .content li,
#start .content h1,
#start .content h2,
#start .content h3 {
  color: #dddddd !important;
}
#start .description,
#start .description p,
#start .description li {
  color: #dddddd !important;
} 

.portfolio-item.no-image {
  justify-content: center;
  align-items: center;
}


/* * * * 모바일 * * * */

/* ✅ 모바일에서는 사진 아래에 글(세로 배치)로 */
@media (max-width: 768px) {
  .portfolio-item,
  .portfolio-item.portrait {
    flex-direction: column !important;
    text-align: center !important;
  }

  .portfolio-item.portrait img {
    max-width: 100% !important;   /* 모바일에서는 이미지가 꽉 차게 */
  }

  /* 텍스트 블록이 너무 좁아지지 않게 */
  .portfolio-item .description {
    width: 100% !important;
  }
}

/* ✅ 모바일에서 홈 SVG를 화면 정중앙에 배치 */
@media (max-width: 768px) {
  #start {
    min-height: calc(100vh - 50px);
    display: flex;
    justify-content: center; /* 세로 중앙 */
    align-items: center;     /* 가로 중앙 */
  }

  #start svg {
    width: 100vw;          /* ⬅️ 여기 숫자 키우기 */
    max-width: 480px;    /* ⬅️ 너무 커지지 않게 안전장치 */
    height: auto;
    margin: 0 !important;
}
}


/* SVG 위 텍스트 */
.tiger-wrap{
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.tiger-html-title{
  white-space: nowrap;  /* 단락바꿈없음 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 90px;
  letter-spacing: 3px;
  word-spacing: 290px; 
  pointer-events: none;
}

/* SVG 위 텍스트 - 모바일 */
@media (max-width:768px){
  .tiger-html-title{ 
    font-size: 35px;
    word-spacing: 115px; 
  }
 
}

