@charset "utf-8";

/* Webfont import 제거: 전역 기본 폰트 사용 */
/* (was) @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap'); */

/* 두 번째 섹션 스타일 - 제품 이미지 슬라이더 */
#atc02 {
    padding: 120px 0 420px; /* 하단 패딩을 늘려 카드가 잘리지 않게 */
    background: #fff;
    position: relative;
    text-align: center;
    border-top: 1px solid #333;
    overflow: visible; /* 카드 섹션이 잘리지 않도록 visible로 변경 */
    /* 비디오 잘림 방지 */
    width: 100%;
    box-sizing: border-box;
    /* 공통: 패딩 포함 너비 계산으로 안전하게 */
}

/* 배경 비디오 스타일: 페이드인 */
.section_bg_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0; /* 시작은 투명 */
    transition: opacity 2.4s ease-out;
    filter: brightness(0.75) saturate(0.75); /* 영상만 어둡게 */
    will-change: opacity;
}

/* 좌측에서 우로 진행되는 오버레이 */
.section_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 66%, transparent 66%, transparent 100%);
    z-index: 0.5;
    opacity: 0;
    clip-path: inset(0 100% 0 0); /* 초기: 완전히 숨김 */
    transition: clip-path 1.2s ease-out, opacity 0.3s ease-out;
    will-change: clip-path, opacity;
}

#atc02.in-view .section_bg_video {
    opacity: 1; /* 보이게 */
}

/* 텍스트 애니메이션 완료 후 오버레이 클립 애니메이션 시작 */
#atc02.clip-animation .section_overlay {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* 왼쪽에서 오른쪽으로 65%까지 클립 해제 */
}

/* OUR PRODUCT 그룹 이동 */
.s2-left { 
    flex: 0 0 48%; 
    transition: transform 1s ease-out; 
    will-change: transform; 
}

/* 클립 오버레이 진행 시 OUR PRODUCT 그룹 이동 */
#atc02.clip-animation .s2-left {
    transform: translate(-270px, -220px);
}

/* clip-animation 상태에서 제품명을 가로 배치 + 버튼형 스타일 */
#atc02.clip-animation .s2-products {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px); /* 반응형 간격: 더 작게 */
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    justify-content: center; /* 중앙 정렬로 균형 맞춤 */
}
#atc02.clip-animation .s2-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(10px, 2vw, 18px); /* 반응형 패딩 */
    width: clamp(100px, 12vw, 200px);  /* 반응형 폭: 992px에서도 한 줄 유지 */
    height: clamp(36px, 5vh, 46px);    /* 반응형 높이: 36px~46px */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    font-size: clamp(16px, 2.5vw, 22px); /* 반응형 폰트: 16px~22px */
    border-radius: 999px; /* pill */
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
#atc02.clip-animation .s2-product:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}

/* OUR PRODUCT 제목(.s2-title) 하단 여백을 clip-animation 시점에 넉넉하게 늘립니다. 기존 16px에서 28px로 증가. */
#atc02.clip-animation .s2-title {
    margin-bottom: 35px;
}

/* 전역 css/style.css의 #atc02 배경을 덮어쓰는 오버라이드 */
#way_container #atc02 {
    background: #fff !important;
    overflow: visible !important; /* 카드 섹션이 잘리지 않도록 */
}

/* 이전 마스크/클립 효과 완전 비활성화 */
#atc02::before,
#atc02::after {
    content: none !important;
}

/* 콘텐츠는 비디오와 오버레이 위에 배치 */
#atc02 > *:not(.section_bg_video):not(.section_overlay) {
    position: relative;
    z-index: 1;
}

/* 섹션2 임시 UI 숨김 */
#atc02 .product_section_title,
#atc02 .product_category_tabs,
#atc02 .product_slide_container,
#atc02 .slide_nav_buttons,
#atc02 .slide_indicators {
    display: none !important;
}

/* OUR PRODUCT 섹션 새 레이아웃 */
.s2-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 150px;
    color: #fff;
    font-family: inherit; /* 전역 기본 폰트 상속 */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s;
    min-height: 70vh;
    left: 230px; /* 우측으로 소폭 이동 (필요 시 값 조정) */
    top: 70px;   /* 아래로 소폭 이동 (필요 시 값 조정) */
}

#atc02.in-view .s2-content {
    opacity: 1;
    transform: translateY(0);
}

.s2-left { 
    flex: 0 0 48%; 
    transition: transform 1s ease-out; 
    will-change: transform; 
}

.s2-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700; /* Montserrat 로드 웨이트에 맞춤: 가짜 볼드 방지 */
    letter-spacing: 0.09em; /* 자간 확대로 눌림 완화 */
    margin-bottom: 16px;
    color: #fff;
}

.s2-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.s2-product {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.s2-story {
    flex: 0 0 48%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    text-align: left;
    color: #fff;
}

.s2-story-label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.s2-story p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    text-align: left;
}

/* 섹션2 전용 내부 컨테이너: 카드/콘텐츠의 위치 기준을 섹션 내부로 한정 */
.s2-inner {
    position: relative;
    max-width: none;     /* 폭 제한 제거 - 카드가 자유롭게 배치되도록 */
    margin: 0 auto;      /* 가운데 정렬 */
    width: 100%;
    overflow: visible;   /* 카드 섹션이 잘리지 않도록 */
}

/* ===== 제품 카드 3개 ===== */
.s2-cards {
    position: relative;         /* 문서 흐름 내에서 위치, 상대 이동 허용 */
    z-index: 3;                 /* 오버레이 위로 확실히 */
    margin-top: -330px;         /* 위로 끌어올림 (필요시 -120~-200px 범위 조정) */
    margin-left: clamp(70px, calc(-80px + (100vw - 1200px) * 0.05), 20px); /* 적당히 왼쪽으로 이동하면서 반응형 */
    margin-right: auto;         /* 오른쪽 여백 자동 */
    padding-left: clamp(50px, 6vw, 80px);  /* 왼쪽 버튼 공간 */
    padding-right: clamp(50px, 6vw, 80px); /* 오른쪽 버튼 공간 */
    width: clamp(700px, 95vw, 1100px);     /* 3번째 카드까지 충분히 포함되도록 폭 확장 */
    box-sizing: border-box;     /* 패딩 포함 계산 */
    display: flex;
    flex-wrap: nowrap;          /* 가로 슬라이드: 한 줄 유지 */
    justify-content: flex-start; /* 기존처럼 왼쪽 정렬 */
    gap: clamp(12px, 2vw, 20px); /* 카드 간격도 반응형 */
    overflow: visible;          /* 클리핑은 .s2-viewport가 담당 */
}

/* 카드 뷰포트: 실제 클리핑 담당 */
.s2-viewport {
    width: 100%;
    overflow: hidden;
}

/* 슬라이드 트랙: 실제 이동 주체 */
.s2-track {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(12px, 2vw, 20px); /* 반응형 간격: 12px~20px */
    will-change: transform;
    transition: transform 600ms cubic-bezier(.22,.61,.36,1);
}

.s2-card {
    display: block;
    width: clamp(200px, 25vw, 300px);      /* 반응형 폭: 200px~300px */
    height: clamp(213px, 26.7vw, 320px);   /* 반응형 높이: 300x320 비율 유지 */
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    /* 텍스트처럼 '위로 서서히 페이드 인' 기본 상태 */
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
    transition:
        opacity 1500ms cubic-bezier(.22,.61,.36,1),
        transform 1800ms cubic-bezier(.22,.61,.36,1),
        box-shadow .25s ease; /* hover 유지 */
    cursor: pointer;           /* 클릭 가능 표시 */
}

.s2-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.0);
    transition: transform .35s ease;
}

.s2-card:hover {
    box-shadow: 0 14px 30px rgba(0,0,0,0.32);
    transform: translateY(8px);
}

.s2-card:hover img { transform: scale(1.04); }

/* OUR PRODUCT 애니메이션 이후(clip-animation 시점)에 순차 등장 */
#atc02.clip-animation .s2-cards .s2-card {
    /* 기본적으로 모든 카드를 보이게 처리 */
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.20s; /* 기본 지연 시간 */
}
#atc02.clip-animation .s2-cards .s2-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.20s; /* OUR PRODUCT 이동 직후보다 조금 더 여유 */
}

#atc02.clip-animation .s2-cards .s2-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.55s;
}

#atc02.clip-animation .s2-cards .s2-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.90s;
}

/* in-view에서는 미리 노출하지 않음: clip-animation 이후에만 등장 */
/* 안전망: clip-animation이 지연/누락되어도 in-view 상태에서는 카드가 보여야 함 */
/* #atc02.in-view .s2-cards .s2-card { opacity: 1; transform: translateY(0); } */

/* 중간 화면에서 더 보수적인 스케일링 */
@media (max-width: 1400px) {
    .s2-cards { 
        width: clamp(500px, 80vw, 900px);
        padding-left: clamp(40px, 6vw, 70px);
        padding-right: clamp(40px, 6vw, 70px);
    }
    .s2-card {
        width: clamp(180px, 22vw, 280px);
        height: clamp(192px, 23.5vw, 299px);
    }
    /* 네비게이션 버튼 위치는 패딩 내에서 유지 */
    .s2-prev { left: 15px; }
    .s2-next { right: 15px; }
}

@media (max-width: 992px) {
    /* 태블릿 이하에서는 컨테이너 흐름에 맞춰 유동 배치 */
    .s2-cards { 
        position: relative; /* static → relative 변경하여 버튼 기준점 유지 */
        top: auto; 
        margin-left: 0; 
        margin-right: 0;
        width: calc(100vw - 20px); 
        gap: 14px; 
        margin-top: 60px; /* 텍스트와 카드 사이 간격 늘림 */ 
        padding-left: clamp(40px, 6vw, 60px);
        padding-right: clamp(40px, 6vw, 60px);
        overflow: visible; 
    }
    .s2-viewport { width: 100%; overflow: hidden; }
    .s2-card { 
        width: clamp(180px, calc((100vw - 120px) / 2 - 7px), 280px); 
        height: clamp(192px, calc(1.067 * clamp(180px, calc((100vw - 120px) / 2 - 7px), 280px)), 299px);
    }
    /* 태블릿에서 네비게이션 버튼 위치 조정 */
    .s2-prev { left: 10px; }
    .s2-next { right: 10px; }
    
    /* 태블릿에서 제품 버튼 크기 더 작게 조정 */
    #atc02.clip-animation .s2-product {
        width: clamp(100px, 10vw, 160px);  /* 992px에서 더 작게 */
        font-size: clamp(14px, 2vw, 18px); /* 폰트도 작게 */
        padding: 0 clamp(8px, 1.5vw, 14px); /* 패딩도 작게 */
    }
    #atc02.clip-animation .s2-products {
        gap: clamp(4px, 1vw, 8px); /* 간격도 더 작게 */
    }
}

@media (max-width: 768px) {
    .s2-cards { 
        gap: 12px; 
        margin-top: 36px; 
        padding: 0 clamp(50px, 8vw, 80px); /* 좌우 버튼 공간 확보 */
        width: 100vw; /* 전체 화면 폭 사용 */
        margin-left: 0; /* 중앙 정렬 */
    }
    .s2-card { 
        width: min(calc(100vw - 160px), 320px); /* 버튼 공간 제외하고 1개 카드만 표시 */
        height: min(calc((100vw - 160px) * 1.067), 341px); /* 비례적 높이 */
        margin: 0 auto; 
        flex: 0 0 auto; /* 카드 크기 고정 */
    }
    /* .s2-track transform 제거 - JavaScript가 제어하도록 */
    .s2-viewport { 
        width: min(calc(100vw - 160px), 320px); /* 카드 1개 크기에 맞춤 */
        margin: 0 auto;
        overflow: hidden; /* 스크롤 방지 */
    }
    .s2-track {
        justify-content: flex-start; /* 트랙 내 카드 왼쪽 정렬 */
        /* transform 강제 리셋 제거 - JavaScript가 정상 제어하도록 */
    }
}

/* 페이드 인 + 슬라이드업: 요소별 초기 상태 */
.s2-title,
.s2-products .s2-product,
.s2-story-label,
.s2-story p {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

/* in-view 시 단계적 등장 */
#atc02.in-view .s2-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms ease-out 150ms, transform 700ms ease-out 150ms;
}

#atc02.in-view .s2-products .s2-product:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease-out 320ms, transform 720ms ease-out 320ms;
}

#atc02.in-view .s2-products .s2-product:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease-out 420ms, transform 720ms ease-out 420ms;
}

#atc02.in-view .s2-story-label {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms ease-out 300ms, transform 700ms ease-out 300ms;
}

#atc02.in-view .s2-story p:nth-of-type(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease-out 380ms, transform 720ms ease-out 380ms;
}

#atc02.in-view .s2-story p:nth-of-type(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease-out 460ms, transform 720ms ease-out 460ms;
}

#atc02.in-view .s2-story p:nth-of-type(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease-out 540ms, transform 720ms ease-out 540ms;
}

/* 섹션 등장 시점에는 화살표를 아직 숨김 유지 (카드 뷰포트 진입 때 표시) */
/* 기본: 섹션 진입만으로는 표시를 강제하지 않음 (표시는 아래 지원/폴백 규칙에서 처리) */
/* #atc02.in-view 에서 별도 숨김 강제는 제거하여 폴백이 정상 동작하도록 유지 */

/* 기본 숨김 상태 유지 */
.s2-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 6vw, 60px); /* 반응형 폰트 크기 */
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, transform .25s ease, background .25s ease;
}

/* 좌우 내비게이션 버튼 비활성 스타일 */
.s2-nav[disabled],
.s2-nav:disabled,
.s2-nav-fixed[disabled],
.s2-nav-fixed:disabled {
    color: #666;            /* 어두운 회색 */
    opacity: 0.5;           /* 시각적으로 비활성 강조 */
    cursor: default;        /* 포인터 제거 */
    pointer-events: none;   /* 클릭 방지 */
}

/* 카드 섹션이 실제 등장(clip-animation 단계)할 때만 버튼 표시 */
#atc02.clip-animation .s2-nav { opacity: 0.95; visibility: visible; pointer-events: auto; }

/* 좌우 내비게이션 버튼 - 패딩 영역 내 배치 */
.s2-prev { left: 20px; }
.s2-next { right: 20px; }

.s2-nav:hover { opacity: 1; }
.s2-nav:active { opacity: 0.8; }

/* 화면 고정 화살표 (선택지 B) 기본은 숨김, body.s2-after 에서만 표시 */
.s2-nav-fixed {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease;
}
.s2-nav-fixed.s2-prev { left: 16px; }
.s2-nav-fixed.s2-next { right: 16px; }

body.s2-after .s2-nav-fixed {
    opacity: 0.9;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .s2-nav-fixed { display: none; }
}

/* 접근성: 스크린리더용 숨김 텍스트 */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 작은 화면에서 네비게이션 버튼 위치 조정 */
@media (max-width: 900px) and (min-width: 769px) {
    .s2-prev { left: 8px; }
    .s2-next { right: 8px; }
}

/* 모바일에서는 버튼 표시 (카드 1개씩 네비게이션) */
@media (max-width: 768px) {
    .s2-nav { 
        display: inline-flex; 
        font-size: 40px; /* 모바일에서 버튼 크기 조정 */
    }
    .s2-prev { left: 15px; }
    .s2-next { right: 15px; }
}

/* 스크롤 시 오버레이 강화 */
#atc02.scrolled .section_overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.55) 66%, transparent 66%, transparent 100%);
    transition: background 0.4s ease-out;
}

/* phase2: 비디오 우측 40%만 노출 + 스토리 고정 중앙 이동 */
#atc02.phase2 .section_bg_video {
    /* 클립 제거: 전체 비디오 노출 */
    clip-path: none;
}

#atc02.phase2 .s2-content {
    /* phase2에서도 기본 레이아웃 유지 (변화 없음) */
    max-width: 1200px;
    width: auto;
    padding: 0 40px;
}

#atc02.phase2 .s2-left {
    /* 숨김/이동 없음 */
    opacity: 1;
    transform: none;
    transition: none;
}

#atc02.phase2 .s2-story {
    /* 위치/크기/이동 변화 제거: 기본과 동일 유지 */
    position: static;
    top: auto;
    left: auto;
    width: auto;
    transform: none;
    padding: 0;
    transition: none;
}

@media (max-width: 992px) {
    #atc02.phase2 .s2-story {
        position: static;
        width: auto;
        transform: none;
        text-align: left;
        padding: 0 20px;
        display: block;  /* 모바일도 단일 컬럼 유지 */
    }
    #atc02.phase2 .section_bg_video {
        /* 모바일도 클립 제거 */
        clip-path: none;
    }
    /* 태블릿/모바일에서는 위치 이동 비활성화 */
    #atc02.clip-animation .s2-left {
        transform: none;
    }
    /* 태블릿에서는 제품명 가로 유지 (992px에서 한 줄로) */
    #atc02.clip-animation .s2-products {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* 줄바꿈 방지 */
        gap: clamp(4px, 1vw, 8px);
        justify-content: center;
    }
}

/* 반응형 */
@media (max-width: 992px) {
    .s2-content {
        gap: 32px;
        left: 0; /* 모바일에서는 원위치 */
        top: 0;  /* 모바일에서는 원위치 */
        min-height: 60vh;
        padding: 80px 40px; /* 패딩 조정으로 위치 안정화 */
        margin-top: 0; /* 추가 마진 제거 */
    }
    .s2-title { font-size: 34px; }
    .s2-product { font-size: 22px; }
}

@media (max-width: 768px) {
    .s2-content {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 20px 20px; /* 패딩 축소 */
        min-height: auto; /* 높이 자동으로 조정 */
        text-align: center;
        position: relative;
        z-index: 10; /* 카드보다 위에 표시 */
    }
    .s2-left, .s2-story { flex: 1 1 auto; max-width: 820px; }
    .s2-title { font-size: 24px; } /* 크기 축소 */
    .s2-product { font-size: 18px; } /* 크기 축소 */
    .s2-story { text-align: left; display: none; } /* 모바일에서 스토리 숨김 */
    
    /* 카드 섹션을 아래로 이동 */
    .s2-cards {
        margin-top: 20px; /* 텍스트와 간격 */
    }
}

/* =====================
   제품 상세 모달 스타일
   ===================== */
.s2-modal {
    position: fixed;
    inset: 0;
    z-index: 9999; /* 헤더 메뉴보다 높은 z-index */
    display: none;
}
 .s2-modal.preopen { display: block; } /* 1프레임 표시 후 is-open 부여로 페이드인 정상 동작 */
 .s2-modal.is-open { display: block; }
 
 .s2-modal__overlay {
     position: absolute;
     inset: 0;
     background: rgba(0,0,0,0.55);
     opacity: 0;
     transition: opacity .25s ease;
 }
 .s2-modal.is-open .s2-modal__overlay { opacity: 1; }
 
 .s2-modal__dialog {
     position: absolute;
     top: 50%; left: 50%;
     transform: translate(-50%, -50%) scale(0.96);
     width: 1100px;               /* 고정 너비 */
     height: 460px;               /* 고정 높이 */
     background: #fff;
     color: #222;
     border-radius: 14px;
     overflow: hidden;
     box-shadow: 0 20px 60px rgba(0,0,0,0.35);
     opacity: 0;
     transition: transform .25s ease, opacity .25s ease;
     display: grid;
     grid-template-columns: 500px 1fr; /* 좌측 이미지 500px, 우측 정보 */
     z-index: 10000; /* 헤더 메뉴보다 높은 z-index */
 }
 .s2-modal.is-open .s2-modal__dialog {
     transform: translate(-50%, -50%) scale(1);
     opacity: 1;
 }
 
 .s2-modal__image { background: #000; width: 500px; height: 460px; }
 .s2-modal__image img { display: block; width: 500px; height: 460px; object-fit: cover; }
 
 .s2-modal__body { padding: 22px 20px 24px; overflow: hidden; position: relative; background: #fff; }
 
 .s2-modal__actions { position: absolute; right: 18px; bottom: 12px; display: none; }
 
 .s2-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
 .s2-btn-primary { background: #2b77ff; color: #fff; border-color: #2b77ff; box-shadow: 0 4px 12px rgba(43,119,255,0.35); }
 .s2-btn-primary:hover { background: #1e66e6; border-color: #1e66e6; }
 
 .s2-modal__close {
     position: absolute;
     top: 8px; right: 10px;
     width: 36px; height: 36px;
     border: none; border-radius: 50%;
     background: rgba(0,0,0,0.55);
     color: #fff; font-size: 22px; font-weight: 700;
     cursor: pointer;
     z-index: 10001; /* 모달창 내에서도 최상위 */
 }
 .s2-modal__close:hover { background: rgba(0,0,0,0.7); }
 
@media (max-width: 768px) {
    .s2-modal__dialog { 
        grid-template-columns: 1fr; 
        width: 94vw; 
        height: auto; 
        max-height: 80vh; /* 최대 높이 제한 */
    }
    .s2-modal__image { 
        width: 100%; 
        height: 35vh; /* 이미지 높이 줄임: 46vh → 35vh */
    }
    .s2-modal__image img { 
        width: 100%; 
        height: 100%; 
    }
    .s2-modal__close {
        top: 12px; /* 위치 조정 */
        right: 14px; /* 위치 조정 */
        width: 40px; /* 크기 확대 */
        height: 40px; /* 크기 확대 */
        background: rgba(0,0,0,0.7); /* 더 진한 배경 */
        font-size: 24px; /* 폰트 크기 확대 */
        border: 2px solid rgba(255,255,255,0.3); /* 테두리 추가 */
    }
    .s2-modal__close:hover { 
        background: rgba(0,0,0,0.85); 
        border-color: rgba(255,255,255,0.5);
    }
    .s2-modal__body {
        padding: 16px 16px 20px; /* 패딩 축소: 22px → 16px */
        overflow-y: auto; /* 스크롤 추가 */
        max-height: 45vh; /* 최대 높이 제한 */
    }
}
 
 .s2-modal__meta { color:#222; }
 .s2-meta__brand { font-size:25.2px; font-weight:800; margin:0 0 6px; letter-spacing:.01em; }
 .s2-meta__name { font-size:31.2px; font-weight:700; margin:0 0 14px; letter-spacing:.01em; }
 .s2-meta__rule { border:0; border-top:2px solid #ddd; margin:10px 0 14px; }
 .s2-meta__list { margin:0; padding:0; }
 .s2-meta__row { display:grid; grid-template-columns: 120px 1fr; gap:18px; align-items:start; padding:12px 0; }
 .s2-meta__row dt { margin:0; font-size:14px; color:#555; font-weight:700; }
 .s2-meta__row dd { margin:0; font-size:15px; color:#222; line-height: 1.7; }
 
 @media (max-width: 768px) {
   .s2-meta__row { grid-template-columns: 100px 1fr; gap:10px; }
   .s2-meta__name { font-size:22px; }
 }