/* Styles for blog-post pages to ensure readability */

.blog-post-container {
    max-width: 1150px; /* Constrains width for comfortable reading */
    margin: 0 auto; /* Centers the container */
    padding: 20px 24px 60px 24px; /* Top, L/R, Bottom padding */
}

.blog-post-container h1,
.blog-post-container h2,
.blog-post-container h3,
.blog-post-container h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.blog-post-container p,
.blog-post-container ol,
.blog-post-container ul {
    margin-bottom: 1.5rem;
}

.byline {
    color: #888;
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* For images dropped into the blog post */
.inline-image {
    max-width: min(80vw, 500px);
    height: auto;
    border-radius: 16px; /* Uses the "rounder" class from globalstyle.css */
    margin: 16px;
}

.blog-post-container ul, .blog-post-container ol {
    padding-left: 25px;
}

.blog-post-container li {
    padding-left: 10px;
    margin-bottom: 1rem;
}

/* Custom List Bullets using an Image */

/* First, remove the default bullet style from the list */
.blog-post-container ul {
    list-style-type: none;
    padding-left: 0; /* Remove the default indentation */
}

/* Now, add our custom image before each list item */
.blog-post-container ul li::before {
    content: ''; /* The content is empty because we are using a background image */
    background-image: url('/assets/rock.png');
    background-size: contain; /* Ensures the image fits within the dimensions */
    background-repeat: no-repeat;
    display: inline-block;
    width: 16px;  /* Set to the width of your icon */
    height: 16px; /* Set to the height of your icon */
    margin-right: 12px; /* Adjust for space between icon and text */
    position: relative;
    top: 3px; /* Helps vertically align the icon with the text line */
}

/* We need to remove the old padding from the list item itself */
.blog-post-container ul li {
    padding-left: 0;
}

.blog-img {
    width: min(80vw, 500px);
    margin: 32px;
    aspect-ratio: 1.5;
    object-fit: cover
}

/* Responsive: Stack on smaller screens */
@media (max-width: 900px) {
  .blog-img {
    width: min(80vw, 300px);
    }
}

@media (max-width: 768px) {
  .blog-img {
    width: min(80vw, 500px);
    }
}



