/* Basic Setup */
body {
    font-family: sans-serif;
    background-color: #111;
    color: #eee;
    line-height: 1.6;
    margin: 0;
    padding: 0 1rem;
}

a {
    color: #8bf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main Layout & Header */
.site-header, main {
    max-width: 800px;
    margin: 0 auto;
}

.site-header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.5rem;
}

.site-branding a {
    text-decoration: none;
    color: #eee;
}

.site-navigation a {
    margin-left: 1.5rem;
}

/* Post Content Styling */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
    cursor: zoom-in; /* Add this to make images look clickable */
}

/* Code Block Styling */
pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1em;
    margin: 2em 0;
    overflow-x: auto;
    border-radius: 6px;
    font-size: 0.9rem;
}

code {
    font-family: "Fira Code", "Consolas", "Monaco", monospace;
    background-color: #333;
    color: #eee;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* OUR CUSTOM LIGHTBOX STYLES */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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