* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}
header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav a {
    text-decoration: none;
    color: #0066cc;
}
nav a:hover {
    text-decoration: underline;
}
main {
    min-height: 70vh;
}
footer {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}
h1, h2, h3 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}
.page-list {
    list-style: none;
    padding: 0;
}
.page-list li {
    margin: 0.5em 0;
}
.page-list .date {
    color: #888;
    font-size: 0.9em;
    margin-left: 10px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}
.gallery a {
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.gallery img {
    width: 100%;
    height: auto;
    display: block;
}
/* Lightbox (модальное окно) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
