/* 레이어 팝업 오버레이 */
.sb-popup-layer {
    position: fixed;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
    max-width: 100vw;
}

.sb-popup-layer__body {
    display: block;
}

.sb-popup-layer__body img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* 하단 컨트롤바: 닫기 + 오늘 하루 보지 않기
   테마 반전 색상: 배경=글자색, 글자=배경색 변수를 사용해 테마와 대비되게 표시.
   (다크 테마=밝은 푸터/어두운 글자, 라이트 테마=어두운 푸터/밝은 글자) */
.sb-popup-layer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--color-text, #1a1a1a);
    color: var(--color-bg, #ffffff);
    font-size: 13px;
}

.sb-popup-layer__hide-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.sb-popup-layer__close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-bg, #ffffff);
}

/* 모바일(휴대폰): 좌표 무시, 화면 중앙 고정 + 가로 폭 맞춤 */
@media (max-width: 768px) {
    .sb-popup-layer {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px) !important;
        max-width: 420px;
        height: auto !important;
    }
}
