/* blog theme */

header * {
    color: #f8f9fa;
}

body {
    background-color: #131517;
}

/* blog layout */

section {
    border: 0.5px solid #6c757d;
    padding: 0.5em 2em 1em;
    margin: 2.5em;
    /* Space between sections */
}

section:hover {
    border: 0.5px solid #ced4da;
}

a {
    color: #ced4da;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* blog text */

.post-title * {
    color: #f8f9fa;
    text-decoration: none;
}

.post-text {
    color: #bac1c7;
    text-align: justify;
    /* This will justify the text inside <p> tags */
    font-family: "Nunito", serif;
    font-weight: lighter;
}

.post-date {
    color: #ced4da;
    padding-bottom: 1em;
}

.post-content a {
    color: #f8f9fa;
    text-decoration: none;
}

/* blog images */

.preview-image * {
    display: block;
    /* Make image a block element */
    margin: 0 auto;
    /* Center the image horizontally */
    max-width: 50%;
    /* Ensure image is responsive and does not overflow container */
    height: auto;
    /* Maintain aspect ratio */
    /* Maintain the image aspect ratio */
    max-height: 300px;
    /* Set a maximum height, adjust as needed */
    object-fit: contain;
    /* Ensure the image fits within the bounds without distortion */
}
