/* ═══ 교회사진 — 그리드/업로드/뷰어 (모바일 photos.html + PC 사이드바 공용) ═══ */

/* 업로드 버튼 줄 */
.ph-toolbar{
    display: flex;
    justify-content: center;
    margin: 0 0 10px;
}
.ph-upload-btn{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #1785BE;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(23,133,190,.35);
}
.ph-upload-btn:active{
    transform: scale(.97);
}

/* 사진 그리드 — 3열 정사각 */
.ph-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.ph-cell{
    position: relative;
    padding-top: 100%;
    border-radius: 8px;
    background-color: #eceef2;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}
.ph-cell:active{
    opacity: .85;
}
.ph-empty{
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: #a6acb8;
    line-height: 1.6;
}
.ph-empty i{
    font-size: 30px;
}

/* 업로드 진행 오버레이 */
.ph-busy{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4100;
    display: none;
    background: rgba(15,20,30,.45);
}
.ph-busy-box{
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.ph-busy-box i{
    font-size: 26px;
    color: #3d7ff0;
}
.ph-busy-box p{
    margin: 0;
    font-size: 13px;
    color: #333;
}

/* 사진 뷰어 (라이트박스) */
.ph-viewer{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4000;
    display: none;
    background: rgba(10,12,18,.92);
}
.ph-viewer.on{
    display: block;
}
.ph-viewer img{
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    max-width: 94vw;
    max-height: 86vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.phv-close{
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 2;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}
.phv-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff !important;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none !important;
}
.phv-prev{ left: 12px; }
.phv-next{ right: 12px; }
.phv-cnt{
    position: absolute;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 0; right: 0;
    margin: 0;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

/* 뷰어 — 삭제 버튼 (권한자만 표시) */
.phv-del{
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,80,80,.85);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* 더보기 (그리드 하단 — 스크롤 도달 시 자동 로드) */
.ph-more{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 0;
    border-radius: 12px;
    background: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 600;
    color: #4a515e !important;
    cursor: pointer;
    text-decoration: none !important;
}

/* 모바일 페이지(블러 배경) — 빈 상태 안내 흰색 */
body.info-page .ph-empty{
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
body.info-page .ph-empty i{
    color: rgba(255,255,255,.85);
}

/* 뷰어 좌우 버튼 리플 — absolute 유지, 어두운 배경이라 흰 리플 */
.phv-nav{
    overflow: hidden;
}
.phv-nav .ripple-ink{
    background: rgba(255,255,255,.35);
}


/* 비로그인 안내 — 방명록과 동일 문구/모양 (흰색) */
.gb-login-notice{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 0;
    font-size: 12px;
    color: #fff;
}
.gb-login-notice i{
    font-size: 13px;
}
.gb-login-notice a{
    color: #3d7ff0 !important;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
}
