/**
 * LCUS Blog Tweaks: smaller featured images, normal article text
 * Applied on single post pages only.
 */

/* Single post: contain article and entry so nothing floats/overlaps out */
.single article,
.single-post article {
    position: relative;
    overflow-x: clip;
}
.single .entry-content,
.single-post .entry-content {
    overflow-x: clip;
}

/* Featured image: cap size so it's not huge */
.single-post .post-thumbnail img,
.single .post-thumbnail img,
.single-post .wp-block-post-featured-image img,
.single .wp-block-post-featured-image img,
.single-post .entry-header img,
.single .entry-header img,
.single-post .featured-image img,
.single .featured-image img,
.single-post article .wp-block-post-featured-image img,
.single article .wp-block-post-featured-image img,
.single-post .entry-content > .wp-block-post-featured-image img,
.single .entry-content > .wp-block-post-featured-image img {
    max-width: 480px;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Wrapper for featured image so it doesn't stretch full width */
.single-post .post-thumbnail,
.single .post-thumbnail,
.single-post .wp-block-post-featured-image,
.single .wp-block-post-featured-image {
    max-width: 480px;
}

/* Article body: normal text size and comfortable line length (override theme .entry-content) */
body.single-post .entry-content,
body.single .entry-content,
body.single-post .post-content,
body.single .post-content,
body.single-post .content,
body.single .content,
.single-post .entry-content,
.single .entry-content,
.single-post .post-content,
.single .post-content,
.single-post .content,
.single .content {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 65ch;
}

/* When masonry article is used: full-width container, same typography; clip overflow so masonry doesn’t overlap sidebars */
body.single-post .entry-content:has(.lcus-masonry-article),
body.single .entry-content:has(.lcus-masonry-article),
.single-post .entry-content:has(.lcus-masonry-article),
.single .entry-content:has(.lcus-masonry-article),
.single-post .post-content:has(.lcus-masonry-article),
.single .post-content:has(.lcus-masonry-article),
.single-post .content:has(.lcus-masonry-article),
.single .content:has(.lcus-masonry-article),
.single .wp-block-post-content:has(.lcus-masonry-article),
.single-post .wp-block-post-content:has(.lcus-masonry-article) {
    max-width: none !important;
    width: 100%;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    overflow-x: clip;
}

.single-post .entry-content p,
.single .entry-content p,
.single-post .post-content p,
.single .post-content p {
    font-size: 1rem !important;
}

.single-post .entry-content h1,
.single .entry-content h1,
.single-post .post-content h1,
.single .post-content h1 {
    font-size: 1.5rem;
}

.single-post .entry-content h2,
.single .entry-content h2,
.single-post .post-content h2,
.single .post-content h2 {
    font-size: 1.25rem;
}

.single-post .entry-content h3,
.single .entry-content h3,
.single-post .post-content h3,
.single .post-content h3 {
    font-size: 1.125rem;
}

/* Block theme / FSE: target main content area */
.single .wp-block-post-content,
.single-post .wp-block-post-content {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 65ch;
}

.single .wp-block-post-content p,
.single-post .wp-block-post-content p {
    font-size: 1rem;
}
