@charset "utf-8";

/* 메인 화면 공지 팝업 (reev 공지팝업 스타일 · 이미지 1개) */
.main_popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.main_popup_dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.main_popup_box {
    position: relative;
    display: flex;
    flex-direction: column;
    /* reev 공지팝업 PC 크기(450 x 510)에서 15% · 5% 를 차례로 늘린 값 */
    width: 544px;
    height: 616px;
    max-width: 95vw;
    max-height: 95vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.main_popup_figure {
    /* 팝업 상자에서 하단 버튼 영역을 뺀 나머지를 이미지가 채웁니다 */
    flex: 1 1 auto;
    min-height: 0;
    background: #e5e7eb;
    overflow: hidden;
}

.main_popup_figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.main_popup_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main_popup_foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.main_popup_foot button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.main_popup_foot button:hover {
    color: #111827;
}

.main_popup_foot .main_popup_close {
    margin-left: auto;
    font-weight: 500;
}

.main_popup_foot .main_popup_close svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .main_popup_box {
        /* reev 공지팝업 모바일 크기(338 x 383)에서 가로 · 세로를 각각 5% 늘린 값 */
        width: 355px;
        height: 402px;
        max-width: 92vw;
        max-height: 92vh;
    }
}
