/* ---------- Work section: three-up portrait grid (desktop/tablet) ---------- */
@media (min-width: 810px) {
  #work { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }
  #work > div:first-child { grid-column: 1 / -1; }
  #work > div:not(:first-child) { display: contents !important; }
  #work > div > div[aria-hidden="true"] { display: none !important; }
  #work a[href*="/work/"] { width: 100% !important; min-width: 0; height: auto !important; flex: none !important; }
  #work a[href*="/work/"] > div:first-child { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; position: relative; border-radius: 22px; overflow: hidden; }
  #work a[href*="/work/"] > div:first-child .ssr-variant > div { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
  #work a[href*="/work/"] > div:first-child img:not(.wc-alt) { width: 100% !important; height: 100% !important; object-fit: cover !important; transform: scale(var(--wc-base-scale, 1)); }
  #work a[href*="/work/"] > div:nth-child(2) { flex-direction: column !important; align-items: flex-start !important; height: auto !important; gap: 4px !important; }
  #work a[href*="/work/"] > div:nth-child(2) > div { width: 100% !important; height: auto !important; }
}
/* focal points so nothing important gets cropped in the portrait frame */
#work a[href$="/work/freedompay"] img:not(.wc-alt) { object-position: 60% 50% !important; }
#work a[href$="/work/pod"] img:not(.wc-alt) { object-position: 52% 50% !important; }
#work a[href$="/work/quicko"] img:not(.wc-alt) { object-position: 50% 50% !important; }
#work a[href$="/work/navyug"] img:not(.wc-alt) { object-position: 47% 50% !important; }
#work a[href$="/work/pantheon"] img:not(.wc-alt) { object-position: 38% 50% !important; }

/* ---------- Liquid reveal layer ---------- */
.wc-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; visibility: hidden; clip-path: polygon(0 0, 0 0, 0 0); will-change: clip-path; }
.wc-layer.is-on { visibility: visible; }
.wc-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .wc-layer { transition: opacity .3s ease; } }

