/* FIX01: this logo stays unadorned; keyboard focus keeps its separate outline. */
.site-footer .brand,
.site-footer .brand:hover,
.site-footer .brand:focus-visible {
 text-decoration:none;
 border-bottom:0;
 box-shadow:none;
}
/* FIX02: standalone Home links, not the global link system. */
.zf-home-stories .stories-all > a,
.zf-home-gallery .portfolio-link > a { text-decoration:none; }
.zf-home-stories .stories-all > a:hover,
.zf-home-gallery .portfolio-link > a:hover,
.zf-home-stories .stories-all > a:focus-visible,
.zf-home-gallery .portfolio-link > a:focus-visible { text-decoration:underline; text-underline-offset:.2em; }
.zf-home-stories .stories-all > a:focus-visible { outline:2px solid currentColor; outline-offset:5px; }

/* FIX06: image frames only; preserve the editorial columns and captions. */
.zf-home-stories .zf-selected-story { --story-ratio:3/2; }
.zf-home-stories .zf-report-card figure > picture {
 display:block; position:relative; width:100%; aspect-ratio:var(--story-ratio); overflow:hidden;
}
.zf-home-stories .zf-report-card figure > picture > img {
 position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--zf-story-x,50%) var(--zf-story-y,50%);
}
.zf-home-stories .zf-report-card figure > img {
 display:block; width:100%; height:auto; aspect-ratio:var(--story-ratio); object-fit:cover; object-position:var(--zf-story-x,50%) var(--zf-story-y,50%);
}
@media(min-width:45rem) {
 .zf-home-stories .zf-selected-story:nth-child(3n+2) { --story-ratio:4/3; }
}

/* FIX07: equal thumbnail cells; extra half-tracks centre incomplete rows. */
.zf-home-gallery .portfolio-grid {
 display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(1.25rem,2.4vw,2rem);
 width:100%; max-width:none; padding-inline:0; margin-inline:0;
}
.zf-home-gallery .portfolio-grid > li { width:100%; max-width:32rem; justify-self:center; min-width:0; }
.zf-home-gallery .photo-link { display:block; position:relative; width:100%; aspect-ratio:1; overflow:hidden; }
.zf-home-gallery .photo-link > img,
.zf-home-gallery .photo-link > picture { position:absolute; inset:0; width:100%; height:100%; }
.zf-home-gallery .photo-link img { width:100%; height:100%; object-fit:cover; }
@media(min-width:45rem) and (max-width:63.99rem) {
 .zf-home-gallery .portfolio-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .zf-home-gallery .portfolio-grid > li { grid-column:span 2; }
 .zf-home-gallery .portfolio-grid > li:last-child:nth-child(2n+1) { grid-column:2/span 2; }
}
@media(min-width:64rem) {
 .zf-home-gallery .portfolio-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
 .zf-home-gallery .portfolio-grid > li { grid-column:span 2; }
 .zf-home-gallery .portfolio-grid > li:last-child:nth-child(3n+1) { grid-column:3/span 2; }
 .zf-home-gallery .portfolio-grid > li:nth-last-child(2):nth-child(3n+1) { grid-column:2/span 2; }
 .zf-home-gallery .portfolio-grid > li:last-child:nth-child(3n+2) { grid-column:4/span 2; }
}

@media(max-width:44.99rem){.zf-home-stories .zf-report-card figure > picture > img,.zf-home-stories .zf-report-card figure > img{object-position:var(--zf-story-mobile-x,50%) var(--zf-story-mobile-y,50%);}}
.site-header .brand,.site-header .brand:hover,.site-header .brand:focus-visible{text-decoration:none;}
.site-header .brand:has(.zf-brand-image){display:flex;align-items:center;width:clamp(9rem,15vw,13rem);height:2.5rem;}
.site-header .zf-brand-image{display:block;object-fit:contain;object-position:left center;width:auto;height:auto;max-width:100%;max-height:2.5rem;}
.site-footer .zf-brand-image{display:block;object-fit:contain;object-position:left center;width:auto;height:auto;max-width:15rem;max-height:5rem;}
@media(max-width:44.99rem){.site-header .brand:has(.zf-brand-image){width:9rem;height:2rem;}.site-header .zf-brand-image{max-height:2rem;}.site-footer .zf-brand-image{max-width:12rem;max-height:4rem;}}

.site-header .zf-brand-managed:not(:has(img)){max-width:min(55vw,19rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-footer .zf-brand-managed{max-width:100%;overflow-wrap:anywhere}
