/* Individual news articles; homepage photography and other page heroes are separate. */
.news-article-header{width:min(1040px,calc(100% - 64px));margin:0 auto;padding:48px 0 0}
.news-article-header>.post-back-link{font:400 15px/1.7 var(--sans);color:var(--red)}
.news-article-date{display:block;margin-top:30px;font:400 15px/1.6 var(--sans);color:var(--muted)}
.nth-inner #main .news-article-header h1{width:100%;max-width:900px;margin:12px auto 32px;font:700 clamp(28px,3.2vw,44px)/1.25 var(--serif);color:var(--ink);letter-spacing:-.02em;text-align:center;overflow-wrap:break-word;word-break:normal;hyphens:none;text-wrap:balance}
.news-article-cover{margin:0;padding:0;display:flex;justify-content:center}
.news-article-cover .news-article-cover-image{display:block;width:auto;max-width:100%;height:auto;max-height:680px;object-fit:contain;object-position:center;border-radius:4px}
.nth-inner #main .news-article-body{padding-block:34px 54px!important}
.news-article-body .post-content{font:400 18px/1.85 var(--sans);color:var(--ink)}
.news-article-body .post-navigation{min-width:0}
.news-article-body .post-navigation>div{min-width:0!important;overflow-wrap:anywhere}

/* A regular grid is the fallback; measured row spans add stable masonry. */
body.single-post #main .post-gallery,
body.single-post #main .wp-block-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;margin:34px 0;columns:auto}
body.single-post #main .post-gallery:has(>:only-child),
body.single-post #main .wp-block-gallery:has(>:only-child){grid-template-columns:minmax(0,1fr)}
body.single-post #main .post-gallery:has(>:nth-child(2):last-child),
body.single-post #main .wp-block-gallery:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
body.single-post #main .post-gallery>a,
body.single-post #main .post-gallery>img,
body.single-post #main .wp-block-gallery>.wp-block-image{display:block;align-self:start;min-width:0;width:100%!important;max-width:100%;height:auto;aspect-ratio:auto;margin:0!important;break-inside:avoid}
body.single-post #main .post-gallery .gallery-thumb,
body.single-post #main .wp-block-gallery .wp-block-image img{display:block;width:100%;height:auto!important;max-height:none;object-fit:contain;object-position:center;margin:0!important;border-radius:4px;transform:none!important}
body.single-post #main .post-gallery.is-masonry,
body.single-post #main .wp-block-gallery.is-masonry{grid-auto-rows:1px;row-gap:0}
body.single-post #main .post-gallery a:hover{opacity:.92}
body.single-post #main .post-gallery .gallery-thumb-link{aspect-ratio:auto;box-shadow:none}
@media(max-width:760px){body.single-post #main .post-gallery,body.single-post #main .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.news-article-header{width:calc(100% - 40px);padding-top:30px}.news-article-date{margin-top:22px}.news-article-cover .news-article-cover-image{max-height:70vh}.nth-inner #main .news-article-header h1{margin-bottom:24px}.news-article-body .post-navigation{flex-direction:column}.news-article-body .post-navigation>div{text-align:left!important}}
@media(max-width:480px){body.single-post #main .post-gallery,body.single-post #main .wp-block-gallery,body.single-post #main .post-gallery:has(>:nth-child(2):last-child),body.single-post #main .wp-block-gallery:has(>:nth-child(2):last-child){grid-template-columns:minmax(0,1fr)}}
