/* ===== SSB refine sizes v1 (Pixel, t282): smaller, proportionate posts everywhere. Delete this file (and its enqueue in ssb-single-layout.php) to revert. ===== */
/* --- single posts --- */
body.ssb-wide-single{--ssb-read:880px}
body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image{aspect-ratio:auto!important;height:clamp(200px,30vw,420px)!important;max-height:420px;border-radius:12px;max-width:1100px;margin-inline:auto}
body.ssb-wide-single .single-content .wp-block-kadence-image{max-width:1100px;margin-inline:auto}
body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image img{object-fit:cover!important}
body.ssb-wide-single .single-content .wp-block-kadence-advancedheading:first-of-type{font-size:clamp(26px,2.3vw,32px)!important;line-height:1.25!important;max-width:820px;margin-top:28px}
body.ssb-wide-single .kb-dynamic-html:has(p),body.ssb-wide-single .entry-content p,body.ssb-wide-single .entry-content li,body.ssb-wide-single .kb-dynamic-html p,body.ssb-wide-single .kb-dynamic-html li{font-size:17px!important;line-height:1.75!important}
body.ssb-wide-single .kb-dynamic-html:has(p)>p:first-child{font-size:18px!important;line-height:1.7!important}
body.ssb-wide-single .kb-dynamic-html:has(p,h2,h3){max-width:var(--ssb-read);margin-inline:auto}
body.ssb-wide-single .kb-dynamic-html p,body.ssb-wide-single .entry-content p{margin:0 0 1.1em}
body.ssb-wide-single .kb-dynamic-html h2,body.ssb-wide-single .entry-content h2{font-size:clamp(20px,1.8vw,24px)!important;line-height:1.3!important;margin:1.6em 0 .6em!important;padding-left:12px;border-left-width:3px}
body.ssb-wide-single .kb-dynamic-html h3,body.ssb-wide-single .entry-content h3{font-size:clamp(18px,1.5vw,20px)!important;line-height:1.35!important;margin:1.4em 0 .5em!important}
body.ssb-wide-single .kb-dynamic-html h4,body.ssb-wide-single .entry-content h4{font-size:17px!important}
body.ssb-wide-single h1.entry-title{font-size:clamp(24px,2.2vw,32px)!important}
/* related posts */
.ssb-related{margin-top:48px;padding-top:32px}
.ssb-related__title{font-size:clamp(20px,2vw,24px)!important;margin-bottom:20px}
.ssb-related__grid{gap:20px}
.ssb-related__img{aspect-ratio:16/9}
.ssb-related__name{font-size:16px!important;padding:12px 14px 2px}
.ssb-related__date{font-size:12px;padding:0 14px 14px}
/* --- archives / categories / search --- */
.entry-title,.single-entry .entry-title{font-size:clamp(24px,2.2vw,32px)}
.archive-title,.page-title,.archive .entry-hero-container-inner h1,.search .entry-hero-container-inner h1{font-size:clamp(26px,2.4vw,34px)!important;line-height:1.2}
.entry-hero-container-inner{min-height:0!important}
.entry-hero-container-inner .hero-section-overlay,.entry-hero-container-inner .entry-header{padding-block:28px!important;min-height:0!important}
.kadence-posts-list{gap:24px!important}
.kadence-posts-list .entry,.custom-archive-loop-item{padding:0}
.loop-entry .entry-title,.kadence-posts-list .entry-title,.custom-archive-loop-item .entry-title,.custom-archive-loop-item h2,.custom-archive-loop-item h3,.custom-archive-loop-item a.post-title{font-size:17px!important;line-height:1.3!important;margin:0 0 6px}
.loop-entry .entry-summary,.loop-entry .entry-summary p,.custom-archive-loop-item p,.custom-archive-loop-item .entry-summary{font-size:14px!important;line-height:1.6!important}
.loop-entry .entry-meta,.custom-archive-loop-item .entry-meta{font-size:12px!important}
.loop-entry .post-thumbnail,.custom-archive-loop-item .post-thumbnail,.custom-archive-loop-item .post-thumbnail-inner{margin:0!important}
.loop-entry .post-thumbnail img,.custom-archive-loop-item img{aspect-ratio:4/3;max-height:240px;width:100%;object-fit:cover;height:auto}
.custom-archive-loop-item .entry-content-wrap,.loop-entry .entry-content-wrap{padding:14px 16px 16px!important}
body.archive .custom-archive-loop-item .kb-is-ratio-image,body.search .custom-archive-loop-item .kb-is-ratio-image{aspect-ratio:4/3;height:auto!important;padding:0!important;position:relative;overflow:hidden}
body.archive .custom-archive-loop-item .kb-is-ratio-image::before,body.search .custom-archive-loop-item .kb-is-ratio-image::before{display:none!important}
body.archive .custom-archive-loop-item .kb-is-ratio-image img,body.search .custom-archive-loop-item .kb-is-ratio-image img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover}
.custom-archive-loop-item .wp-block-kadence-advancedheading{font-size:17px!important;line-height:1.3!important;margin:12px 0 0!important}
/* --- sidebar widgets --- */
.widget .post-title,.widget li a,.widget_recent_entries a{font-size:15px;line-height:1.35}
/* --- homepage --- */
.home-template .middle-column .featured-post{gap:24px;align-items:stretch}
.home-template .middle-column .featured-post>a{width:46%;flex:0 0 46%}
.home-template .middle-column .featured-post img{height:100%;min-height:300px;max-height:380px;width:100%;object-fit:cover;margin:0;display:block}
.home-template .middle-column .post-title{font-size:clamp(20px,1.8vw,24px)!important;line-height:1.28!important}
.home-template .post-excerpt{font-size:14.5px;line-height:1.65}
.home-template .heading-titles{font-size:19px;margin-bottom:16px}
.home-template .bottom-section{padding-top:20px;margin-top:20px}
.home-template .threeposts-sec .single-post img,.home-template .middle-column .threeposts-sec .single-post img{height:130px;object-fit:cover}
.home-template .bottom-section .threeposts-sec .single-post img{height:140px}
.home-template .bottom-section .post-title,.home-template .middle-column .bottom-section .post-title{font-size:15px!important;line-height:1.3!important;padding:10px 12px 14px}
.home-template .right-column .post-title,.home-template .tab-post-item .text-content .post-title{font-size:14px!important;line-height:1.3!important}
.home-template .tab-post-item img{width:84px;height:56px}
.home-template .category-label,.home-template .meta,.home-template .post-meta{font-size:11px}
@media(max-width:640px){
 .home-template .middle-column .featured-post img{min-height:0}
 body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image{height:210px!important;border-radius:10px}
 body.ssb-wide-single .single-content .wp-block-kadence-advancedheading:first-of-type{font-size:23px!important;margin-top:20px}
 body.ssb-wide-single .kb-dynamic-html:has(p),body.ssb-wide-single .entry-content p,body.ssb-wide-single .kb-dynamic-html p,body.ssb-wide-single .kb-dynamic-html li{font-size:16px!important;line-height:1.7!important}
 body.ssb-wide-single .kb-dynamic-html:has(p)>p:first-child{font-size:16.5px!important}
 body.ssb-wide-single .kb-dynamic-html h2,body.ssb-wide-single .entry-content h2{font-size:19px!important}
 body.ssb-wide-single .kb-dynamic-html h3,body.ssb-wide-single .entry-content h3{font-size:17px!important}
 body.ssb-wide-single h1.entry-title{font-size:22px!important}
 .home-template .middle-column .featured-post{flex-direction:column;gap:12px}
 .home-template .middle-column .featured-post>a{width:100%;flex:none}
 .home-template .middle-column .featured-post img{max-height:210px}
 .home-template .middle-column .post-title{font-size:19px!important}
 .home-template .threeposts-sec .single-post img,.home-template .bottom-section .threeposts-sec .single-post img{height:110px}
 .home-template .bottom-section .post-title,.home-template .middle-column .bottom-section .post-title{font-size:14px!important;padding:8px 10px 12px}
 .loop-entry .post-thumbnail img,.custom-archive-loop-item img{max-height:200px}
 .ssb-related__name{font-size:15px!important}
}
.home-template .middle-column .featured-post>a:first-child{display:flex;align-self:stretch}
.home-template .middle-column .featured-post>a:first-child img{height:auto;flex:1;max-height:none}
@media(max-width:640px){.home-template .middle-column .featured-post>a:first-child img{height:210px;flex:none}}

/* ===== SSB image sizes (Pixel, t283): smaller images. Delete this block to revert. ===== */
/* hero/featured on single posts */
body.ssb-wide-single .single-content .wp-block-kadence-image,body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image{max-width:760px!important;margin-inline:auto!important}
body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image{height:clamp(180px,26vw,360px)!important;border-radius:12px!important;overflow:hidden}
body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image img{width:100%!important;height:100%!important;object-fit:cover!important}
/* images inside post content */
body.ssb-wide-single .entry-content img,body.ssb-wide-single .kb-dynamic-html img,body.ssb-wide-single .single-content img:not(.avatar):not(.emoji){max-width:min(100%,680px);height:auto;border-radius:8px}
body.ssb-wide-single .kb-dynamic-html img.aligncenter,body.ssb-wide-single .entry-content img.aligncenter,body.ssb-wide-single .entry-content figure:not(.gallery-item){margin-inline:auto}
body.ssb-wide-single .kb-dynamic-html .alignwide,body.ssb-wide-single .kb-dynamic-html .alignfull,body.ssb-wide-single .entry-content .alignwide,body.ssb-wide-single .entry-content .alignfull,body.ssb-wide-single .kb-dynamic-html figure.wp-block-image,body.ssb-wide-single .entry-content figure.wp-block-image{max-width:720px!important;width:auto;margin-inline:auto}
body.ssb-wide-single .wp-caption{max-width:min(100%,420px)!important;height:auto}
body.ssb-wide-single .wp-caption img{max-width:100%;max-height:360px;width:auto;height:auto;object-fit:contain}
body.ssb-wide-single .wp-caption-text,body.ssb-wide-single figcaption{font-size:13px!important;line-height:1.45!important;text-align:center;margin:6px 0 0}
/* galleries: uniform small tiles */
body.ssb-wide-single .gallery{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-width:760px;margin-inline:auto}
body.ssb-wide-single .gallery .gallery-item{width:auto!important;max-width:none!important;margin:0!important;float:none!important}
body.ssb-wide-single .gallery .gallery-icon{aspect-ratio:4/3;overflow:hidden;border-radius:8px}
body.ssb-wide-single .gallery .gallery-icon a{display:block;height:100%}
body.ssb-wide-single .gallery .gallery-icon img{width:100%!important;height:100%!important;max-width:none;object-fit:cover;border-radius:0;display:block}
body.ssb-wide-single .gallery .gallery-caption{font-size:12px;line-height:1.4;margin:4px 0 0}
/* related posts / cards / widgets thumbnails */
.ssb-related__grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;max-width:900px}
.ssb-related__img{aspect-ratio:16/9!important;max-height:170px;overflow:hidden}
.ssb-related__img img{width:100%;height:100%;object-fit:cover}
.entry-related img,.kadence-posts-list img,.wp-block-latest-posts__featured-image img{aspect-ratio:16/9;object-fit:cover;width:100%;height:auto;max-height:200px}
.widget img,.widget .post-thumbnail img{max-width:100%;height:auto;object-fit:cover;border-radius:6px}
.widget .wp-post-image,.widget .post-thumbnail img,.widget li img{aspect-ratio:4/3;max-height:90px;width:90px}
.loop-entry .post-thumbnail img,.custom-archive-loop-item img{max-height:190px!important}
.home-template .middle-column .featured-post img{max-height:320px!important;min-height:240px}
@media(max-width:640px){
 body.ssb-wide-single .single-content .wp-block-kadence-image .kb-is-ratio-image{height:190px!important}
 body.ssb-wide-single .gallery{grid-template-columns:repeat(2,1fr)}
 .loop-entry .post-thumbnail img,.custom-archive-loop-item img{max-height:170px!important}
 .home-template .middle-column .featured-post img{max-height:190px!important;min-height:0}
}
/* t283 gallery tile fix */
body.ssb-wide-single .gallery .gallery-item{display:block!important;width:100%!important;min-width:0}
body.ssb-wide-single .gallery .gallery-icon{width:100%!important;display:block!important}
body.ssb-wide-single .gallery .gallery-icon a{width:100%}
/* t283 gallery tile fix 2 (mobile) */
body.ssb-wide-single .gallery .gallery-icon{position:relative;height:0!important;padding-bottom:75%;aspect-ratio:auto!important}
body.ssb-wide-single .gallery .gallery-icon a{position:absolute;inset:0}
body.ssb-wide-single .gallery .gallery-icon img{position:absolute;inset:0}
/* t283 archive card thumb fix */
body.archive .custom-archive-loop-item .kb-is-ratio-image,body.search .custom-archive-loop-item .kb-is-ratio-image{aspect-ratio:16/9!important;max-height:200px}
body.archive .custom-archive-loop-item .kb-is-ratio-image img,body.search .custom-archive-loop-item .kb-is-ratio-image img{max-height:none!important}
body.archive .custom-archive-loop-item .kb-is-ratio-image,body.search .custom-archive-loop-item .kb-is-ratio-image{aspect-ratio:auto!important;width:100%;height:200px!important;max-height:none}
