/* Vertical Portfolio Frontend Styles */

/* Font Awesome 아이콘 기본 스타일 강화 */
.fa, .fas, .far, .fal, .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 6 Brands' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    vertical-align: baseline !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

/* VP 플러그인의 모든 Font Awesome 아이콘 대상 추가 보호 */
.vp-portfolio-wrapper .fa,
.vp-portfolio-wrapper .fas,
.vp-portfolio-wrapper .far,
.vp-portfolio-wrapper .fal,
.vp-portfolio-wrapper .fab,
.vp-modal-overlay .fa,
.vp-modal-overlay .fas,
.vp-modal-overlay .far,
.vp-modal-overlay .fal,
.vp-modal-overlay .fab,
.vp-mobile-filter-menu .fa,
.vp-mobile-filter-menu .fas,
.vp-mobile-filter-menu .far,
.vp-mobile-filter-menu .fal,
.vp-mobile-filter-menu .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 6 Brands' !important;
    speak: none !important;
    font-style: normal !important;
    font-weight: 900 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    text-rendering: auto !important;
    writing-mode: lr-tb !important;
    vertical-align: baseline !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    overflow: visible !important;
    clip: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
}

/* 기본 레이아웃 */
.vp-portfolio-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.vp-portfolio-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .vp-portfolio-container {
        grid-template-columns: 1fr 300px;
    }
    
    .vp-portfolio-items {
        order: 1;
    }
    
    .vp-sidebar {
        order: 2;
    }
}

/* 모바일 헤더 */
.vp-mobile-header {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

@media (min-width: 768px) {
    .vp-mobile-header {
        display: none;
    }
}

/* 검색 입력 */
.vp-search-wrapper {
    position: relative !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.vp-search-input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    text-align: left !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-sizing: border-box !important;
}

.vp-search-input:focus {
    border-color: #0073aa !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2) !important;
}

.vp-search-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: normal !important;
}



/* 필터 토글 버튼 (모바일) */
.vp-filter-toggle-mobile {
    position: relative !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    color: #333 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: top !important;
    transition: all 0.2s ease !important;
}

.vp-filter-toggle-mobile:hover {
    background: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #333 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.vp-filter-toggle-mobile:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
}

.vp-filter-toggle-mobile i {
    width: 20px !important;
    height: 20px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

.vp-filter-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    /* background는 동적으로 설정됨 */
    color: #fff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

/* 사이드바 */
.vp-sidebar {
    display: none;
}

@media (min-width: 768px) {
    .vp-sidebar {
        display: block;
    }
    
    .vp-sidebar-sticky {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

.vp-sidebar-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vp-filter-reset {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 8px 12px !important;
    /* background는 동적으로 설정됨 */
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    vertical-align: top !important;
}

.vp-filter-reset:hover {
    /* hover background는 동적으로 설정됨 */
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

.vp-filter-reset:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

.vp-filter-reset i {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

/* 필터 섹션 */
.vp-filter-section {
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    background: none !important;
    box-shadow: none !important;
}

.vp-filter-section:last-child {
    border-bottom: none !important;
}

.vp-filter-title {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.vp-filter-toggle {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: left !important;
    color: inherit !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.vp-filter-toggle:hover {
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

.vp-filter-toggle:focus {
    outline: 1px dotted #ccc !important;
    outline-offset: 2px !important;
}

.vp-chevron {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

.vp-filter-toggle[aria-expanded="false"] .vp-chevron {
    transform: rotate(-90deg) !important;
}

.vp-filter-content {
    padding-top: 10px !important;
    overflow: hidden !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.vp-filter-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    border: none !important;
}

.vp-filter-button {
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    color: #333 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.vp-filter-button:hover {
    background: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #333 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.vp-filter-button:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
}

.vp-filter-button.active {
    /* background와 border-color는 동적으로 설정됨 */
    color: #fff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* 포트폴리오 카운트 */
.vp-portfolio-count {
    text-align: right !important;
    margin-bottom: 15px !important;
    font-size: 14px !important;
    color: #666 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
}

.vp-count-number {
    font-weight: bold !important;
    margin-right: 5px !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* 포트폴리오 그리드 */
.vp-masonry-grid {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.vp-masonry-column {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    list-style: none !important;
}

/* 포트폴리오 아이템 */
.vp-portfolio-item {
    margin-bottom: 30px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative !important;
    list-style: none !important;
}

.vp-portfolio-link {
    display: block !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    position: relative !important;
}

.vp-portfolio-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
    color: inherit !important;
    border-color: #e0e0e0 !important;
}

.vp-portfolio-link:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
}

.vp-portfolio-images {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    list-style: none !important;
}

.vp-portfolio-images img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

/* 포트폴리오 제목 */
.vp-portfolio-title {
    margin: 0 !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* 로딩 스피너 */
.vp-loading {
    text-align: center !important;
    padding: 40px !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.vp-spinner {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #f3f3f3 !important;
    /* border-top-color는 동적으로 설정됨 */
    border-radius: 50% !important;
    animation: vp-spin 1s linear infinite !important;
    margin: 0 auto !important;
    background: none !important;
    box-shadow: none !important;
}

@keyframes vp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 모달 */
.vp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vp-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.vp-modal-content {
    background: #fff;
    border-radius: 8px;
    max-height: 96vh;
    width: 95%;
    max-width: 1280px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.vp-modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.vp-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.vp-modal-body {
    overflow-y: auto;
}

.vp-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 모달 메인 콘텐츠 */
.vp-modal-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vp-modal-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-modal-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 이미지 그룹 */
.vp-image-group {
    position: relative;
    margin-bottom: 30px;
}

.vp-image-group-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}

.vp-image-group-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-modal-description {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    line-height: 1.6;
}

/* 모달 콘텐츠 텍스트 스타일 고정 */
.vp-modal-content h1,
.vp-modal-content h2,
.vp-modal-content h3,
.vp-modal-content h4,
.vp-modal-content h5,
.vp-modal-content h6 {
    font-family: inherit !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    margin: 1em 0 0.5em 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #333 !important;
}

.vp-modal-content h1 {
    font-size: 1.8em !important;
}

.vp-modal-content h2 {
    font-size: 1.6em !important;
}

.vp-modal-content h3 {
    font-size: 1.4em !important;
}

.vp-modal-content h4 {
    font-size: 1.2em !important;
}

.vp-modal-content h5 {
    font-size: 1.1em !important;
}

.vp-modal-content h6 {
    font-size: 1em !important;
}

.vp-modal-content p {
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 0 1em 0 !important;
    padding: 0 !important;
    color: #333 !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
}

.vp-modal-content ul,
.vp-modal-content ol {
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 0 1em 20px !important;
    padding: 0 !important;
    color: #333 !important;
    list-style-position: outside !important;
}

.vp-modal-content ul {
    list-style-type: disc !important;
}

.vp-modal-content ol {
    list-style-type: decimal !important;
}

.vp-modal-content li {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 0.5em 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
}

.vp-modal-content a {
    color: #0073aa !important;
    text-decoration: underline !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vp-modal-content a:hover {
    color: #005a87 !important;
    text-decoration: underline !important;
}

.vp-modal-content strong,
.vp-modal-content b {
    font-weight: bold !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vp-modal-content em,
.vp-modal-content i {
    font-style: italic !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vp-modal-content blockquote {
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 1em 0 !important;
    padding: 10px 20px !important;
    border-left: 4px solid #ddd !important;
    background: #f9f9f9 !important;
    color: #666 !important;
    font-style: italic !important;
}

.vp-modal-content code {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 13px !important;
    background: #f4f4f4 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    color: #d63384 !important;
    border: 1px solid #e9ecef !important;
    margin: 0 !important;
}

.vp-modal-content pre {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 13px !important;
    background: #f4f4f4 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    color: #333 !important;
    border: 1px solid #e9ecef !important;
    margin: 1em 0 !important;
    overflow-x: auto !important;
    white-space: pre !important;
    line-height: 1.4 !important;
}

.vp-modal-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1em 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    background: none !important;
}

.vp-modal-content table th,
.vp-modal-content table td {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: #333 !important;
    background: none !important;
    line-height: 1.4 !important;
}

.vp-modal-content table th {
    background: #f8f9fa !important;
    font-weight: bold !important;
}

.vp-modal-content hr {
    border: none !important;
    border-top: 1px solid #ddd !important;
    margin: 2em 0 !important;
    padding: 0 !important;
    background: none !important;
    height: 0 !important;
}

/* 스펙 섹션 */
.vp-specs-section {
    margin-top: 30px;
}

.vp-specs-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.vp-specs-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.vp-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vp-spec-item:last-child {
    border-bottom: none;
}

.vp-spec-label {
    color: #666;
}

.vp-spec-value {
    font-weight: 500;
}

/* 모달 닫기 버튼 */
.vp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.vp-modal-close:hover {
    background: rgba(0,0,0,0.2);
}

.vp-modal-close i {
    width: 18px !important;
    height: 18px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

/* 모바일 헤더 테마 영향 방지 */
.vp-mobile-header {
    position: relative !important;
}

/* 모든 가능한 header:after 조합 강제 초기화 - 최고 우선순위 */
body header:after,
body header:before,
body .vp-mobile-header:after,
body .vp-mobile-header:before,
body header.vp-mobile-header:after,
body header.vp-mobile-header:before,
body .vp-portfolio-wrapper header:after,
body .vp-portfolio-wrapper header:before,
body .vp-portfolio-wrapper .vp-mobile-header:after,
body .vp-portfolio-wrapper .vp-mobile-header:before,
body .vp-portfolio-container header:after,
body .vp-portfolio-container header:before,
body .vp-portfolio-container .vp-mobile-header:after,
body .vp-portfolio-container .vp-mobile-header:before,
html body header:after,
html body header:before,
html body .vp-mobile-header:after,
html body .vp-mobile-header:before,
html body header.vp-mobile-header:after,
html body header.vp-mobile-header:before,
html body .vp-portfolio-wrapper header:after,
html body .vp-portfolio-wrapper header:before,
html body .vp-portfolio-wrapper .vp-mobile-header:after,
html body .vp-portfolio-wrapper .vp-mobile-header:before,
html body .vp-portfolio-container header:after,
html body .vp-portfolio-container header:before,
html body .vp-portfolio-container .vp-mobile-header:after,
html body .vp-portfolio-container .vp-mobile-header:before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    transform: none !important;
}

/* 모든 가능한 header:after 조합 강제 초기화 */
header:after,
header:before,
.vp-mobile-header:after,
.vp-mobile-header:before,
header.vp-mobile-header:after,
header.vp-mobile-header:before,
.vp-portfolio-wrapper header:after,
.vp-portfolio-wrapper header:before,
.vp-portfolio-wrapper .vp-mobile-header:after,
.vp-portfolio-wrapper .vp-mobile-header:before,
.vp-portfolio-container header:after,
.vp-portfolio-container header:before,
.vp-portfolio-container .vp-mobile-header:after,
.vp-portfolio-container .vp-mobile-header:before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* 모바일 필터 사이드 메뉴 */
.vp-mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vp-mobile-filter-overlay.open {
    opacity: 1;
    visibility: visible;
}

.vp-mobile-filter-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(0);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.vp-mobile-filter-menu.open {
    right: 0;
}

.vp-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.vp-mobile-filter-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.vp-mobile-filter-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.vp-mobile-filter-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.vp-mobile-filter-close i {
    width: 18px !important;
    height: 18px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

.vp-mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.vp-mobile-filter-search {
    margin-bottom: 20px;
}

.vp-mobile-filter-search .vp-search-wrapper {
    position: relative;
}

.vp-mobile-filter-search .vp-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}



.vp-mobile-filter-reset {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    transition: background 0.2s ease !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative !important;
    vertical-align: top !important;
}

.vp-mobile-filter-reset:hover {
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

.vp-mobile-filter-reset i {
    width: 16px !important;
    height: 16px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: inherit !important;
}

/* 모바일 필터 섹션 스타일 */
.vp-mobile-filter-menu .vp-filter-section {
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: 0 !important;
    padding: 15px 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.vp-mobile-filter-menu .vp-filter-section:last-child {
    border-bottom: none !important;
}

.vp-mobile-filter-menu .vp-filter-toggle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 0;
}

.vp-mobile-filter-menu .vp-filter-buttons {
    gap: 10px;
    margin-top: 15px;
}

.vp-mobile-filter-menu .vp-filter-button {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.vp-mobile-filter-menu .vp-filter-button:hover {
    background: #f0f0f0;
}

.vp-mobile-filter-menu .vp-filter-button.active {
    /* background와 border-color는 동적으로 설정됨 */
    color: #fff;
}

/* 모바일에서만 사이드 메뉴 표시 */
@media (min-width: 768px) {
    .vp-mobile-filter-overlay,
    .vp-mobile-filter-menu {
        display: none !important;
    }
}

/* 스크롤바 숨김 */
.vp-sidebar-sticky::-webkit-scrollbar {
    display: none;
}

.vp-sidebar-sticky {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 화면 리더 전용 텍스트 */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
