/* Our Work, on top of site.css and insights.css (which give the hero, the project page's head, body and switch).
   The list is a gallery: pictures large and uneven, words under them, no boxes. */

/* the filters make the right column tall: the title stays at the top, level with the intro */
.work-hero .grid{align-items:start}
.work-filters{margin-top:26px;display:grid;gap:12px;justify-items:start}
.work-filters .ins-topics{margin-top:0;align-items:center}
.work-f-label{min-width:76px;font-size:14.5px;font-weight:600;color:var(--slate)}
.work-f-clear{font-size:15px;font-weight:600;text-decoration:underline;text-decoration-color:var(--hl);text-decoration-thickness:3px;text-underline-offset:4px}

.work-list{padding:0 0 150px}
.work-grid{list-style:none;display:grid;grid-template-columns:repeat(12,1fr);gap:90px 40px;align-items:start}
.work-grid li{grid-column:span 6}
/* every pair is uneven, and the next pair mirrors it */
.work-grid li:nth-child(4n+1),.work-grid li:nth-child(4n+4){grid-column:span 7}
.work-grid li:nth-child(4n+2),.work-grid li:nth-child(4n+3){grid-column:span 5}
.work-grid li:nth-child(4n+2),.work-grid li:nth-child(4n+3){margin-top:120px}
.work-item{display:block}
.work-item figure{position:relative;border-radius:6px;overflow:hidden;background:var(--green);aspect-ratio:4/3}
.work-grid li:nth-child(4n+2) .work-item figure,.work-grid li:nth-child(4n+3) .work-item figure{aspect-ratio:4/5}
.work-item figure img{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.work-item:hover figure img,.work-item:focus-visible figure img{transform:scale(1.035)}
.work-item h2{margin-top:22px;font-weight:700;font-size:clamp(24px,2.2vw,32px);line-height:1.15;letter-spacing:-.03em}
.work-item h2 span{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:.32em;text-underline-offset:-.14em;text-decoration-skip-ink:none;transition:text-decoration-color .3s}
.work-item:hover h2 span,.work-item:focus-visible h2 span{text-decoration-color:var(--hl)}
.work-item .ins-meta{margin-top:10px}
/* a concept says so on its picture */
.work-tag{position:absolute;top:14px;inset-inline-start:14px;display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;background:var(--hl);color:var(--ink);font-weight:600;font-size:14px}

/* the project page */
.work-concept{margin-top:24px;max-width:760px;padding:4px 0 4px 20px;border-left:4px solid var(--hl);font-size:16px;line-height:1.6;color:var(--ink)}
.work-services{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.work-services li{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:500}
.work .post-grid{padding-bottom:110px}
.work-gallery{padding:0 0 140px}
.work-gallery .wrap{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.work-gallery figure{border-radius:6px;overflow:hidden;background:var(--green)}
.work-gallery figure.wide{grid-column:1/-1}
.work-gallery img{width:100%;height:auto}
.work-video video{display:block;width:100%;height:auto;background:#000}
.work-video.embed{aspect-ratio:16/9;background:#000}
.work-video.embed iframe{width:100%;height:100%;border:0;display:block}

[dir=rtl] .work-item h2{letter-spacing:0;line-height:1.35}
.post[dir=rtl] .work-concept{padding:4px 20px 4px 0;border-left:0;border-right:4px solid var(--hl)}

@media (max-width:980px){
  .work-grid{gap:64px 28px}
  .work-grid li:nth-child(4n+2),.work-grid li:nth-child(4n+3){margin-top:60px}
}
@media (max-width:760px){
  .work-grid{grid-template-columns:1fr;gap:56px}
  .work-grid li,.work-grid li:nth-child(n){grid-column:auto;margin-top:0}
  .work-grid li:nth-child(n) .work-item figure{aspect-ratio:4/3}
  .work-list{padding-bottom:100px}
  .work-gallery .wrap{grid-template-columns:1fr;gap:16px}
  .work-gallery{padding-bottom:90px}
}
@media (prefers-reduced-motion:reduce){
  .work-item figure img{transition:none}
}

/* 3.4.0: two buttons while the list is empty */
.ins-empty .ctas{margin-top:30px}
.ins-empty .ctas .btn{margin-top:0}