:root {
    --primary: #002e6e;
    --accent: #0066ff;
    --text: #1e293b;
    --subtext: #64748b;
    --border: #e2e8f0;
    --bg: #fafbff;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text);
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(0, 46, 110, .06);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.site-nav .logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.site-nav .nav-links { display: flex; align-items: center; gap: 32px; }
.site-nav .nav-links a { color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--accent); }

.gallery-page-header {
    padding: 145px 5% 60px;
    text-align: center;
    background: transparent;
}

.gallery-page-header .section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent);
    font: 600 11px 'Inter', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gallery-page-header .section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.gallery-page-header h1 { margin: 0 0 12px; color: var(--primary); font-size: clamp(36px, 5vw, 52px); line-height: 1.2; }
.gallery-page-header p { margin: 0; color: var(--subtext); font-size: 16px; }

.gallery-board {
    width: min(1200px, calc(100% - 40px));
    min-height: 420px;
    margin: 0 auto;
    padding: 60px 0 90px;
}

.gallery-board img { max-width: 100%; height: auto; }
.sj-kboard-site-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.sj-kboard-site-photo { margin: 0; overflow: hidden; background: #f1f5f9; }
.sj-kboard-site-photo img { display: block; width: 100%; height: auto; }
.gallery-setup-guide { padding: 34px 24px; border: 1px dashed #94a3b8; border-radius: 8px; background: var(--bg); color: #334155; text-align: center; }
.gallery-setup-guide strong { display: block; color: var(--primary); font-size: 17px; }
.gallery-setup-guide p { margin: 10px 0 0; color: var(--subtext); font-size: 14px; }
.gallery-setup-guide code { padding: 2px 6px; border-radius: 4px; background: #e8eef8; color: var(--primary); }

footer {
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    background: #001a3d;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

footer p { margin: 0 0 6px; }
footer p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .site-nav .nav-links { gap: 32px; }
    .site-nav .nav-links a { font-size: 14px; }
}

@media (max-width: 768px) {
    .site-nav { height: 72px; padding: 0 20px; }
    .gallery-page-header { padding: 112px 20px 44px; }
    .gallery-page-header p { font-size: 14px; }
    .gallery-board { width: calc(100% - 40px); min-height: 320px; padding: 40px 0 65px; }
    .sj-kboard-site-gallery { grid-template-columns: 1fr; gap: 12px; }
    footer { padding: 32px 20px; flex-direction: column; gap: 16px; }
}
