/* =========================================================
   2026 천안이봉주마라톤대회 메인 페이지
   파일 위치 예시: /css/main/index.css
   index.php의 $pageCssList = ['main/index']; 로 호출
   ========================================================= */


/* ==================== 기존 STYLE BLOCK 1 ==================== */

:root {
    --ym-main-red: #e4002b;
    --ym-sub-red: #ff385c;
    --ym-dark-bg: #111111;
}

.ym-wrapper {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    word-break: keep-all;
    overflow-x: hidden;
    background-color: #fff;
}

/* 컨테이너 공통 규격 */
.ym-section {
    padding: 100px 0;
}

.ym-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .ym-section {
        padding: 60px 0;
    }
}

/* 공통 버튼 디자인 */
.ym-btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: var(--ym-main-red);
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
}

.ym-btn-primary:hover {
    background: #fff;
    color: var(--ym-main-red) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ym-btn-outline {
    display: inline-block;
    padding: 18px 45px;
    background: var(--ym-main-red);
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
}

.ym-btn-outline:hover {
    background: #fff;
    color: var(--ym-main-red) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===============================
   480px 이하 모바일 최적화
================================ */
@media (max-width: 480px) {
    .ym-section {
        padding: 50px 0 !important;
    }

    .ym-container {
        padding: 0 16px !important;
    }

    .ym-hero {
        height: 85vh;
    }

    .ym-hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .ym-hero-slogan {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .ym-btn-group {
        flex-direction: column;
    }

    #summary h2 {
        font-size: 1.9rem !important;
    }

    #summary .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .absolute.-bottom-6.-right-6 {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        display: block !important;
        margin-top: 15px;
        text-align: center;
    }

    .ym-card-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .ym-info-card {
        padding: 35px 20px !important;
    }

    .ym-info-card h4 {
        font-size: 1.2rem;
    }

    .media-section {
        padding: 60px 16px !important;
    }

    .media-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .ym-footer {
        padding: 50px 0 30px;
    }

    .ym-footer .flex {
        flex-direction: column !important;
        gap: 30px;
    }

    .ym-footer h2 {
        font-size: 1.6rem;
    }

    .ym-footer .grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* ===============================
   컬러 설정
================================ */
:root {
    --ym-primary-color: #ff3131;
    --ym-text-main: #ffffff;
    --ym-text-sub: #ffd700;
    --ym-overlay-dark: rgba(0, 0, 0, 0.5);
}

html,
body {
    overflow-x: hidden;
}

/* ===============================
   HERO 영역
================================ */
.ym-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 90vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.ym-video-container {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100vh;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.ym-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ym-hero-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--ym-overlay-dark)
    );
}

.ym-hero-content {
    position: relative;
    z-index: 3;
    color: var(--ym-text-main);
    text-align: center;
}

.ym-hero-slogan {
    margin-bottom: 1rem;
    color: var(--ym-text-sub) !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.ym-hero-title {
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.ym-highlight {
    color: #fff;
}

.ym-btn-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.ym-btn-primary,
.ym-btn-outline {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.ym-btn-primary,
.ym-btn-outline {
    color: #fff !important;
    background-color: var(--ym-primary-color);
}

/* ===============================
   공통 섹션
================================ */
.ym-section {
    padding: 100px 0;
}

.ym-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#summary img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===============================
   480px 이하 모바일 최적화
================================ */
@media (max-width: 480px) {
    .ym-section {
        padding: 60px 0;
    }

    .ym-container {
        padding: 0 16px;
    }

    .ym-hero {
        height: 85vh;
    }

    .ym-hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .ym-hero-slogan {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .ym-btn-outline {
        width: 100%;
        padding: 14px 0;
    }

    #summary h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    #summary .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    #summary img {
        border-radius: 16px;
        box-shadow: none !important;
    }

    .absolute.-bottom-6.-right-6 {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        display: block !important;
        margin-top: 15px;
        text-align: center;
    }

    #summary p.text-lg {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .ym-hero-title {
        font-size: 5rem;
    }

    .ym-btn-group {
        flex-direction: row;
    }

    .ym-hero-slogan {
        font-size: 1rem;
    }
}


/* ==================== 기존 STYLE BLOCK 2 ==================== */

/* ===============================
   퀵 버튼
================================ */
.ym-btn-section {
    position: relative;
    z-index: 10;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.ym-btn-grid {
    display: grid;
    width: 100%;
    max-width: 1240px;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 0 auto;
    padding: 0 20px;
}

.ym-final-btn {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #222 !important;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ym-final-btn:hover {
    border-color: var(--ym-main-red);
    color: #fff !important;
    background-color: var(--ym-main-red);
    transform: translateY(-4px);
}

@media (max-width: 1023px) {
    .ym-btn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .ym-btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* ==================== 기존 STYLE BLOCK 3 ==================== */

/* =========================================================
   영상 및 상단 퀵 버튼 아래 전용 리뉴얼 스타일
   ========================================================= */
:root {
    --cj-red: #e4002b;
    --cj-red-dark: #b80022;
    --cj-black: #151515;
    --cj-charcoal: #242424;
    --cj-gray-700: #5e6268;
    --cj-gray-500: #8e9297;
    --cj-gray-300: #d8dadd;
    --cj-gray-200: #e9eaec;
    --cj-gray-100: #f5f5f3;
    --cj-cream: #f8f6f1;
    --cj-white: #fff;
    --cj-yellow: #ffd64d;
    --cj-max: 1240px;
    --cj-radius-lg: 28px;
    --cj-radius-md: 18px;
    --cj-radius-sm: 12px;
}

.cb-main,
.cb-main * {
    box-sizing: border-box;
}

.cb-main {
    color: var(--cj-black);
    background: var(--cj-white);
    font-family:
        Pretendard,
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        "Malgun Gothic",
        sans-serif;
    word-break: keep-all;
}

.cb-main img {
    display: block;
    max-width: 100%;
}

.cb-main a {
    color: inherit;
    text-decoration: none;
}

.cb-container {
    width: min(calc(100% - 40px), var(--cj-max));
    margin: 0 auto;
}

.cb-section {
    padding: 110px 0;
}

.cb-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--cj-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cb-kicker::before {
    width: 30px;
    height: 3px;
    background: var(--cj-red);
    content: "";
}

.cb-title {
    margin: 0;
    color: var(--cj-black);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.cb-title em {
    color: var(--cj-red);
    font-style: normal;
}

.cb-copy {
    margin: 0;
    color: var(--cj-gray-700);
    font-size: 16px;
    line-height: 1.95;
}

.cb-link-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 999px;
    color: var(--cj-white) !important;
    background: var(--cj-black);
    font-size: 14px;
    font-weight: 900;
}

.cb-link-button:hover {
    background: var(--cj-red);
}

/* =========================================================
   대회 개요
========================================================= */
.cb-overview {
    overflow: hidden;
    background: var(--cj-cream);
}

.cb-overview-head {
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(340px, 0.55fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 58px;
}

.cb-overview-lead {
    padding-bottom: 6px;
}

.cb-overview-body {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, 0.95fr);
    gap: 20px;
}

.cb-overview-visual {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: var(--cj-radius-lg);
    background: #ddd;
}

.cb-overview-visual img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
}

.cb-overview-date {
    position: absolute;
    right: 24px;
    bottom: 24px;
    min-width: 210px;
    padding: 24px;
    border-radius: 20px;
    color: var(--cj-white);
    background: var(--cj-red);
}

.cb-overview-date small {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.cb-overview-date strong {
    display: block;
    font-size: 39px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
}

.cb-overview-date span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
}

.cb-overview-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.cb-overview-message {
    padding: 34px;
    border-radius: var(--cj-radius-lg);
    background: var(--cj-white);
}

.cb-overview-message h3 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.cb-overview-message p {
    margin: 0;
    color: var(--cj-gray-700);
    font-size: 15px;
    line-height: 1.9;
}

.cb-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    border-top: 1px solid var(--cj-gray-300);
    border-left: 1px solid var(--cj-gray-300);
    border-radius: var(--cj-radius-lg);
    background: var(--cj-white);
}

.cb-fact-item {
    min-height: 150px;
    padding: 24px;
    border-right: 1px solid var(--cj-gray-300);
    border-bottom: 1px solid var(--cj-gray-300);
}

.cb-fact-label {
    display: block;
    margin-bottom: 12px;
    color: var(--cj-gray-500);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.cb-fact-value {
    color: var(--cj-black);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.5;
}

.cb-fact-value.cb-red {
    color: var(--cj-red);
}

/* =========================================================
   기념품
========================================================= */
.cb-gifts {
    background: var(--cj-black);
}

.cb-gifts-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.cb-gifts .cb-kicker {
    color: var(--cj-yellow);
}

.cb-gifts .cb-kicker::before {
    background: var(--cj-yellow);
}

.cb-gifts .cb-title {
    color: var(--cj-white);
}

.cb-gifts-note {
    max-width: 430px;
    margin: 0;
    color: #b6b7ba;
    font-size: 15px;
    line-height: 1.8;
}

.cb-gift-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cb-gift-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    border-radius: var(--cj-radius-lg);
    background: var(--cj-charcoal);
}

.cb-gift-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 831px;
    overflow: hidden;
    aspect-ratio: 1200 / 831;
    background: #efefef;
}

.cb-gift-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cb-gift-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
}

.cb-gift-info h3 {
    margin: 0;
    color: var(--cj-white);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.cb-gift-info p {
    margin: 7px 0 0;
    color: #aeb0b4;
    font-size: 13px;
}

.cb-gift-button {
    display: inline-flex;
    min-width: 124px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--cj-black) !important;
    background: var(--cj-white);
    font-size: 13px;
    font-weight: 900;
}

.cb-gift-button:hover {
    background: var(--cj-yellow);
}

/* =========================================================
   필수 정보
========================================================= */
.cb-guide {
    background: var(--cj-white);
}

.cb-guide-head {
    display: grid;
    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(300px, 0.5fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 55px;
}

.cb-guide-list {
    border-top: 2px solid var(--cj-black);
}

.cb-guide-item {
    display: grid;
    grid-template-columns:
        120px
        minmax(230px, 0.45fr)
        minmax(0, 1fr)
        130px;
    min-height: 170px;
    align-items: center;
    gap: 30px;
    padding: 28px 8px;
    border-bottom: 1px solid var(--cj-gray-300);
}

.cb-guide-number {
    color: var(--cj-red);
    font-size: 50px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.055em;
}

.cb-guide-name {
    margin: 0;
    color: var(--cj-black);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.cb-guide-description {
    margin: 0;
    color: var(--cj-gray-700);
    font-size: 15px;
    line-height: 1.85;
}

.cb-guide-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cj-gray-300);
    border-radius: 999px;
    color: var(--cj-black);
    font-size: 13px;
    font-weight: 900;
}

.cb-guide-link:hover {
    border-color: var(--cj-red);
    color: var(--cj-white);
    background: var(--cj-red);
}

/* =========================================================
   FAQ
========================================================= */
.cb-faq {
    background: var(--cj-gray-100);
}

.cb-faq-head {
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: center;
}

.cb-faq-head .cb-kicker {
    justify-content: center;
}

.cb-faq-head .cb-copy {
    margin-top: 22px;
}

.cb-faq-body .marathonfaq {
    padding-top: 44px !important;
    padding-bottom: 0 !important;
}

.cb-faq-body .marathonfaq_title {
    display: none !important;
}

/* =========================================================
   미디어
========================================================= */
.cb-media {
    background: var(--cj-cream);
}

.cb-media-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.cb-media-note {
    color: var(--cj-gray-700);
    font-size: 14px;
    font-weight: 700;
}

/*
PC에서는 유튜브 3개가 가로 한 줄로 배치됩니다.
*/
.cb-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.cb-media-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cj-gray-300);
    border-radius: var(--cj-radius-md);
    background: var(--cj-white);
}

.cb-media-thumb {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.cb-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-media-play {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: var(--cj-white);
    background: var(--cj-red);
    font-size: 14px;
}

.cb-media-info {
    display: flex;
    min-height: 132px;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
}

.cb-media-tag {
    display: block;
    margin-bottom: 8px;
    color: var(--cj-red);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.cb-media-info h3 {
    margin: 0;
    color: var(--cj-black);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.45;
    letter-spacing: -0.035em;
}

/* =========================================================
   SNS
========================================================= */
.cb-sns {
    background: var(--cj-white);
}

.cb-sns-head {
    margin-bottom: 42px;
    text-align: center;
}

.cb-sns-head .cb-kicker {
    justify-content: center;
}

.cb-sns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cb-sns-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--cj-gray-300);
    border-radius: var(--cj-radius-lg);
    background: var(--cj-gray-100);
}

.cb-sns-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.cb-sns-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--cj-white);
    background: #1877f2;
    font-size: 22px;
    font-weight: 950;
}

.cb-sns-label h3 {
    margin: 0;
    color: var(--cj-black);
    font-size: 18px;
    font-weight: 950;
}

.cb-sns-label p {
    margin: 3px 0 0;
    color: var(--cj-gray-500);
    font-size: 12px;
}

.cb-facebook-box {
    display: flex;
    min-height: 350px;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: var(--cj-white);
}

.cb-main *,
.cb-main *::before,
.cb-main *::after {
    animation: none !important;
    transition-duration: 0.12s !important;
}

/* =========================================================
   반응형
========================================================= */
@media (max-width: 1024px) {
    .cb-overview-head,
    .cb-guide-head {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cb-overview-body {
        grid-template-columns: 1fr;
    }

    .cb-overview-visual,
    .cb-overview-visual img {
        min-height: 540px;
    }

    .cb-guide-item {
        grid-template-columns:
            90px
            minmax(190px, 0.45fr)
            minmax(0, 1fr);
    }

    .cb-guide-link {
        grid-column: 2 / 4;
        min-width: 140px;
        justify-self: start;
    }

    .cb-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cb-container {
        width: min(calc(100% - 30px), var(--cj-max));
    }

    .cb-section {
        padding: 76px 0;
    }

    .cb-overview-head {
        margin-bottom: 38px;
    }

    .cb-title {
        font-size: 43px;
    }

    .cb-overview-visual,
    .cb-overview-visual img {
        min-height: 430px;
    }

    .cb-overview-date {
        right: 14px;
        bottom: 14px;
        min-width: 184px;
        padding: 20px;
    }

    .cb-overview-date strong {
        font-size: 34px;
    }

    .cb-overview-message {
        padding: 26px;
    }

    .cb-fact-grid {
        grid-template-columns: 1fr;
    }

    .cb-fact-item {
        min-height: auto;
    }

    .cb-gifts-head,
    .cb-media-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cb-gift-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .cb-gift-card {
        border-radius: 20px;
    }

    .cb-gift-image {
        max-height: none;
    }

    .cb-gift-button {
        width: 100%;
    }

    .cb-guide-item {
        grid-template-columns: 62px 1fr;
        min-height: auto;
        gap: 18px;
        padding: 26px 0;
    }

    .cb-guide-number {
        grid-row: 1 / 4;
        font-size: 37px;
    }

    .cb-guide-name,
    .cb-guide-description,
    .cb-guide-link {
        grid-column: 2;
    }

    .cb-guide-link {
        justify-self: stretch;
    }

    .cb-media-grid {
        grid-template-columns: 1fr;
    }

    .cb-media-info {
        min-height: auto;
    }

    .cb-sns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cb-section {
        padding: 62px 0;
    }

    .cb-title {
        font-size: 36px;
    }

    .cb-copy {
        font-size: 14px;
    }

    .cb-overview-visual,
    .cb-overview-visual img {
        min-height: 360px;
    }

    .cb-overview-message h3 {
        font-size: 23px;
    }

    .cb-gift-info h3 {
        font-size: 20px;
    }

    .cb-guide-name {
        font-size: 22px;
    }

    .cb-sns-card {
        padding: 16px;
        border-radius: 18px;
    }

    .cb-facebook-box {
        min-height: 150px;
    }
}

/* =========================================================
   팝업 및 페이지 스크롤 보정
========================================================= */

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body,
body.ym-wrapper {
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
}

/* 팝업이 모두 닫힌 상태 */
html:not(.popup-open),
body:not(.popup-open) {
    overflow-y: auto !important;
}

/* 실제 팝업이 열렸을 때만 배경 스크롤 차단 */
html.popup-open,
body.popup-open {
    overflow: hidden !important;
}

/* 팝업 내용이 화면보다 길면 팝업 내부 스크롤 */
section#popupWrap {
    max-height: calc(100dvh - 40px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

section#popupWrap > article {
    min-width: 0;
    min-height: 0;
}

@media (max-width: 768px) {
    section#popupWrap {
        top: 16px !important;
        bottom: 16px;
        width: calc(100% - 24px) !important;
        height: auto !important;
        max-height: calc(100dvh - 32px);
        margin: 0 12px !important;
        overflow-y: auto !important;
    }
}