/* =====================================================
   GRACE ACADEMY v0.94
   MEMBER AREA STYLE
===================================================== */


/* =====================================================
   MEMBER THEME
===================================================== */

body.member-page,
body.member-gallery-page,
body.member-album-page{
    background:#f4f6f8;
}


/* =====================================================
   MEMBER HEADER
===================================================== */

.member-header{
    position:sticky;
    top:0;
    z-index:2800;

    background:#ffffff;
}

.member-nav a:hover,
.member-nav a.active,
.member-nav a[aria-current="page"]{
    color:var(--member-primary);
}

.member-nav .member-logout-btn{
    border:0;
    cursor:pointer;
}


/* =====================================================
   MEMBER DASHBOARD
===================================================== */

.member-dashboard{
    width:100%;
    max-width:1200px;

    margin:50px auto 80px;
    padding:0 20px;
}


/* =====================================================
   WELCOME
===================================================== */

.member-welcome{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:40px;

    margin-bottom:40px;
    padding:45px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        var(--member-primary),
        var(--member-primary-light)
    );

    color:#ffffff;

    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.member-eyebrow{
    display:block;

    margin-bottom:12px;

    font-size:13px;
    letter-spacing:2px;

    opacity:.8;
}

.member-welcome h1{
    margin:0;

    color:#ffffff;
    font-size:38px;
    line-height:1.35;
    text-align:left;
}

.member-welcome p{
    margin:15px 0 0;

    color:#ffffff;
    line-height:1.8;
    text-align:left;
}

.member-welcome-badge{
    display:flex;
    justify-content:center;
    align-items:center;

    flex:0 0 120px;

    width:120px;
    height:120px;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    font-size:42px;
    font-weight:700;
}


/* =====================================================
   MEMBER SECTION
===================================================== */

.member-section{
    margin-bottom:35px;
    padding:30px;

    border-radius:18px;

    background:#ffffff;

    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.member-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    margin-bottom:25px;
}

.member-section-label{
    font-size:12px;
    letter-spacing:2px;

    color:#777777;

    text-transform:uppercase;
}

.member-section h2{
    margin:6px 0 0;

    color:var(--member-primary);
    font-size:30px;
    text-align:left;
}

.member-section-description{
    margin:10px 0 0;

    color:#666666;
    font-size:15px;
    text-align:left;
}

.member-more-link{
    flex-shrink:0;

    color:var(--member-primary);

    font-weight:700;
    text-decoration:none;
}

.member-more-link:hover{
    text-decoration:underline;
}

.member-empty-message{
    padding:25px 0;

    color:#777777;
    text-align:center;
}


/* =====================================================
   QUICK MENU
===================================================== */

.member-quick-grid{
    display:grid;

    grid-template-columns:repeat(
        auto-fit,
        minmax(220px,1fr)
    );

    gap:20px;
}

.member-quick-card{
    display:flex;
    align-items:center;

    gap:18px;

    padding:25px;

    border:1px solid #e5e5e5;
    border-radius:15px;

    color:#333333;
    text-decoration:none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.member-quick-card:hover{
    transform:translateY(-4px);

    border-color:var(--member-primary);

    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.member-quick-icon{
    flex-shrink:0;

    font-size:34px;
}

.member-quick-card h3{
    margin:0 0 8px;

    color:var(--member-primary);
    font-size:19px;
    text-align:left;
}

.member-quick-card p{
    margin:0;

    color:#666666;
    font-size:14px;
    line-height:1.6;
    text-align:left;
}


/* =====================================================
   NOTICE + CALENDAR
===================================================== */

.member-info-grid{
    display:grid;

    grid-template-columns:minmax(0,1fr) minmax(0,1fr);

    gap:30px;

    margin-bottom:35px;
}

.member-notice-list,
.member-calendar-list{
    margin:0;
    padding:0;

    list-style:none;
}

.member-notice-item,
.member-calendar-item{
    padding:18px 0;

    border-bottom:1px solid #eeeeee;
}

.member-notice-item:last-child,
.member-calendar-item:last-child{
    border-bottom:0;
}


/* =====================================================
   NOTICE
===================================================== */

.member-notice-item a{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    color:#333333;
    text-decoration:none;
}

.member-notice-item a:hover strong{
    color:var(--member-primary);
}

.member-notice-content{
    min-width:0;
}

.member-notice-item strong{
    display:block;

    margin-top:6px;

    font-size:15px;
    line-height:1.5;

    transition:color .2s ease;
}

.member-notice-category{
    color:var(--member-primary);

    font-size:12px;
    font-weight:700;
}

.member-notice-item time{
    flex-shrink:0;

    color:#888888;
    font-size:13px;
}


/* =====================================================
   CALENDAR
===================================================== */

.member-calendar-item{
    display:flex;
    align-items:center;

    gap:18px;
}

.member-calendar-date{
    flex-shrink:0;

    min-width:70px;
    padding:10px;

    border-radius:12px;

    background:#f4f7ff;

    text-align:center;
}

.member-calendar-date span{
    display:block;

    color:#667085;
    font-size:12px;
}

.member-calendar-date strong{
    display:block;

    color:var(--member-primary);

    font-size:28px;
    line-height:1.2;
}

.member-calendar-content{
    min-width:0;
}

.member-calendar-day{
    color:#777777;
    font-size:12px;
}

.member-calendar-content h3{
    margin:4px 0 5px;

    color:#333333;
    font-size:17px;
    text-align:left;
}

.member-calendar-content p{
    margin:0;

    color:#666666;
    font-size:14px;
    line-height:1.55;
    text-align:left;
}


/* =====================================================
   DASHBOARD GALLERY
===================================================== */

.member-gallery-grid{
    display:grid;

    grid-template-columns:repeat(
        auto-fit,
        minmax(280px,1fr)
    );

    gap:25px;
}

.member-gallery-card{
    overflow:hidden;

    border-radius:18px;

    background:#ffffff;

    box-shadow:0 8px 18px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.member-gallery-card:hover{
    transform:translateY(-5px);

    box-shadow:0 14px 26px rgba(0,0,0,.13);
}

.member-gallery-image{
    position:relative;
    overflow:hidden;
}

.member-gallery-image img{
    display:block;

    width:100%;
    max-width:none;
    height:220px;

    margin:0;

    border-radius:0;

    object-fit:cover;

    transition:transform .3s ease;
}

.member-gallery-card:hover .member-gallery-image img{
    transform:scale(1.03);
}

.member-gallery-content{
    padding:20px;
}

.member-gallery-content h3{
    margin:8px 0 12px;

    color:#333333;
    font-size:19px;
    text-align:left;
}

.member-gallery-content p{
    margin:0;

    color:#666666;
    font-size:14px;
    line-height:1.65;
    text-align:left;
}

.member-gallery-category{
    color:var(--member-primary);

    font-size:13px;
    font-weight:700;
}

.member-visibility-badge{
    position:absolute;
    top:12px;
    right:12px;

    padding:5px 10px;

    border-radius:30px;

    background:var(--member-primary);
    color:#ffffff;

    font-size:12px;
}


/* =====================================================
   MEMBER PROFILE
===================================================== */

.member-profile-section{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:30px;
}

.member-profile-content{
    flex:1;
}

.member-profile-content h2{
    text-align:left;
}

.member-profile-content p{
    margin:15px 0 0;

    color:#555555;
    line-height:1.75;
    text-align:left;
}


/* =====================================================
   MEMBER BUTTON THEME
===================================================== */

.member-page .admission-btn,
.member-gallery-page .admission-btn,
.member-album-page .admission-btn{
    background:var(--member-primary);
}

.member-page .admission-btn:hover,
.member-gallery-page .admission-btn:hover,
.member-album-page .admission-btn:hover{
    background:var(--member-primary-dark);
}


/* =====================================================
   MEMBER GALLERY PAGE
===================================================== */

body.member-gallery-page .member-main{
    width:100%;

    padding:50px 24px 80px;
}

body.member-gallery-page .member-album-section{
    width:100%;
    max-width:1180px;

    margin:0 auto;
}


/* 상단 안내 */

body.member-gallery-page .member-page-heading{
    margin-bottom:28px;
    padding:28px 30px;

    border-radius:16px;

    background:#ffffff;

    box-shadow:0 8px 22px rgba(20,45,70,.08);

    text-align:left;
}

body.member-gallery-page .member-page-heading h1{
    margin:0 0 12px;

    color:#173b63;

    font-size:clamp(34px,5vw,46px);
    line-height:1.25;
}

body.member-gallery-page .member-page-heading > p{
    margin:0;

    color:#ffffff;
    font-size:16px;
    line-height:1.7;
    text-align:left;
}


/* 필터 */

body.member-gallery-page .member-gallery-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    margin-bottom:28px;
}

body.member-gallery-page .member-gallery-filter{
    display:flex;
    flex-wrap:wrap;

    gap:10px;
}

body.member-gallery-page .member-gallery-filter button{
    padding:10px 16px;

    border:1px solid #d8e0e7;
    border-radius:999px;

    background:#ffffff;
    color:#445566;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

body.member-gallery-page .member-gallery-filter button:hover{
    transform:translateY(-1px);

    border-color:var(--member-primary);
    color:var(--member-primary);
}

body.member-gallery-page .member-gallery-filter button.active{
    border-color:var(--member-primary);

    background:var(--member-primary);
    color:#ffffff;
}

body.member-gallery-page .member-gallery-year{
    min-width:120px;
    padding:10px 14px;

    border:1px solid #d8e0e7;
    border-radius:10px;

    background:#ffffff;
    color:#173b63;

    font-size:14px;
    font-weight:600;

    cursor:pointer;
}


/* 앨범 카드 */

body.member-gallery-page .member-album-grid{
    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:24px;
}

body.member-gallery-page .member-album-card{
    display:block;
    overflow:hidden;

    border-radius:16px;

    background:#ffffff;
    color:inherit;

    text-decoration:none;

    box-shadow:0 10px 24px rgba(20,45,70,.11);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

body.member-gallery-page .member-album-card:hover{
    transform:translateY(-5px);

    box-shadow:0 16px 32px rgba(20,45,70,.17);
}

body.member-gallery-page .member-album-cover{
    position:relative;
    overflow:hidden;

    aspect-ratio:4 / 3;

    background:#e9eef2;
}

body.member-gallery-page .member-album-cover img{
    display:block;

    width:100%;
    max-width:none;
    height:100%;

    margin:0;

    border-radius:0;

    object-fit:cover;

    transition:transform .35s ease;
}

body.member-gallery-page .member-album-card:hover
.member-album-cover img{
    transform:scale(1.04);
}

body.member-gallery-page .member-album-count{
    position:absolute;
    right:14px;
    bottom:14px;

    padding:7px 11px;

    border-radius:999px;

    background:rgba(10,25,38,.78);
    color:#ffffff;

    font-size:13px;
    font-weight:700;

    backdrop-filter:blur(4px);
}

body.member-gallery-page .member-album-info{
    padding:20px 22px 22px;

    text-align:left;
}

body.member-gallery-page .member-album-category{
    display:inline-block;

    margin-bottom:9px;

    color:#2c6594;

    font-size:13px;
    font-weight:700;
}

body.member-gallery-page .member-album-info h2{
    margin:0 0 10px;

    color:#173b63;

    font-size:21px;
    line-height:1.4;
    text-align:left;
}

body.member-gallery-page .member-album-info time{
    color:#6a7885;

    font-size:14px;
}


/* =====================================================
   MEMBER ALBUM PAGE
===================================================== */

body.member-album-page .member-main{
    display:block;

    width:100%;
    min-height:calc(100vh - 70px);
}

body.member-album-page .member-album-header{
    width:100%;
    max-width:1200px;

    margin:40px auto 30px;
    padding:0 20px;
}

body.member-album-page .album-back{
    display:inline-block;

    margin-bottom:20px;

    color:var(--member-primary);

    font-weight:700;
    text-decoration:none;

    transition:opacity .2s ease;
}

body.member-album-page .album-back:hover{
    opacity:.7;
}

body.member-album-page .member-album-header h1{
    margin:0;

    color:#1d3557;

    font-size:34px;
    line-height:1.3;
}

body.member-album-page .member-album-header p{
    margin:10px 0 0;

    color:#666666;
    font-size:16px;
    text-align:left;
}

body.member-album-page .member-photo-grid{
    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:24px;

    width:100%;
    max-width:1200px;

    margin:0 auto 80px;
    padding:0 20px;
}

body.member-album-page .member-photo-card{
    overflow:hidden;

    min-width:0;

    border-radius:16px;

    background:#ffffff;

    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

body.member-album-page .member-photo-card img{
    display:block;

    width:100%;
    max-width:none;
    height:auto;

    margin:0;

    aspect-ratio:4 / 3;
    border-radius:0;

    object-fit:cover;

    transition:transform .25s ease;
}

body.member-album-page .member-photo-card:hover img{
    transform:scale(1.05);
}


/* Protected gallery images and accessible full-size viewer. */
.gallery-card-link{display:block;text-decoration:none;color:inherit}
.protected-image{min-height:120px;position:relative}
.member-album-cover > .protected-image{height:100%}
.gallery-image-status{padding:24px;color:#667085;text-align:center}
.gallery-photo-button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.gallery-photo-button:disabled{cursor:default}
.gallery-photo-button:focus-visible{outline:3px solid #1768ac;outline-offset:-3px}
.gallery-photo-caption{margin:0;padding:14px 18px;line-height:1.6;color:#444}
.gallery-more-wrap{text-align:center;margin:0 auto 40px}
.photo-viewer{max-width:94vw;max-height:94vh;border:0;border-radius:12px;padding:18px}
.photo-viewer::backdrop{background:rgba(0,0,0,.8)}
.photo-viewer img{display:block;max-width:85vw;max-height:72vh;object-fit:contain;margin:14px auto}
.photo-viewer p{white-space:pre-wrap}
.member-album-card[hidden]{display:none!important}

/* Monthly calendar full-screen zoom viewer. */
.calendar-sheet-zoom-button{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.calendar-sheet-zoom-button img{display:block;width:100%;height:auto}
.calendar-sheet-zoom-button:focus-visible{outline:3px solid #1768ac;outline-offset:3px}
.calendar-sheet-zoom-hint{position:absolute;right:12px;bottom:12px;padding:8px 12px;border-radius:999px;background:rgba(10,35,55,.88);color:#fff;font-size:.9rem;font-weight:700;box-shadow:0 3px 10px rgba(0,0,0,.25)}
.calendar-viewer{width:min(1200px,96vw);height:min(94vh,1000px);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;background:#111;color:#fff;overflow:hidden}
.calendar-viewer::backdrop{background:rgba(0,0,0,.88)}
.calendar-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#17212b}
.calendar-viewer-header h2{margin:0;font-size:1rem;color:#fff}
.calendar-viewer button{min-width:44px;min-height:44px;border:1px solid #bac4ce;border-radius:7px;background:#fff;color:#17212b;font:inherit;font-weight:700;cursor:pointer}
.calendar-viewer-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;background:#202d38}
.calendar-viewer-controls output{min-width:64px;text-align:center;font-weight:700}
.calendar-viewer-help{margin:0;padding:7px 12px;background:#202d38;color:#e7edf2;text-align:center;font-size:.82rem}
.calendar-viewer-viewport{height:calc(100% - 137px);overflow:auto;overscroll-behavior:contain;touch-action:none;background:#050505;cursor:grab}
.calendar-viewer-viewport:active{cursor:grabbing}
.calendar-viewer-viewport img{display:block;width:100%;max-width:none;height:auto;margin:0;user-select:none;-webkit-user-drag:none;transform-origin:top left}
@media(max-width:600px){
    .calendar-viewer{width:100vw;height:100dvh;border-radius:0}
    .calendar-viewer-header{padding-top:max(10px,env(safe-area-inset-top))}
    .calendar-viewer-help{font-size:.75rem}
    .calendar-viewer-viewport{height:calc(100% - 137px)}
}

/* =====================================================
   TABLET
===================================================== */

/* =====================================================
   NOTICE BOARD + DETAIL
===================================================== */

.notice-board-main,
.notice-detail-main{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:50px 20px 80px;
}

.notice-board-section,
.notice-detail-section{
    width:100%;
}

.notice-board-heading{
    margin-bottom:28px;
    padding:28px 30px;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 8px 22px rgba(20,45,70,.08);
    text-align:left;
}

.notice-board-heading h1{
    margin:0 0 12px;
    color:var(--member-primary);
    font-size:clamp(34px,5vw,46px);
    line-height:1.25;
    text-align:left;
}

.notice-board-heading > p{
    margin:0;
    color:#666666;
    font-size:16px;
    line-height:1.7;
    text-align:left;
}

.notice-board-heading .member-login-status{
    margin-bottom:8px;
    color:#667085;
    font-size:14px;
}

.notice-board-card,
.notice-detail-card{
    overflow:hidden;
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.notice-board-header,
.notice-board-item a{
    display:grid;
    grid-template-columns:110px minmax(0,1fr) 110px;
    align-items:center;
    gap:20px;
}

.notice-board-header{
    padding:16px 24px;
    border-bottom:1px solid #e8ebef;
    background:#f5f7fa;
    color:#667085;
    font-size:13px;
}

.notice-board-list{
    margin:0;
    padding:0;
    list-style:none;
}

.notice-board-item{
    border-bottom:1px solid #eeeeee;
}

.notice-board-item:last-child{
    border-bottom:0;
}

.notice-board-item a{
    padding:22px 24px;
    color:#333333;
    text-decoration:none;
    transition:background .2s ease;
}

.notice-board-item a:hover{
    background:#f8fafc;
}

.notice-board-item strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:16px;
}

.notice-board-item time{
    color:#888888;
    font-size:13px;
    text-align:right;
}

.notice-back-link{
    display:inline-block;
    margin-bottom:20px;
    color:var(--member-primary);
    font-weight:700;
    text-decoration:none;
}

.notice-detail-header{
    padding:34px 38px 28px;
    border-bottom:1px solid #eeeeee;
}

.notice-detail-header h1{
    margin:10px 0 14px;
    color:#222222;
    font-size:30px;
    line-height:1.4;
    text-align:left;
}

.notice-detail-header time{
    color:#888888;
    font-size:14px;
}

.notice-detail-content{
    min-height:220px;
    padding:38px;
    color:#444444;
    font-size:16px;
    line-height:1.9;
    white-space:pre-wrap;
}

@media(max-width:768px){
    .notice-board-main,
    .notice-detail-main{
        padding:30px 16px 60px;
    }

    .notice-board-header{
        display:none;
    }

    .notice-board-item a{
        grid-template-columns:1fr auto;
        gap:8px 16px;
        padding:20px;
    }

    .notice-board-category{
        grid-column:1 / -1;
    }

    .notice-board-item strong{
        white-space:normal;
    }

    .notice-detail-header,
    .notice-detail-content{
        padding:26px 22px;
    }

    .notice-detail-header h1{
        font-size:25px;
    }

}

/* =====================================================
   CALENDAR BOARD
===================================================== */

.calendar-board-main{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:50px 20px 80px;
}

.calendar-board-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:28px;
    margin-bottom:28px;
    padding:28px 30px;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 8px 22px rgba(20,45,70,.08);
}

.calendar-board-heading h1{
    margin:0 0 10px;
    color:var(--member-primary);
    font-size:clamp(34px,5vw,46px);
    line-height:1.25;
    text-align:left;
}

.calendar-board-heading p{
    margin:0;
    color:#666666;
    line-height:1.7;
    text-align:left;
}

.calendar-board-heading .member-login-status{
    margin-bottom:8px;
    color:#667085;
    font-size:14px;
}

.calendar-filter-label{
    display:flex;
    flex-direction:column;
    flex-shrink:0;
    gap:7px;
    color:#667085;
    font-size:13px;
    font-weight:700;
}

.calendar-filter-label select{
    min-width:150px;
    padding:11px 38px 11px 13px;
    border:1px solid #d8dee6;
    border-radius:10px;
    background:#ffffff;
    color:#333333;
    font:inherit;
}

.calendar-sheet-card,
.calendar-events-section{
    margin-bottom:28px;
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.calendar-sheet-card{
    overflow:hidden;
}

.calendar-sheet-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 26px;
    border-bottom:1px solid #e8ebef;
    background:#f5f7fa;
}

.calendar-sheet-header h2,
.calendar-events-section > h2{
    margin:0;
    color:var(--member-primary);
    font-size:23px;
    text-align:left;
}

.calendar-sheet-header p{
    margin:0;
    color:#667085;
    font-size:14px;
    font-weight:700;
}

.calendar-sheet-card .member-empty-message,
.calendar-events-section .member-empty-message{
    margin:0;
    padding:32px 24px;
}

.calendar-sheet-image{
    padding:22px;
    background:#ffffff;
}

.calendar-sheet-image img{
    display:block;
    width:100%;
    height:auto;
    margin:0 auto;
    border-radius:10px;
}

.calendar-events-section > h2{
    padding:20px 26px;
    border-bottom:1px solid #e8ebef;
    background:#f5f7fa;
}

.calendar-events-section .calendar-month-section{
    margin-bottom:0;
    border-radius:0 0 18px 18px;
    box-shadow:none;
}

.calendar-month-section{
    overflow:hidden;
    margin-bottom:28px;
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.calendar-month-section h3{
    margin:0;
    padding:20px 26px;
    border-bottom:1px solid #e8ebef;
    background:#f5f7fa;
    color:var(--member-primary);
    font-size:23px;
    text-align:left;
}

.calendar-board-list{
    margin:0;
    padding:0;
    list-style:none;
}

.calendar-board-item{
    display:grid;
    grid-template-columns:82px minmax(0,1fr);
    align-items:center;
    gap:22px;
    padding:22px 26px;
    border-bottom:1px solid #eeeeee;
}

.calendar-board-item:last-child{
    border-bottom:0;
}

.calendar-board-item time{
    display:flex;
    align-items:baseline;
    justify-content:center;
    gap:7px;
    padding:11px 8px;
    border-radius:12px;
    background:#f4f7ff;
    color:#667085;
}

.calendar-board-item time strong{
    color:var(--member-primary);
    font-size:27px;
}

.calendar-board-item time span{
    font-size:13px;
}

.calendar-board-item h3{
    margin:0 0 6px;
    color:#333333;
    font-size:18px;
    text-align:left;
}

.calendar-board-item p{
    margin:0;
    color:#666666;
    font-size:14px;
    line-height:1.6;
    text-align:left;
}

@media(max-width:900px){
    .calendar-board-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .calendar-filter-label,
    .calendar-filter-label select{
        width:100%;
    }

    .calendar-sheet-header{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .calendar-sheet-image{
        padding:10px;
    }

    .member-info-grid{
        grid-template-columns:1fr;
    }

    .member-profile-section{
        flex-direction:column;
        align-items:flex-start;
    }

    .member-welcome{
        flex-direction:column;

        text-align:center;
    }

    .member-welcome h1,
    .member-welcome p{
        text-align:center;
    }

    .member-welcome-badge{
        margin-top:20px;
    }

    body.member-gallery-page .member-gallery-toolbar{
        flex-direction:column;
        align-items:flex-start;
    }

    body.member-gallery-page .member-album-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    body.member-album-page .member-photo-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* =====================================================
   MEMBER MOBILE MENU THEME
===================================================== */

@media(max-width:768px){

    /*
       common.css의 모바일 메뉴 구조는 그대로 사용하고
       회원영역에서는 색상만 파란 계열로 변경합니다.
    */

        /* 회원 메뉴가 오버레이 위로 올라오도록 레이어 보정 */
      /* =================================================
       회원영역 모바일 메뉴 레이어
    ================================================= */

    .member-header{
        position:sticky;
        top:0;
        z-index:2800;
    }

    .member-page .side-nav,
    .member-gallery-page .side-nav,
    .member-album-page .side-nav{
        z-index:2900;
        pointer-events:auto;
    }

    .member-page .side-nav.active,
    .member-gallery-page .side-nav.active,
    .member-album-page .side-nav.active{
        pointer-events:auto;
    }

    .member-page .overlay,
    .member-gallery-page .overlay,
    .member-album-page .overlay{
        z-index:2000;
    }

    .member-page .menu-toggle,
    .member-gallery-page .menu-toggle,
    .member-album-page .menu-toggle{
        z-index:3001;
    }

    /*
       메뉴가 열렸을 때 헤더의 흰 배경과 로고는 숨깁니다.
       메뉴를 제외한 화면은 오버레이로 어두워집니다.
    */
    .member-header:has(.side-nav.active){
        background:transparent;
        box-shadow:none;
    }

    .member-header:has(.side-nav.active) .brand{
        opacity:0;
        visibility:hidden;
        pointer-events:none;
    }

    .member-page .menu-toggle,
    .member-gallery-page .menu-toggle,
    .member-album-page .menu-toggle{
        background:var(--member-primary);
        color:#ffffff;
    }

    .member-page .side-nav,
    .member-gallery-page .side-nav,
    .member-album-page .side-nav{
        background:linear-gradient(
            180deg,
            var(--member-primary),
            var(--member-primary-dark)
        );
    }

    .member-page .side-nav a,
    .member-gallery-page .side-nav a,
    .member-album-page .side-nav a{
        color:#ffffff;
    }

    .member-page .side-nav a:hover,
    .member-page .side-nav a.active,
    .member-page .side-nav a[aria-current="page"],
    .member-gallery-page .side-nav a:hover,
    .member-gallery-page .side-nav a.active,
    .member-gallery-page .side-nav a[aria-current="page"],
    .member-album-page .side-nav a:hover,
    .member-album-page .side-nav a.active,
    .member-album-page .side-nav a[aria-current="page"]{
        background:rgba(255,255,255,.14);
        color:#ffffff;
    }

    .member-page .side-nav .btn,
    .member-gallery-page .side-nav .btn,
    .member-album-page .side-nav .btn{
        background:rgba(255,255,255,.18);
        color:#ffffff;
    }

    .member-page .side-nav .btn:hover,
    .member-gallery-page .side-nav .btn:hover,
    .member-album-page .side-nav .btn:hover{
        background:rgba(255,255,255,.28);
        color:#ffffff;
    }


    /* 회원 홈 */

    .member-dashboard{
        margin:30px auto 60px;
        padding:0 16px;
    }

    .member-welcome{
        gap:20px;

        padding:32px 22px;

        border-radius:17px;
    }

    .member-welcome h1{
        font-size:30px;
    }

    .member-welcome-badge{
        flex-basis:90px;

        width:90px;
        height:90px;

        font-size:32px;
    }

    .member-section{
        padding:24px 20px;
    }

    .member-section-header{
        align-items:flex-start;
    }

    .member-section h2{
        font-size:25px;
    }

    .member-notice-item a{
        align-items:flex-start;
        flex-direction:column;

        gap:8px;
    }

    .member-notice-item time{
        align-self:flex-end;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:600px){

    .member-quick-grid,
    .member-gallery-grid{
        grid-template-columns:1fr;
    }

    .member-calendar-item{
        align-items:flex-start;
    }

    body.member-gallery-page .member-main{
        padding:30px 16px 60px;
    }

    body.member-gallery-page .member-page-heading{
        padding:24px 20px;
    }

    body.member-gallery-page .member-gallery-toolbar{
        gap:16px;
    }

    body.member-gallery-page .member-gallery-filter{
        gap:8px;
    }

    body.member-gallery-page .member-gallery-filter button{
        padding:9px 13px;

        font-size:13px;
    }

    body.member-gallery-page .member-gallery-year{
        width:100%;
    }

    body.member-gallery-page .member-album-grid{
        grid-template-columns:1fr;
    }

    body.member-gallery-page .member-album-info{
        padding:18px 18px 20px;
    }

    body.member-album-page .member-album-header{
        margin-top:28px;
    }

    body.member-album-page .member-album-header h1{
        font-size:28px;
    }

    body.member-album-page .member-photo-grid{
        grid-template-columns:1fr;

        gap:18px;
    }

}
/* 회원 홈 관리 링크 간격 */
.member-welcome-text > a.btn {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
}