/* V18 — compact, consistent gallery rhythm */
:root{--tile-ratio:4/3;--tile-gap:22px;--tile-bg:#f0eeeb}
.projects,.disciplines,.overview-grid,.casegrid,.campaign-grid,.nh-ui-grid,.nh-pack-grid,.web-grid,.artgrid,.usp-grid{align-items:start!important;grid-auto-flow:row!important;gap:var(--tile-gap)!important}
.projects,.overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.disciplines,.casegrid,.campaign-grid,.web-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.disciplines{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.projects>.project,.disciplines>.discipline,.casegrid>figure,.nh-ui-grid>a,.compact-grid .product-tile{grid-column:auto!important;min-width:0}
.overview-card{min-width:0}.overview-card h3{font-size:clamp(18px,2vw,24px);line-height:1.2}.overview-grid{row-gap:36px!important}
#work .project .frame,#work .project:first-child .frame,.overview-frame,.archive-card .overview-frame{display:flex!important;align-items:center;justify-content:center;aspect-ratio:var(--tile-ratio)!important;overflow:hidden!important;padding:0!important;background:var(--tile-bg)!important}
#work .project img,#work .project:first-child img,.overview-frame img,.archive-card .overview-frame img{display:block;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;padding:0!important;background:none!important}
#work .project:hover img{transform:none}
.disciplines .discipline:not(:last-child) img,.disciplines .discipline:last-child .art-diptych{width:100%!important;aspect-ratio:var(--tile-ratio)!important;height:auto!important;object-fit:contain!important;background:var(--tile-bg)!important;padding:0!important;overflow:hidden}
.disciplines .discipline:last-child .art-diptych{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:0!important}.disciplines .discipline:last-child .art-diptych img{width:100%!important;height:100%!important;min-height:0;aspect-ratio:auto!important;object-fit:cover!important;object-position:center}
/* Pair vertical artwork instead of making it tiny inside a wide frame. */
.overview-frame.grouped-frame,.paired-editorial{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px!important;aspect-ratio:var(--tile-ratio)!important;background:var(--tile-bg);overflow:hidden;min-width:0}
.grouped-frame>a,.paired-editorial>a{display:block;min-width:0;min-height:0;height:100%;overflow:hidden}.grouped-frame img,.paired-editorial img{width:100%!important;height:100%!important;object-fit:contain!important;aspect-ratio:auto!important}
.stacked .grouped-frame{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.casegrid figure{min-width:0;padding:0!important;background:none!important}.casegrid figure>a{display:block;aspect-ratio:var(--tile-ratio);background:var(--tile-bg);overflow:hidden}.casegrid figure img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important}.casegrid figure .long-preview{object-fit:cover!important;object-position:top}
.kids-cover-grid{max-width:620px}.kids-cover-grid>figure{grid-column:1/-1!important}
.usp-grid.compact-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}.compact-grid figure img,.compact-grid .product-tile img{width:100%!important;aspect-ratio:1!important;height:auto!important;object-fit:contain!important}
.nh-ui-grid,.nh-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.nh-ui-grid>a,.nh-pack-grid>a{display:block;aspect-ratio:var(--tile-ratio);overflow:hidden;background:var(--tile-bg)}.nh-pack-grid>a{aspect-ratio:1}.nh-ui-grid img,.nh-pack-grid img{width:100%!important;height:100%!important;object-fit:contain!important}.nh-ui-grid:has(.paired-editorial){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.web-grid>.cs-img-half{width:100%!important;aspect-ratio:var(--tile-ratio)!important;height:auto!important;object-fit:contain!important;background:var(--tile-bg)}
#art .artgrid img{aspect-ratio:3/4!important;object-fit:contain!important}#art .art-tile{padding:0!important;background:none!important;border:0!important}
/* Long digital pages: a clear crop, with full original available by click. */
.grouped-frame img[src*="press-full"],.grouped-frame img[src$="/contact.webp"]{object-fit:cover!important;object-position:top}
@media(max-width:980px){.projects,.disciplines,.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.usp-grid.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:650px){:root{--tile-gap:16px}.projects,.disciplines,.overview-grid,.casegrid,.campaign-grid,.web-grid,.nh-ui-grid,.nh-ui-grid:has(.paired-editorial){grid-template-columns:1fr!important}.nh-pack-grid,.usp-grid.compact-grid,.artgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.overview-grid{row-gap:26px!important}}

.grouped-frame,.paired-editorial{grid-template-rows:minmax(0,1fr)}.stacked .grouped-frame{grid-template-rows:repeat(2,minmax(0,1fr))}.art-diptych{grid-template-rows:minmax(0,1fr)}

/* v19 – use the original Nature Heart imagery enlarged/full-bleed without extra logo overlays */
#work .project:first-child img{object-fit:cover!important;object-position:center center!important}
.disciplines a.discipline:nth-child(4) img{object-fit:cover!important;object-position:center center!important}

/* V20: original, matching cover artwork */
#work .project .frame,#work .project:first-child .frame{aspect-ratio:1272/960!important;background:transparent!important}
#work .project img,#work .project:first-child img{object-fit:cover!important;object-position:center!important}

/* V24 – edge-to-edge card imagery */
.overview-frame,.archive-card .overview-frame{background:transparent!important;padding:0!important;aspect-ratio:var(--tile-ratio)!important;overflow:hidden!important}
.overview-frame img,.archive-card .overview-frame img{object-fit:cover!important;object-position:center center!important;width:100%!important;height:100%!important}
.disciplines .discipline:not(:last-child) img{width:100%!important;height:100%!important;aspect-ratio:var(--tile-ratio)!important;object-fit:cover!important;object-position:center center!important;background:transparent!important;padding:0!important}
.disciplines .discipline:nth-child(2) img{object-position:center top!important}
.disciplines .discipline:nth-child(3) img{object-position:center center!important}
