@import url('https://fonts.bunny.net/css?family=dm-sans:300,700');

:root {
    --bg: #fafaf9;
    --panel: #ffffff;
    --ink: #1c1917;
    --muted: #78716c;
    --border: #e7e5e4;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-weight: 300; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
a { color: var(--accent); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.header h1 { font-size: 22px; margin: 0; }
.header .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.login-wrap { max-width: 380px; margin: 80px auto; }
label { display: block; font-size: 13px; font-weight: 300; margin-bottom: 6px; margin-top: 14px; }
input[type=password], input[type=text] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.gallery a { display: block; text-decoration: none; }
.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: #eee;
}
.photo-caption {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expired-box {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

h2.group-title { font-size: 16px; margin: 32px 0 14px; }
h2.group-title:first-child { margin-top: 0; }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.lightbox-caption {
    color: #fff;
    font-size: 11px;
    margin-top: 10px;
    text-align: center;
    max-width: 90vw;
    overflow-wrap: break-word;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}
.site-footer-inner a { color: var(--muted); }
.site-footer-inner a:hover { color: var(--accent); }

@media (max-width: 600px) {
    .site-footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }
}