body {
    font-family: serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

h1 {
    font-size: 2em;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 a {
    transition: 0.2s ease;
}

h2 a:hover {
    text-decoration-thickness: 2px;
}

.date {
    color: #666;
    font-size: 0.9em;
    margin-top: -0.5em;
    margin-bottom: 0.5em;
}

article {
    margin-bottom: 2em;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

@media (min-width: 600px) {
    .article-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5em;
    }
}

.thumbnail-link {
    flex-shrink: 0;
}

.thumbnail {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

@media (min-width: 600px) {
    .thumbnail {
        max-width: 250px;
    }
}

.thumbnail:hover {
    opacity: 0.8;
}

.article-text {
    flex: 1;
}

.article-text h2 {
    margin-top: 0;
}

p {
    margin: 1em 0;
}

.images {
    margin: 2em 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.images img:hover {
    opacity: 0.8;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    margin-top: 5vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    padding: 16px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}