@charset "utf-8";

/* 봄온담 — 통합 팝업 (좌 세로 이미지 · 우 제목 목록) */
html.syou-root body.syou-layout > #hd_pop.syou-hd-pop {
    --syou-pop-tab-accent: #4a6274;
    --syou-pop-tab-accent-light: #eef2f5;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: auto !important;
}

html.syou-root body.syou-layout .syou-hd-pop--empty {
    display: none !important;
}

html.syou-root body.syou-layout > #hd_pop.syou-hd-pop.is-hidden {
    display: none !important;
}

html.syou-root body.syou-layout .syou-hd-pop__dim {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.55);
}

html.syou-root body.syou-layout .syou-hd-pops {
    position: relative !important;
    z-index: 2;
    top: auto !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: min(92vh, 820px);
    margin: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    pointer-events: auto !important;
}

html.syou-root body.syou-layout .syou-hd-pops__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

html.syou-root body.syou-layout .syou-hd-pops__visual {
    position: relative;
    flex: 1 1 68%;
    min-width: 0;
    min-height: 280px;
    background: #f7f7f7;
    overflow: hidden;
}

html.syou-root body.syou-layout .syou-hd-pops__panel {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease;
    overflow: hidden;
}

html.syou-root body.syou-layout .syou-hd-pops__panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

html.syou-root body.syou-layout .syou-hd-pops__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

html.syou-root body.syou-layout .syou-hd-pops__content p {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.syou-root body.syou-layout .syou-hd-pops__content a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

html.syou-root body.syou-layout .syou-hd-pops__content img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    vertical-align: top;
}

html.syou-root body.syou-layout .syou-hd-pops__nav {
    flex: 0 0 32%;
    max-width: 300px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-left: 1px solid #e5e5e5;
    background: #fafafa;
}

html.syou-root body.syou-layout .syou-hd-pops__nav-label {
    margin: 0;
    padding: 14px 16px;
    background: var(--syou-primary, #6bab94);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    letter-spacing: -0.02em;
}

html.syou-root body.syou-layout .syou-hd-pops__list {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.syou-root body.syou-layout .syou-hd-pops__item {
    border-bottom: 1px solid #ececec;
}

html.syou-root body.syou-layout .syou-hd-pops__tab {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: #fafafa;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

html.syou-root body.syou-layout .syou-hd-pops__tab:hover,
html.syou-root body.syou-layout .syou-hd-pops__tab:focus {
    background: var(--syou-pop-tab-accent-light, #eef2f5);
    color: #222;
    outline: none;
}

html.syou-root body.syou-layout .syou-hd-pops__tab.is-active {
    background: #fff;
    color: var(--syou-pop-tab-accent, #4a6274);
    box-shadow: inset 3px 0 0 var(--syou-pop-tab-accent, #4a6274);
}

html.syou-root body.syou-layout .syou-hd-pops__tab-text {
    display: block;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

html.syou-root body.syou-layout .syou-hd-pops__footer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 0 !important;
    background: #fff !important;
    border-top: 1px solid #e5e5e5;
    position: relative !important;
    z-index: 3;
    pointer-events: auto !important;
}

html.syou-root body.syou-layout .syou-hd-pops__footer button {
    pointer-events: auto !important;
}

html.syou-root body.syou-layout .hd_pops_footer .hd_pops_close {
    position: static !important;
    top: auto !important;
    right: auto !important;
}

html.syou-root body.syou-layout .syou-hd-pops__reject {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 16px !important;
    border: 0;
    background: #fff !important;
    color: #666 !important;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

html.syou-root body.syou-layout .syou-hd-pops__reject-icon {
    flex: 0 0 auto;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    pointer-events: none;
}

html.syou-root body.syou-layout .syou-hd-pops__reject.is-checked .syou-hd-pops__reject-icon,
html.syou-root body.syou-layout .syou-hd-pops__reject:active .syou-hd-pops__reject-icon {
    border-color: var(--syou-primary, #6bab94);
    background: var(--syou-primary, #6bab94);
}

html.syou-root body.syou-layout .syou-hd-pops__reject.is-checked .syou-hd-pops__reject-icon::after,
html.syou-root body.syou-layout .syou-hd-pops__reject:active .syou-hd-pops__reject-icon::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

html.syou-root body.syou-layout .syou-hd-pops__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 20px !important;
    border: 0;
    border-left: 1px solid #e5e5e5;
    background: #222 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    position: static !important;
    top: auto !important;
    right: auto !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

html.syou-root body.syou-layout .syou-hd-pops__close-icon {
    font-size: 18px;
    line-height: 1;
}

/* 팝업 열림: 배경(메인) 스크롤 잠금 · 팝업 레이어에서만 스크롤 */
html.syou-hd-pop-open,
html.syou-hd-pop-open body {
    overflow: hidden !important;
    height: 100%;
}

html.syou-hd-pop-open body.syou-layout {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

html.syou-hd-pop-open #hd_pop.syou-hd-pop:not(.is-hidden) {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-items: flex-start;
    justify-content: center;
}

/* 모바일: 이미지 전체 노출 · 팝업 내부 스크롤 */
body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__body {
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops {
    width: min(100%, 420px);
    max-height: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin: auto 0;
    overflow: visible;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__visual {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    border-bottom: 1px solid #e5e5e5;
    overflow: visible;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__panel.is-active {
    position: relative;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__content,
body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__content p,
body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__content a {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__content img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    vertical-align: top;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__nav {
    flex: 0 0 auto;
    order: 2;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-left: 0;
    border-top: 0;
    max-height: none;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__item {
    border-bottom: 1px solid #ececec;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__item:nth-child(odd) {
    border-right: 1px solid #ececec;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__tab {
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-height: 48px;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__tab-text {
    text-align: center;
}

body.syou-layout.is-mobile-view #hd_pop.syou-hd-pop .syou-hd-pops__tab.is-active {
    box-shadow: inset 0 3px 0 var(--syou-pop-tab-accent, #4a6274);
}

@media (max-width: 740px) {
    html.syou-root body.syou-layout #hd_pop.syou-hd-pop {
        padding: 10px;
        align-items: flex-start;
        justify-content: center;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__body {
        flex-direction: column;
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops {
        width: min(100%, 420px);
        max-height: none;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        margin: auto 0;
        overflow: visible;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__visual {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        border-bottom: 1px solid #e5e5e5;
        overflow: visible;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        overflow: visible;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__panel.is-active {
        position: relative;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__content,
    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__content p,
    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__content a {
        display: block;
        width: 100%;
        height: auto;
        line-height: 0;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__content img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
        vertical-align: top;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__nav {
        flex: 0 0 auto;
        order: 2;
        width: 100%;
        max-width: none;
        min-width: 0;
        border-left: 0;
        border-top: 0;
        max-height: none;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__item:nth-child(odd) {
        border-right: 1px solid #ececec;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__tab {
        padding: 12px 10px;
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        min-height: 48px;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__tab-text {
        text-align: center;
    }

    html.syou-root body.syou-layout #hd_pop.syou-hd-pop .syou-hd-pops__tab.is-active {
        box-shadow: inset 0 3px 0 var(--syou-pop-tab-accent, #4a6274);
    }
}

/* PC: 이미지 전체 노출 · 스크롤 없음 · 가로 꽉 참 · 활성 이미지 높이만 사용 */
html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops {
    max-height: 94vh;
    overflow: visible;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__body {
    overflow: visible;
    align-items: flex-start;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__visual {
    display: block;
    position: relative;
    flex: 1 1 68%;
    min-height: 0;
    overflow: hidden;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__panel.is-active {
    position: relative;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__content,
html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__content p,
html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__content a {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) #hd_pop.syou-hd-pop .syou-hd-pops__content img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: initial;
    vertical-align: top;
}
