/* ==================== 페이지 전환 효과 ==================== */


/* 전환 중 흰색 화면 방지 - 포트폴리오 관련 페이지 제외 */
body:not(.single-portfolio):not(.post-type-archive-portfolio) {
    background-color: #000000 !important;
}

/* 웍스 페이지(포트폴리오 목록) 검은색 배경 강제 적용 */
body.post-type-archive-portfolio {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* 웍스 페이지 헤더 - 검은색 배경 */
body.post-type-archive-portfolio .site-header,
body.post-type-archive-portfolio header {
    background-color: transparent !important;
    background: transparent !important;
}

/* 웍스 페이지 푸터 - 검은색 배경 */
body.post-type-archive-portfolio .site-footer,
body.post-type-archive-portfolio footer {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* 웍스 페이지 전체 컨테이너 */
body.post-type-archive-portfolio #page,
body.post-type-archive-portfolio .site-main,
body.post-type-archive-portfolio .portfolio-container {
    background-color: #000000 !important;
}

/* 웍스 아카이브 페이지 - 전환 오버레이 즉시 숨김 */
body.post-type-archive-portfolio .fade_bg {
    display: none !important;
}

/* 포트폴리오 상세 페이지 - 검은색 배경 테마 */
html body.single-portfolio,
body.single-portfolio {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

/* 포트폴리오 상세 페이지 헤더 - 투명 배경 */
html body.single-portfolio .site-header,
body.single-portfolio .site-header,
body.single-portfolio header {
    background-color: transparent !important;
    background: transparent !important;
}

/* 포트폴리오 상세 페이지 푸터 - 검은색 배경 */
html body.single-portfolio .site-footer,
body.single-portfolio .site-footer,
body.single-portfolio footer {
    background-color: #000000 !important;
    background: #000000 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 포트폴리오 상세 페이지 전체 레이아웃 - 강화 */
html body.single-portfolio #page,
body.single-portfolio #page,
body.single-portfolio .site-main {
    
}

body.single-portfolio .site-main {
    padding: 2rem;
}

/* 포트폴리오 상세 페이지 텍스트 색상 */
body.single-portfolio .portfolio-single,
body.single-portfolio,
body.single-portfolio * {
    color: #ffffff !important;
}

body.single-portfolio .portfolio-single h1,
body.single-portfolio .portfolio-single h2,
body.single-portfolio .portfolio-single h3,
body.single-portfolio h1,
body.single-portfolio h2,
body.single-portfolio h3 {
    color: #ffffff !important;
}

/* 페이지 전환 오버레이 */
.fade_bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    top: 100%;
    left: 0;
    background: #000000;
    pointer-events: none;
}

.fade_bg.on {
    top: 0;
    transition: all 1s ease-in-out;
    pointer-events: all;
}

  /* ==================== 포트폴리오 스타일 ==================== */
/* 포트폴리오 페이지 전체 너비 설정 */
#primary.site-main,
.site,
#page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 포트폴리오 페이지에서만 body와 html도 100% 너비 사용 */
body.page-template-page-portfolio,
html {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #000000 !important;
}

/* 포트폴리오 페이지 배경색 검은색으로 설정 */
.portfolio-container {
    background-color: #000 !important;
}

/* 홈(메인) 페이지 배경색 검은색으로 설정 */
body.home,
body.front-page {
    background-color: #000 !important;
}

/* 홈페이지 전체 화면 배경 덮기 */
body.home::before,
body.front-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: -1;
}

/* Insights(블로그) 페이지 배경색 흰색으로 설정 */
body.blog,
body.archive,
body.single,
body.single-post,
body.category,
body.tag,
body.page-template-page-blog {
    background-color: #fff !important;
}

.footer-copyright {
    margin-top:15px;
    opacity: 0.9;
}

.contact-menu-item {
    display: none;
}

/* Insights 페이지 전체 화면 배경 덮기 */
body.blog::before,
body.archive::before,
body.single::before,
body.single-post::before,
body.category::before,
body.tag::before,
body.page-template-page-blog::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: -1;
}

/* 블로그 페이지에서만 컨테이너 흰색으로 */
body.blog .blog-container,
body.blog .blog-content,
body.blog .blog-sidebar,
body.blog #primary,
body.blog #page,
body.blog .site,
body.single .blog-container,
body.single .blog-content,
body.single .blog-sidebar,
body.single #primary,
body.single #page,
body.single .site,
body.archive .blog-container,
body.archive .blog-content,
body.archive .blog-sidebar,
body.archive #primary,
body.archive #page,
body.archive .site {
    background-color: #fff;
}

/* 포트폴리오 컨테이너의 상위 요소들도 검은색으로 */
.portfolio-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: -1;
}

/* 인사이트 헤더 메뉴는 검은색 */
.insight-header .menu-item a {
    color: #000000 !important;
}

/* 인사이트 헤더 메뉴 호버 */
.insight-header .menu-item a:hover {
    color: #ffffff !important;
    background-color: #000000 !important;
  
}

/* 포트폴리오 페이지 현재 메뉴 아이템은 통합 스타일에서 처리 */

/* 인사이트 헤더 현재 메뉴 아이템 */
.insight-header .menu-item.current-menu-item a,
.insight-header .menu-item.current_page_item a,
.insight-header .menu-item.current-page-item a,
.insight-header .menu-item.current-menu-ancestor a {
    color: #ffffff !important;
    background-color: #000000 !important;
   
}

/* 검은색 헤더 페이지에서 현재 메뉴 아이템 (흰색 배경으로 대비) */
/* Works 페이지, 포트폴리오 개별 페이지, Insights 페이지에서 현재 메뉴 하이라이트 */
/* 인사이트 개별 포스트 페이지(single post)만 제외하고 모든 페이지에서 적용 */
body:not(.single-post) .menu-item.current-menu-item a,
body:not(.single-post) .menu-item.current_page_item a,
body:not(.single-post) .menu-item.current-page-item a,
body:not(.single-post) .menu-item.current-menu-ancestor a,
body:not(.single-post) .current-menu-item a,
body:not(.single-post) .current_page_item a,
body:not(.single-post) .current-page-item a,
body:not(.single-post) .current-menu-ancestor a,
body:not(.single-post) li.current-menu-item a,
body:not(.single-post) li.current_page_item a {
    color: #000 !important;
    background-color: #fff !important;
    border-radius: 25px !important;
    padding: 0.25rem 1rem !important;
}

/* 기본 로고 색상은 검은색 */
.logo,
a.logo,
.header .logo,
.header-inner .logo {
    color: #000000 ;
}

/* ==================== 인사이트 페이지 헤더 스타일 ==================== */

/* 인사이트 헤더 클래스만 흰색 배경 */
.insight-header {
    background-color: #ffffff !important;
    background: #ffffff !important;    
}
.insight-header > .header-inner > .logo {
    color: #000000 !important;
}
/* 인사이트 헤더 로고는 검은색 */
.insight-header .logo,
.insight-header a.logo,
.insight-header .header-inner .logo {
    color: #000000 !important;
}

/* ==================== 검은색 헤더 페이지 스타일 ==================== */

/* 다른 모든 페이지 헤더는 검은색 배경 */
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .header,
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .site-header {
    background-color: #000000 !important;
    background: #000000 !important;
    border-bottom: none;
    box-shadow: none;
}

/* 다른 모든 페이지 로고는 흰색 */
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .logo,
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) a.logo,
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .header .logo,
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .header-inner .logo {
    color: #ffffff !important;
}

/* 다른 모든 페이지 메뉴 버튼은 흰색 텍스트 */
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .menu-item a {
    color: #ffffff !important;
}

/* 다른 모든 페이지 메뉴 버튼 호버는 검은색 배경 */
body:not(.blog):not(.archive):not(.single):not(.single-post):not(.category):not(.tag):not(.page-template-page-blog) .menu-item a:hover {
    color: #000000 !important;
    background-color: #ffffff !important;  
}

.portfolio-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 2rem 30px !important;
    box-sizing: border-box !important;
}

.portfolio-header {
    text-align: left;
    margin-bottom: 3rem;
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.portfolio-main-title {
    position: relative;
    padding: 7rem 0 8rem;
    margin: 0;
    white-space: nowrap;
}

.portfolio-main-title .title-main {
    font-size: 7.7vw;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: inline-block;
}

.portfolio-main-title .title-desc {
    position: absolute;
    top: 50%;
    left: calc(38% + 25px);
    height: 39%;
    transform: translateY(-50%);
    display: flex;
    align-items: end;
    font-size: clamp(16px, 1.11vw, 20px);
    line-height: clamp(22px, 1.52vw, 30px);
    font-weight: 700;
    letter-spacing: 0;
    color: #ffffff;   
}

.portfolio-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 800px;
}

.portfolio-filters {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid #fff;
    background: transparent;
    color: #ffffff;
    border-radius: 85px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Pretendard Variable', Pretendard Variable, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: white;
    background: white;
    color: #000;    
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
    width: 100%;
}

.portfolio-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    position: relative;
    border-radius: 1.33rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;    
}

.portfolio-card:hover {
    
}

.portfolio-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.portfolio-card-disabled {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: default;
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: none;
}

.portfolio-no-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 87, 255, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2vw;
    color: white;
    font-family: 'Pretendard Variable', Pretendard Variable, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* 포트폴리오 호버 효과 - 링크를 방해하지 않는 방식 */
.portfolio-card {
    position: relative;
    transition: transform 0.3s ease;
}

.portfolio-card-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.portfolio-card-link:hover {
    text-decoration: none;
}

/* 포트폴리오 카드 호버 효과 */
.portfolio-card:hover {
    transform: none;
}

/* 포트폴리오 썸네일에 호버 오버레이 효과 */
.portfolio-thumbnail {
    position: relative;
    overflow: hidden;
}

.portfolio-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* 클릭 방해하지 않음 */
}

.portfolio-card:hover .portfolio-thumbnail::after {
    opacity: 1;
}

/* 이미지 확대 효과 */
.portfolio-thumbnail img {
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: scale(1.1);
}

.portfolio-content {
    display: flex;
    flex-direction: column;    
    height: 100%;
    justify-content: flex-start;
}

/* 1. 카테고리 스타일 */
.portfolio-category-tag {
    align-self: flex-start;   
}

.category-label {       
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-block;    
}

/* 2. 프로젝트명 스타일 */
.portfolio-item-title {
    font-size: 2.8vw!important;
    font-weight: 800;
    margin-top:1.2vw;
    margin-bottom:0;
    line-height: 1.2;
    color: white;    
    white-space: pre-line;
    word-break: keep-all;
    word-wrap: break-word;
}

/* 3. 태그 스타일 */
.portfolio-tags {
    font-size: 0.94vw;
    font-weight: 500;        
    margin-top:1vw;  
}

/* 4. 프로젝트 설명 스타일 */
.portfolio-description {
    font-size: 0.85rem;
    line-height: 1.6;    
    margin: 0;
    margin-top: auto;    
    max-height: 4.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-weight: 400;
}

/* 콘텐츠가 적을 때 레이아웃 조정 */
.portfolio-content > *:last-child {
    margin-bottom: 0;
}

/* 빈 요소 처리 */
.portfolio-content > div:empty {
    display: none;
}

.portfolio-no-image {
    padding: 2rem;
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
}

.portfolio-no-image .portfolio-content {
    color: var(--text-color);
}

.no-portfolio-items {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.portfolio-pagination {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-pagination .page-numbers {
    display: inline-block;
    padding: 0.7rem 1rem;
    margin: 0 0.3rem;
    border: 2px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.portfolio-pagination .page-numbers:hover,
.portfolio-pagination .page-numbers.current {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

/* 단일 포트폴리오 페이지 스타일 */
.portfolio-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-single-header {
    margin-bottom: 3rem;
}

.portfolio-breadcrumb {
    margin-bottom: 1rem;
}

.portfolio-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.portfolio-breadcrumb a:hover {
    text-decoration: underline;
}

.portfolio-single-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.portfolio-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.portfolio-tags .portfolio-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.2rem;
    color: #666;
}

.portfolio-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-description {
    font-size: 1.1rem;
    line-height: 1.7;   
    margin-bottom: 2rem;
}

.portfolio-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
}

.portfolio-navigation a {
    text-decoration: none;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.portfolio-navigation a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-container {padding:0 15px;}
    .portfolio-thumbnail::after {display:none!important;}
    .portfolio-container {
        padding: 1rem 15px !important;
    }

    .portfolio-main-title {
        padding: 3rem 0 0;
        margin-bottom: 3rem;
        white-space: normal;
    }

    .portfolio-main-title .title-main {
        font-size: 12vw;
        display: block;
        margin-bottom: 1.5rem;
    }

    .portfolio-main-title .title-desc {
        position: static;
        transform: none;
        display: block;
        font-size: var(--font-size-xs);
        line-height: 1.4;
        height: auto;
    }

    .portfolio-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
    
    .portfolio-overlay {
        padding: 2vw;
    }
    
    .portfolio-item-title {
        font-size: 1.4rem;
        font-weight: 700;       
        white-space: pre-line;
    }
    
    .portfolio-tags {
        font-size: 0.94vw;
        margin-bottom: 0.8rem;
    }
    
    .portfolio-description {
        font-size: 0.78vw;
        line-height: 1.5;
        -webkit-line-clamp: 4;
        max-height: 7rem;
    }
   
    
    .category-label {
        font-size: 0.6rem;                
    }
    
   
    .portfolio-filters {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-navigation {
        grid-template-columns: 1fr;
    }

    /* 헤더 반응형 */
    .header-inner {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-navigation {        
        flex-basis: 100%;
    }
    
    .header-actions {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .project-inquiry-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .zoom_font {
        scale: 0.9;
    }
}

@media (max-width: 480px) {
    .project-inquiry-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .header-actions {
        justify-content: center;
        width: 100%;
    }
}

/* 웍스 페이지(page-portfolio.php) 검은색 배경 강제 적용 */
body.page-template-page-portfolio {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* 웍스 페이지 헤더 - 투명 배경 */
body.page-template-page-portfolio .site-header,
body.page-template-page-portfolio header {
    background-color: transparent !important;
    background: transparent !important;
}

/* 웍스 페이지 푸터 - 검은색 배경, 여백 제거 */
body.page-template-page-portfolio .site-footer,
body.page-template-page-portfolio footer {
    background-color: #000000 !important;
    background: #000000 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 웍스 페이지 전체 컨테이너 */
body.page-template-page-portfolio #page,
body.page-template-page-portfolio .site-main,
body.page-template-page-portfolio .portfolio-container {
    background-color: #000000 !important;
}

/* 웍스 페이지 푸터 위 여백 완전 제거 */
body.page-template-page-portfolio main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 포트폴리오 상세 페이지 - 네비게이션 및 링크 스타일 */
body.single-portfolio a {
    color: #ffffff !important;    
}

body.single-portfolio a:hover {
    color: #cccccc !important;
}

body.single-portfolio .portfolio-breadcrumb a {
    color: #ffffff !important;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

body.single-portfolio .portfolio-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.single-portfolio .portfolio-category,
body.single-portfolio .portfolio-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.2rem;
    display: inline-block;
}

body.single-portfolio .portfolio-navigation a {
    color: #ffffff !important;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

body.single-portfolio .portfolio-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);    
}

body.single-portfolio .nav-label {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
}

body.single-portfolio .nav-title {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 포트폴리오 상세 페이지 이미지 스타일링 */
body.single-portfolio .portfolio-featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* 포트폴리오 상세 페이지 전체 배경 강제 적용 - 더 강력한 선택자 */
body.single-portfolio,
body.single-portfolio * {
    background-color: #000000 !important;
    background: #000000 !important;
}

body.single-portfolio .portfolio-single,
body.single-portfolio .portfolio-single * {
    background-color: #000000 !important;
    background: #000000 !important;
}

body.single-portfolio article,
body.single-portfolio .site-content,
body.single-portfolio .content-area,
body.single-portfolio main {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* 투명 배경이 필요한 요소들 예외 처리 */
body.single-portfolio .site-header,
body.single-portfolio header,
body.single-portfolio .portfolio-breadcrumb a,
body.single-portfolio .portfolio-category,
body.single-portfolio .portfolio-tag,
body.single-portfolio .portfolio-navigation a {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.single-portfolio .site-header,
body.single-portfolio header {
    background: transparent !important;
}

/* 포트폴리오 상세 페이지에서 전환 오버레이 숨김 */
body.single-portfolio .fade_bg {
    display: none !important;
}

