/* Compact, scoped photo previews; full resolution remains available in the viewer. */
body.single-post .pnbyw-single-article > .pnbyw-single-img{display:flex!important;align-items:center;justify-content:center;width:calc(100% - 48px)!important;max-width:480px!important;min-height:0!important;height:auto!important;max-height:260px!important;aspect-ratio:auto!important;margin:20px auto!important;padding:10px!important;background:#f8fafc!important;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
body.single-post .pnbyw-single-article > .pnbyw-single-img::before,body.single-post .pnbyw-single-article > .pnbyw-single-img::after{display:none!important}
body.single-post .pnbyw-single-article > .pnbyw-single-img img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:240px!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0 auto!important;border-radius:8px!important;cursor:zoom-in}
body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:24px 0!important;padding:0!important;clear:both;width:100%!important}
body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery)>:is(p,figure,.gallery-item,.wp-caption){float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;align-self:start}
body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery) img{display:block!important;width:100%!important;height:auto!important;max-width:min(100%,var(--pnbyw-photo-width,100%))!important;max-height:220px!important;aspect-ratio:4/3;object-fit:cover!important;margin:0 auto!important;border:0!important;border-radius:8px!important;cursor:zoom-in}
body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery) :is(a,.gallery-icon){display:block;width:100%;margin:0}
body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery) :is(figcaption,.gallery-caption,.wp-caption-text){position:static!important;background:none!important;color:#64748b!important;font-size:12px;line-height:1.5;padding:6px 2px!important;margin:0!important;text-align:left}
body.single-post :is(.pnbyw-single-content,.entry-content) .gallery>br{display:none}
body.single-post :is(.pnbyw-single-content,.entry-content) [hidden]{display:none!important}
@media(max-width:850px){body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){body.single-post :is(.pnbyw-single-content,.entry-content) :is(.pnbyw-article-photo-grid,.gallery,.wp-block-gallery){gap:8px!important}body.single-post .pnbyw-single-article > .pnbyw-single-img{max-height:220px!important}body.single-post .pnbyw-single-article > .pnbyw-single-img img{max-height:200px!important}}

/* Related news follows the theme's sidebar panels and brand colors. */
.pnbyw-related{margin:24px 0;background:var(--pnbyw-surface,#fff);border:1px solid var(--pnbyw-border,#e3e5e8);border-radius:9px;overflow:hidden;box-shadow:var(--pnbyw-shadow-sm,0 2px 8px #18202c0a)}
.pnbyw-related-header{background:var(--pnbyw-primary,#9a2109);padding:13px 18px;border-bottom:2px solid var(--pnbyw-gold,#D4A017)}
.pnbyw-related-header h2{margin:0;color:#fff;font-family:inherit;font-size:17px;font-weight:700;line-height:1.45;letter-spacing:0;text-transform:none}
.pnbyw-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px}
.pnbyw-related-card{min-width:0;overflow:hidden;background:var(--pnbyw-surface,#fff);border:1px solid var(--pnbyw-border,#e3e5e8);border-radius:7px}
.pnbyw-related-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none!important}
.pnbyw-related-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:0}
.pnbyw-related-body{display:flex;flex:1;flex-direction:column;padding:14px}
.pnbyw-related-body time{font-size:12px;line-height:1.5;color:var(--pnbyw-muted,#626b78)}
.pnbyw-related-body h3{font-family:inherit;font-size:15px;font-weight:700;line-height:1.55;margin:8px 0 14px;color:var(--pnbyw-text,#16263b);overflow-wrap:anywhere}
.pnbyw-related-more{margin-top:auto;color:var(--pnbyw-primary,#9a2109);font-size:12px;font-weight:600}
.pnbyw-related-link:hover h3{color:var(--pnbyw-primary,#9a2109)}
.pnbyw-related-link:focus-visible{outline:3px solid var(--pnbyw-primary,#9a2109);outline-offset:-3px}
@media(max-width:600px){.pnbyw-related-grid{grid-template-columns:1fr;padding:14px;gap:12px}.pnbyw-related-header{padding:12px 14px}.pnbyw-related-card img{aspect-ratio:16/9}}

.pnbyw-related-link{transition:background-color var(--pnbyw-transition,.2s)}
.pnbyw-related-link:hover{background:#fffaf6}
.pnbyw-related-link:focus-visible .pnbyw-related-more{text-decoration:underline}
