/* VIKINGLAB Responsive Styles */

/* ========================================
   반응형 브레이크포인트
   ======================================== */
/* 
   - Mobile: ~767px
   - Tablet: 768px ~ 1023px  
   - Desktop: 1024px ~ 1199px
   - Large Desktop: 1200px+
*/

/* ========================================
   기본 반응형 설정
   ======================================== */

/* 컨테이너 최대 너비 설정 */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 반응형 그리드 시스템 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    box-sizing: border-box;
}

/* ========================================
   헤더 반응형 스타일
   ======================================== */

/* 데스크톱 헤더 (1024px 이상) */
@media (min-width: 1024px) {
    .siteheader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        /* background: rgba(255, 255, 255, 0.95); */
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sitenav--right {
        display: flex;
    }
}

/* 태블릿 헤더 (768px ~ 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .siteheader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .siteheader__bd {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    .sitenav--right {
        display: none;
    }
    
    .siteheader__logo img {
        max-height: 40px;
    }
}

/* 모바일 헤더 (767px 이하) */
@media (max-width: 767px) {
    .siteheader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        /* background: rgba(255, 255, 255, 0.95); */
        backdrop-filter: blur(10px);
    }
    
    .siteheader__bd {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    .sitenav--right {
        display: none;
    }
    
    .siteheader__logo img {
        max-height: 25px;
    }
}

/* ========================================
   모바일 메뉴 스타일
   ======================================== */

/* 모바일 메뉴 오버레이 */
.mobnav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block !important;
}

.mobnav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 모바일 메뉴 (기본적으로 숨김) */
.mobnav {
    position: fixed !important;
    top: 0 !important;
    right: -280px !important;
    bottom: auto !important;
    left: auto !important;
    width: 280px !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 99999 !important;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    visibility: hidden;
}

.mobnav.active {
    right: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
}

.mobnav__sitenav {
    padding: 80px 0 40px;
}

.mobnav__sitenav .sitenav__item {
    display: block;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.mobnav__sitenav .sitenav__link {
    display: block;
    padding: 20px 30px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobnav__sitenav .sitenav__link:hover {
    color: #00ff88;
    background: #f8f8f8;
}

/* 모바일 메뉴 닫기 버튼 */
.mobnav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobnav__close:hover {
    color: #00ff88;
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 100000;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: #00ff88;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #333;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #333;
}

/* ========================================
   페이지 헤더 반응형 스타일
   ======================================== */

/* 데스크톱 페이지 헤더 */
@media (min-width: 1024px) {
    .pageheader {
        padding-top: 120px;
    }
    
    .pageheader__heading {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .pageheader__option__list {
        display: flex;
        gap: 5px;
    }
}

/* 태블릿 페이지 헤더 */
@media (max-width: 1023px) and (min-width: 768px) {
    .pageheader {
        padding-top: 100px;
    }
    
    .pageheader__heading {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .pageheader__option__list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .pageheader__option__list li {
        flex: 0 0 auto;
    }
}

/* 모바일 페이지 헤더 */
@media (max-width: 767px) {
    .pageheader {
        padding-top: 80px;
    }
    
    .pageheader__heading {
        font-size: 2.5rem;
        line-height: 1.1;
        /* text-align: center; */
    }
    
    .pageheader__option__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .pageheader__option__list li {
        flex: 0 0 auto;
    }
    
    .pageheader__option__list a {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ========================================
   캐러셀 반응형 스타일
   ======================================== */

/* Owl Carousel 내부 아이템 폭을 Owl 계산에 맡기도록 강제 flex 해제 */
@media (min-width: 1200px) {
    .owl-carousel .owl-stage-outer { overflow: hidden; }
    .owl-carousel .owl-item { float: left; }
    .owl-carousel .col { flex: initial; width: auto; }
}

/* 태블릿 캐러셀 */
@media (max-width: 1199px) and (min-width: 768px) {
    .owl-carousel .col { flex: initial; width: auto; }
}

/* 모바일 캐러셀 */
@media (max-width: 767px) {
    .owl-carousel .col { flex: initial; width: auto; }
    
    .pageheader__production__title {
        font-size: 16px;
    }
    
    .pageheader__production__status {
        font-size: 12px;
        margin-top: 0 !important;
    }
}

/* ========================================
   푸터 반응형 스타일
   ======================================== */

/* 데스크톱 푸터 */
@media (max-width: 1440px) {
    .sitefooter .sitefooter__cta .sitefooter__cta__heading {
    padding-top: 4rem;
    }
    
    .sitefooter__logo__text {
        font-size: 9.5rem;
    }
}

/* 태블릿 푸터 */
@media (max-width: 1024px) {
    .sitefooter__cta__heading {
        font-size: 2.5rem;
    }
    
    .sitefooter__logo__text {
        font-size: 6rem;
    }
}

/* 모바일 푸터 */
@media (max-width: 768px) {
    .sitefooter .sitefooter__cta .sitefooter__cta__heading {
    padding-top: 1rem;
    }
    .sitefooter__logo__text {
        font-size: 5rem;
    }
    .sitefooter__address__text {
        font-size: 14px;
        text-align: center;
    }
    
    .sitefooter__copyright__text {
        font-size: 12px;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .sitefooter__content {
        text-align: center;
        padding: 1rem 0 40px;
    }
    .sitefooter__cta__heading {
    font-size: 1.75rem;
    }
    .sitefooter__logo__text {
        font-size: 2.5rem;
    }
    .sitefooter__address__text {
        font-size: 14px;
        text-align: center;
    }
    
    .sitefooter__copyright__text {
        font-size: 12px;
        text-align: center;
    }
}

/* ========================================
   유틸리티 클래스
   ======================================== */

/* 반응형 숨김/표시 */
.hidden-mobile {
    display: block;
}

.hidden-tablet {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .hidden-desktop {
        display: block;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .hidden-tablet {
        display: none !important;
    }
}

/* 반응형 텍스트 크기 */
.text-responsive {
    font-size: 1rem;
}

@media (max-width: 767px) {
    .text-responsive {
        font-size: 0.9rem;
    }
}

/* 반응형 패딩 */
.p-responsive {
    padding: 40px 20px;
}

@media (max-width: 767px) {
    .p-responsive {
        padding: 20px 15px;
    }
}

/* ========================================
   모바일 최적화
   ======================================== */

/* 터치 친화적 버튼 크기 */
@media (max-width: 767px) {
    .btn, .sitenav__btn {
        min-height: 18px;
        min-width: 12px;
        padding: 3px 12px;
    }
}

/* 모바일에서 스크롤 방지 */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* ========================================
   VIKING LAB 모바일 메뉴 시스템
   ======================================== */

/* 햄버거 버튼 */
.vk-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.vk-hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 햄버거 버튼 애니메이션 */
.vk-hamburger-btn.vk-active .vk-hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.vk-hamburger-btn.vk-active .vk-hamburger-line:nth-child(2) {
    opacity: 0;
}

.vk-hamburger-btn.vk-active .vk-hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* 모바일 메뉴 오버레이 */
.vk-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vk-mobile-overlay.vk-active {
    opacity: 1;
    visibility: visible;
}

/* 모바일 메뉴 패널 */
.vk-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.vk-mobile-menu.vk-active {
    right: 0;
}

/* 모바일 메뉴 헤더 */
.vk-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.vk-mobile-menu-logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.vk-mobile-menu-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-right: -10px;
}

.vk-mobile-menu-close:hover {
    background-color: #e9ecef;
}

/* 모바일 네비게이션 */
.vk-mobile-nav {
    padding: 20px 0;
}

.vk-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vk-mobile-nav-item {
    margin: 0;
}

.vk-mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.vk-mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #00ff88;
    padding-left: 30px;
}

/* 언어 선택 스타일 */
.vk-mobile-nav-language {
    margin-top: 20px;
    padding-top: 20px;
}

.vk-mobile-language {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
}

.vk-mobile-language .vk-mobile-nav-link {
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 20px;
    background-color: #f8f9fa;
    min-width: auto;
}

.vk-mobile-language .vk-mobile-nav-link:hover {
    background-color: #00ff88;
    color: white;
    padding-left: 16px;
}

.vk-mobile-language-sep {
    color: #ccc;
    font-size: 16px;
}

/* 헤더 위치 조정 */
.siteheader__bd {
    position: relative;
}

/* 반응형 표시 설정 */
@media (max-width: 1023px) {
    .vk-hamburger-btn {
        display: flex !important;
    }
    
    /* 데스크톱 네비게이션 숨기기 */
    .sitenav--right {
        display: none !important;
    }
    
    /* 헤더 패딩 조정 */
    .siteheader__bd {
        padding-right: 70px; /* 햄버거 버튼 공간 확보 */
    }
}

@media (max-width: 767px) {
    .vk-mobile-menu {
        width: 280px;
        right: -280px;
    }
    
    .vk-hamburger-btn {
        right: 0;
    }
    
    /* 헤더 패딩 조정 */
    .siteheader__bd {
        padding-right: 70px; /* 햄버거 버튼 공간 확보 */
    }
}

/* 메뉴 열림 시 스크롤 방지 */
body.vk-menu-open {
    overflow: hidden !important;
}

/* ========================================
   메인 페이지 캐러셀 반응형 스타일
   ======================================== */

/* 캐러셀 컨테이너 반응형 */
@media (max-width: 1023px) {
    .pageheader--production {
        padding-top: 100px;
    }
    
    .pageheader__productions {
        padding: 20px 0;
    }
    
    .pageheader__heading {
        font-size: 3rem;
        /* text-align: center; */
    }
    
    /* 옵션 리스트 중앙 정렬 */
    .pageheader__option__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        margin-top: 20px;
    }
    
    .pageheader__option__list li {
        flex: 0 0 auto;
    }
    
    .pageheader__option__list a {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 6px;
        /* background: #f8f9fa; */
        color: #333;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .pageheader__option__list a:hover {
        background: #00ff88;
        color: white;
    }
}

/* 모바일 캐러셀 스타일 */
@media (max-width: 767px) {
    .pageheader--production {
        padding-top: 80px;
    }
    
    .pageheader__heading {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .pageheader__productions {
        padding: 15px;
    }
    
    /* 캐러셀 카드 크기 조정 */
    .owl-carousel .col {
        padding: 0 8px;
    }
    
    .pageheader__production {
        padding: 15px;
        /* background: #fff; */
        margin-bottom: 0;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .pageheader__production__title {
        font-size: 1rem !important;
        line-height: 1;
        margin-bottom: 0;
        font-weight: 600;
    }
    
    .pageheader__production__status {
        font-size: 0.9rem !important;
        color: #666;
    }
    
    .pageheader__production__status__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }
}

/* 초소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .pageheader--production{
        /* padding-top: 40px; */
    }
    .pageheader__heading {
        font-size: 2rem;
    }
    
    .pageheader__production {
        padding: 12px;
        /* min-height: 100px; */
    }
    
    .pageheader__production__title {
        font-size: 1rem !important;
    }
    
    .pageheader__production__status {
        font-size: 0.8rem !important;
    }
    
    .pageheader__option__list a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Owl Carousel 반응형 설정 */
@media (max-width: 1199px) and (min-width: 768px) {
    .owl-carousel .col {
        flex: 0 0 33.333%; /* 태블릿에서 3개씩 */
    }
}

@media (max-width: 767px) {
    .owl-carousel .col {
        flex: 0 0 40%; /* 모바일에서 2.5개 (40% = 2.5개) */
        padding: 0 4px; /* 좁은 간격 */
    }
    
    /* 캐러셀 카드 크기 조정 */
    .pageheader__production {
        padding: 10px;
        min-height: 80px;
        font-size: 0.9rem;
    }
    
    .pageheader__production__title {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    .pageheader__production__status {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .owl-carousel .col {
        flex: 0 0 40%; /* 초소형 모바일에서도 2.5개 */
        padding: 0 3px; /* 더 좁은 간격 */
    }
    
    .pageheader--production .pageheader__productions .pageheader__production {
        padding: 15px 10px 12px 12px;
        min-height: 50px;
    }
    
    .pageheader__production__title {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }
    
    .pageheader__production__status {
        font-size: 0.7rem !important;
    }
    
    .pageheader__production__status__dot {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }
}

/* 메인 콘텐츠 영역 반응형 */
@media (max-width: 1023px) {
    .main__bd {
        padding: 20px 15px;
        margin: 0;
    }
    
    .loadmore-container {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .main__bd {
        padding: 15px 10px;
    }
}

/* 게시글 내 비디오 반응형 스타일 */
.bo_v_con video,
.view_content video,
.bo_content video,
.code-source video {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 16px;
    margin: 0;
    display: block;
    background: #000;
    /* 자동 재생을 위한 추가 스타일 */
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 비디오 호버 효과 */
.bo_v_con video:hover,
.view_content video:hover,
.bo_content video:hover,
.code-source video:hover {
    /* transform: scale(1); */
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */
}

/* 자동 재생 비디오 특별 스타일 */
video[autoplay] {
    /* border: 2px solid #000000; */
    /* box-shadow: 0 4px 15px rgba(0,124,186,0.3); */
}

/* 음소거 표시 */
video[muted]::after {
    content: "🔇";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Before & After 이미지 반응형 스타일 */
.before-after-main-section {
    margin: 40px 0;
    padding: 0;
}

.before-after-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

.before-after-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

/* 기본 Before & After 컨테이너 스타일 (에디터용) */
.before-after-container {
    position: relative;
    width: 100%;
    min-height: 400px; /* 최소 높이 설정 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin: 20px auto;
    max-width: 800px; /* 기본 최대 너비 */
    background: #f5f5f5; /* 배경색으로 컨테이너 확인 */
}

/* 컴팩트 버전 */
.before-after-container.compact {
    min-height: 300px;
    max-width: 600px;
}

/* 에디터에서 사용할 때의 높이 설정 */
.before-after-container[data-before-after="true"] {
    height: auto;
    aspect-ratio: 16/10;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.before-image img,
.after-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    outline: none !important;
}

/* 이미지 로딩 실패 시 대체 표시 */
.before-image img[src=""],
.after-image img[src=""],
.before-image img:not([src]),
.after-image img:not([src]) {
    background: #ddd;
    position: relative;
}

.before-image img[src=""]:after,
.after-image img[src=""]:after,
.before-image img:not([src]):after,
.after-image img:not([src]):after {
    content: "이미지 없음";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}

/* Before 이미지 품질 저하 스타일 */
.before-image img {
    /* filter: contrast(0.9) brightness(0.9) saturate(0.9) blur(0.3px) opacity(0.95); */
    image-rendering: auto;
    transition: filter 0.3s ease;
}

/* After 이미지는 고품질 유지 */
.after-image img {
    /* filter: contrast(1.05) brightness(1.02) saturate(1.1); */
    /* image-rendering: -webkit-optimize-contrast; */
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.9);
    cursor: grab;
    z-index: 10 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    left: 50%; /* 기본 위치 */
    transform: translateX(-50%);
}

.slider:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.slider:active {
    cursor: grabbing;
}

.handle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
}

.handle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.arrow-left,
.arrow-right {
    position: absolute;
    font-weight: bold;
    user-select: none;
}

.arrow-left {
    left: 8px;
}

.arrow-right {
    right: 8px;
}

/* Before & After 텍스트 영역 */
.before-after-content-container {
    padding: 20px 0;
}

.before-after-labels {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.before-label,
.after-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none; /* 클릭 방지 */
}

/* 컨테이너 내부의 라벨 위치 */
.before-after-container .before-label {
    left: 20px;
}

.before-after-container .after-label {
    right: 20px;
}

/* 텍스트 영역의 라벨 (기존 스타일 유지) */
.before-after-labels .before-label,
.before-after-labels .after-label {
    position: static;
    display: inline-block;
}

.before-label {
    background: #ffebee;
    color: #c62828;
}

.after-label {
    background: #e8f5e8;
    color: #2e7d32;
}

.before-after-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.before-after-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .before-after-main-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .before-after-slider-container {
        aspect-ratio: 16/12;
    }
    
    .before-after-title {
        font-size: 24px;
    }
    
    .before-after-description {
        font-size: 15px;
    }
    
    .handle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .arrow-left {
        left: 6px;
    }
    
    .arrow-right {
        right: 6px;
    }
}

@media (max-width: 480px) {
    .before-after-main-section {
        margin: 30px 0;
    }
    
    .before-after-main-container {
        gap: 25px;
        padding: 0 10px;
    }
    
    .before-after-slider-container {
        aspect-ratio: 4/3;
    }
    
    .before-after-labels {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .before-label,
    .after-label {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .before-after-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .before-after-description {
        font-size: 14px;
    }
}

/* 비디오 컨테이너 */
.video-container,
.video-wrapper,
.video-container-full {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video,
.video-wrapper video,
.video-container-full video {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 16/9;
}

/* 에러 메시지 스타일 */
.video-error {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    margin: 20px 0;
}

@media (max-width: 767px) {
    .bo_v_con video,
    .view_content video,
    .bo_content video {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .video-container,
    .video-wrapper {
        margin: 15px 0;
        border-radius: 6px;
    }
}

/* ========================================
   컨테이너 반응형 패딩
   ======================================== */

.bd {
    /* padding: 0 40px; */
}
@media (max-width: 1440px) {
    .siteheader .siteheader__wrap .sitenav--right{
        right: 0;
    }
    .pageheader__bd{
        /* margin: 0 3rem; */
    }
    .main__bd{
        margin: 0 1rem;
    }
    .sitefooter{
        padding: 0;
    }
    .sitefooter .sitefooter__cta {
        padding: 0 1rem;
    }
    .sitefooter__content{
        padding:0 2rem;
    }
    .bd {
        padding: 0;
        margin: 0 4rem;
    }
}

@media (max-width: 1024px) {
    .siteheader .siteheader__wrap .siteheader__bd{
        margin:0 1rem;
    }
    .siteheader .siteheader__wrap .sitenav--right{
        right: 0;
    }
    .pageheader__bd{
        margin: 0 1rem; 
    }
    .main__bd{
        margin: 0 1rem;
    }
    .sitefooter{
        padding: 0;
    }
    .sitefooter .sitefooter__cta {
        padding: 0 1rem;
    }
    .sitefooter__content{
        padding:0 2rem;
    }
    .bd {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .siteheader .siteheader__wrap .siteheader__bd{
        margin: 0 1rem;
    }
    .bd {
        padding: 0;
    }
    .sitefooter .sitefooter__cta {
        padding: 0 2rem;
    }
    .sitefooter__content{
        padding:0 2rem;
    }
}

@media (max-width: 480px) {
    .sitefooter{
        padding: 0;
    }
    .sitefooter .col{
        padding:0;
    }
    .sitefooter .sitefooter__cta {
        padding: 0 1rem;
    }
    .sitefooter__content{
        padding: 0 0rem;
        margin-top: 40px;
    }
    .siteheader .siteheader__wrap .siteheader__bd{
        margin: 0 1rem;
    }
    .sitefooter__bd{
        margin: 0 1rem;
    }
    .bd {
        padding: 0;
    }
    /* 비디오 컨테이너 */
    .video-container,
    .video-wrapper,
    .video-container-full {
        position: relative;
        width: 100%;
        margin: 0;
        border-radius: 8px;
        overflow: hidden;
    }

    .video-container video,
    .video-wrapper video,
    .video-container-full video {
        width: 100% !important;
        height: auto !important;
        display: block;
        aspect-ratio: 16/9;
    }
}
