@charset "utf-8";

/* 팝업레이어 — 관리자 px 기준, 미디어쿼리별 % 축소 (--nw-scale) */

#hd_pop {
    --nw-scale: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 10100;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

#hd_pop h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hd_pops {
    position: fixed;
    left: calc(var(--nw-left, 10) * var(--nw-scale) * 1px);
    top: calc(var(--nw-top, 10) * var(--nw-scale) * 1px);
    width: calc(var(--nw-width, 450) * var(--nw-scale) * 1px);
    max-width: calc(100vw - 20px);
    border: 1px solid #e9e9e9;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    z-index: calc(10101 + var(--nw-stack, 0));
    pointer-events: auto;
}

.hd_pops_con {
    width: 100%;
    height: calc(var(--nw-height, 500) * var(--nw-scale) * 1px);
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
}

.hd_pops_con > * {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.hd_pops_con p {
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hd_pops_con img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hd_pops_footer {
    padding: 0;
    background: #000;
    color: #fff;
    text-align: left;
    position: relative;
}

.hd_pops_footer button {
    padding: 10px;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hd_pops_footer .hd_pops_reject {
    background: #000;
    text-align: left;
}

.hd_pops_footer .hd_pops_close {
    background: #393939;
    position: absolute;
    top: 0;
    right: 0;
}

/* PC·태블릿 — 기준 대비 % 축소 */
@media (max-width: 1600px) {
    #hd_pop {
        --nw-scale: 0.92;
    }
}

@media (max-width: 1400px) {
    #hd_pop {
        --nw-scale: 0.85;
    }
}

@media (max-width: 1200px) {
    #hd_pop {
        --nw-scale: 0.78;
    }
}

@media (max-width: 992px) {
    #hd_pop {
        --nw-scale: 0.72;
    }
}

/* 모바일 — 화면 가운데, 팝업 겹침 */
@media (max-width: 770px) {
    #hd_pop {
        --nw-scale: 0.88;
    }

    .hd_pops {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        width: min(calc(var(--nw-width, 450) * var(--nw-scale) * 1px), calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

    .hd_pops_con {
        height: calc(var(--nw-height, 500) * var(--nw-scale) * 1px);
        max-height: calc(100vh - 100px);
    }

    .hd_pops_footer {
        padding: 10px 0;
        text-align: right;
    }

    .hd_pops_footer button {
        margin-right: 5px;
        padding: 5px 10px;
    }

    .hd_pops_footer .hd_pops_close {
        position: static;
    }
}
