/* second versions: light as in the reference, dark through the board tweak */
.d3 .recent,.d3 .gallery{--paper:#fff;--ink:#14161a;--soft-ink:#4b515a;--faint:#8b919a;--edge:#e2e4e8;--box:#f4f5f7;--chip:#fff;background:var(--paper);color:var(--ink)}
.d3 .recent.dark,.d3 .gallery.dark{--paper:#000;--ink:#fff;--soft-ink:#a8a8a8;--faint:#8d8d8d;--edge:#262626;--box:#161616;--chip:#222}
.d3 .recent{margin-top:120px;padding:110px 0 120px}
.d3 .rw-head h2{max-width:760px}
.d3 .rw-list{display:flex;flex-direction:column;gap:32px;margin-top:56px}
.d3 .rw{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);min-height:640px;overflow:hidden;border:1px solid var(--edge);border-radius:20px}
.d3 .rw-text{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:48px}
.d3 .rw-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;width:100%}
.d3 .rw-logo{color:var(--faint);font-size:20px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.d3 .rw-tags,.d3 .g-tags{display:flex;flex-wrap:wrap;gap:6px}
.d3 .rw-tags span{padding:4px 12px;border:1px solid var(--edge);border-radius:8px;color:var(--soft-ink);font-size:14px}
.d3 .rw h3{margin-top:20px;font-size:clamp(34px,3.9vw,56px);line-height:1.05;letter-spacing:-.03em}
.d3 .rw-lead{max-width:30em;font-size:18px;font-weight:500;line-height:1.55}
.d3 .rw-quote{width:100%;margin-top:auto;padding:22px 24px;border-radius:14px;background:var(--box)}
.d3 .rw-sample{display:inline-block;margin-bottom:12px;padding:2px 11px;border:1px solid var(--faint);border-radius:99px;color:var(--soft-ink);font-size:14px;font-weight:600}
.d3 .rw-quote blockquote{margin:0}
.d3 .rw-quote blockquote p{font-size:18px;font-weight:500;line-height:1.55}
.d3 .rw-quote figcaption{display:flex;align-items:center;gap:14px;margin-top:16px}
.d3 .rw-face{display:flex;flex:none;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--about);color:#fff;font-size:14px;font-weight:600}
.d3 .rw-quote figcaption strong,.d3 .rw-quote figcaption>span>span{display:block}
.d3 .rw-quote figcaption>span>span{color:var(--soft-ink);font-size:14px}
.d3 .rw-more,.d3 .g-more{display:inline-flex;align-items:center;gap:10px;padding-bottom:3px;border-bottom:1px solid var(--faint);font-size:16px;font-weight:600}
.d3 .rw-more .ico,.d3 .g-more .ico{transition:transform .35s var(--ease)}
.d3 .rw-more:hover .ico,.d3 .g-card:hover .g-more .ico{transform:translateX(5px)}
.d3 .rw-media{position:relative;display:block;min-height:360px;overflow:hidden}
.d3 .rw-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.d3 .rw:hover .rw-media img{transform:scale(1.045)}
.d3 .recent .more .pill.main{background:var(--ink);color:var(--paper)}
.d3 .gallery{margin-top:48px;padding:40px 0 140px}
.d3 .g-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:28px}
.d3 .g-filters{display:flex;flex-wrap:wrap;gap:8px}
.d3 .g-filters button{font-weight:600!important;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 18px;border:1px solid var(--edge);border-radius:99px;background:var(--box);color:var(--ink);font:inherit;font-size:15px;cursor:pointer;transition:background-color .3s,color .3s}
.d3 .g-filters button span{color:var(--faint);font-size:14px}
.d3 .g-filters button[aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.d3 .g-filters button[aria-pressed="true"] span{color:var(--paper);opacity:.7}
.d3 .g-search{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border:1px solid var(--edge);border-radius:99px}
.d3 .g-search:focus-within{border-color:var(--ink)}
.d3 .g-search input{width:210px;border:0;background:none;color:var(--ink);font:inherit;font-size:15px;outline:0}
.d3 .g-search input::placeholder{color:var(--faint)}
.d3 .g-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.d3 .g-grid li[hidden]{display:none}
.d3 .g-card{position:relative;display:flex;flex-direction:column;height:100%;padding:8px;border-radius:18px;background:var(--box)}
.d3 .g-card:focus-within{outline:2px solid var(--dot);outline-offset:2px}
.d3 .g-cover{overflow:hidden;border-radius:12px;aspect-ratio:4/3}
.d3 .g-cover img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.d3 .g-card:hover .g-cover img{transform:scale(1.045)}
.d3 .g-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:16px;padding:18px 14px 14px}
.d3 .g-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;padding-bottom:16px;border-bottom:1px solid var(--edge)}
.d3 .g-head h2{font-size:22px;letter-spacing:-.015em}
.d3 .g-head h2 a::after{content:"";position:absolute;inset:0}
.d3 .g-tags span{padding:4px 12px;border-radius:99px;background:var(--chip);color:var(--soft-ink);font-size:14px}
.d3 .g-body p{color:var(--soft-ink);font-size:16px}
.d3 .g-more{margin-top:auto}
.d3 .g-next a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:320px;padding:32px;border:2px dashed var(--edge);border-radius:18px;text-align:center;transition:border-color .3s,background-color .3s}
.d3 .g-next a:hover{border-color:var(--dot);background:var(--box)}
.d3 .g-plus{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--dot);color:#04140c;font-size:24px}
.d3 .g-next.whole{grid-column:1/-1}
.d3 .g-next strong{font-size:32px;font-weight:var(--hw);letter-spacing:-.025em}
.d3 .g-next a>span:last-child{color:var(--soft-ink);font-size:17px}
.d3 .g-none{margin-top:24px;color:var(--soft-ink);font-size:17px}
@media (max-width:1080px){
  .d3 .rw{grid-template-columns:minmax(0,1fr);min-height:0}
  .d3 .rw-media{order:-1;min-height:0;aspect-ratio:4/3}
}
@media (max-width:700px){
  .d3 .recent{margin-top:80px;padding:72px 0 80px}
  .d3 .rw-text{padding:24px}
  .d3 .rw h3{margin-top:6px;font-size:32px}
  .d3 .rw-lead,.d3 .rw-quote blockquote p{font-size:16px}
  .d3 .rw-quote{padding:18px}
  .d3 .gallery{margin-top:24px;padding-bottom:96px}
  .d3 .g-grid{grid-template-columns:minmax(0,1fr)}
  .d3 .g-search{width:100%}.d3 .g-search input{flex:1;width:auto}
}

/* black copies: no separate block any more, the section keeps the rhythm of the rest of the site */
.d3 .recent.dark{margin-top:0;padding:150px 0 0}
.d3 .gallery.dark{margin-top:8px;padding-top:40px}
.d3 .recent.dark .rw-dots button:not([aria-current="true"]){background:#5c5c5c}
@media (max-width:700px){.d3 .recent.dark{padding:96px 0 0}.d3 .gallery.dark{margin-top:0;padding-top:24px}}
