.wp-block-code {
	border: none;
}
h1.entry-title {
    display: none;
}
a {
    text-decoration: none !important;
}

/* ==========================================
   MIDRIVER THERAPY — BLOG CUSTOMIZATION
   ========================================== */

/* 1. INDIVIDUAL BLOG POSTS — DESKTOP */
.single-post .post-thumbnail img,
.single-post img.wp-post-image {
    display: block;
    width: 100%;
    max-width: 750px;
    height: 220px;
    object-fit: cover;
    margin: 0 auto 20px;
}

/* 2. INDIVIDUAL BLOG POSTS — MOBILE */
@media screen and (max-width: 600px) {
    .single-post .post-thumbnail img,
    .single-post img.wp-post-image {
        width: 100%;
        max-width: 100%;
        height: 160px;
        object-fit: cover;
        margin: 0 auto 16px;
    }
}

/* 3. BLOG LISTING — HIDE PAGE HEADING ONLY */
.blog .page-title,
.blog .page-header .page-title {
    display: none;
}

/* 4. BLOG LISTING — IMAGE ABOVE TITLE */
.blog article,
.archive article {
    display: flex;
    flex-direction: column;
}

.blog article .post-thumbnail,
.archive article .post-thumbnail {
    order: 1;
}

.blog article .entry-header,
.archive article .entry-header {
    order: 2;
}

.blog article .entry-content,
.archive article .entry-content {
    order: 3;
}

/* 5. BLOG LISTING — DESKTOP IMAGES */
@media screen and (min-width: 601px) {
    .blog .post-thumbnail img,
    .archive .post-thumbnail img,
    .blog img.wp-post-image,
    .archive img.wp-post-image {
        display: block;
        width: 100%;
        max-width: 750px;
        height: 220px;
        object-fit: cover;
    }
}

/* 6. BLOG LISTING — MOBILE IMAGES */
@media screen and (max-width: 600px) {
    .blog .post-thumbnail img,
    .archive .post-thumbnail img,
    .blog img.wp-post-image,
    .archive img.wp-post-image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 160px;
        object-fit: cover;
    }
}

/* Expand featured image containers on the blog listing */
.blog article .post-thumbnail,
.archive article .post-thumbnail {
    width: 100%;
    max-width: 750px;
    flex: 0 0 auto;
}

.blog article .post-thumbnail img,
.archive article .post-thumbnail img,
.blog article img.wp-post-image,
.archive article img.wp-post-image {
    width: 100%;
    max-width: 750px;
    height: 220px;
    object-fit: cover;
}

/* Tighten spacing between blog post title and excerpt */
.blog article .entry-header,
.archive article .entry-header {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

.blog article .entry-content,
.archive article .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce spacing between posts on the blog listing */
.blog article,
.archive article {
    margin-bottom: 20px !important;
    padding-bottom: 0px !important;
}

/* Reduce excess spacing around blog post wrappers */
.blog .site-main article,
.archive .site-main article {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

/* Remove extra spacing from the post list container */
.blog .site-main,
.archive .site-main {
    row-gap: 0 !important;
}

/* Tighten the bottom of each post's content */
.blog article .entry-content,
.archive article .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Tighten spacing between blog entries inside the main content */
.blog .site-main article + article,
.archive .site-main article + article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove excess bottom spacing from post entries */
.blog .site-main article,
.archive .site-main article {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
}

/* Hide metadata at the top of individual blog posts */
.single-post .entry-meta,
.single-post .cat-links,
.single-post .tags-links,
.single-post .byline,
.single-post .posted-on {
    display: none !important;
}

/* Hide blog metadata on the main posts page and archives */
.blog .entry-meta,
.blog .cat-links,
.blog .tags-links,
.blog .byline,
.blog .posted-on,
.archive .entry-meta,
.archive .cat-links,
.archive .tags-links,
.archive .byline,
.archive .posted-on {
    display: none !important;
}

/* Hide comment links on blog listings and archives */
.blog .comments-link,
.archive .comments-link,
.blog .entry-footer .comments-link,
.archive .entry-footer .comments-link {
    display: none !important;
}

/* Show titles on individual blog posts */
.single-post .entry-title {
    display: block !important;
}

/* Show the title on the main blog posts page */
.blog .page-title,
.blog .page-header .page-title {
    display: block !important;
}

/* Hide titles on other pages */
.page .entry-title,
.page .page-title,
.page .page-header .page-title {
    display: none !important;
}

/* Individual blog posts — place featured image above title */
.single-post article {
    display: flex;
    flex-direction: column;
}

.single-post article .post-thumbnail {
    order: 1;
}

.single-post article .entry-header {
    order: 2;
}

.single-post article .entry-content {
    order: 3;
}

/* Restore featured image sizing on individual blog posts */
.single-post article .post-thumbnail {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 20px;
}

.single-post article .post-thumbnail img,
.single-post article img.wp-post-image {
    display: block;
    width: 100%;
    max-width: 750px;
    height: 220px;
    object-fit: cover;
    margin: 0 auto;
}

/* Restore mobile featured image sizing */
@media screen and (max-width: 600px) {
    .single-post article .post-thumbnail img,
    .single-post article img.wp-post-image {
        width: 100%;
        max-width: 100%;
        height: 160px;
        object-fit: cover;
    }
}

/* Tighten spacing between individual post title and content */
.single-post article .entry-header {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

.single-post article .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post article .entry-title {
    margin-bottom: 8px !important;
}
