/* DD Work — WORK section only. Fonts/colours inherit from the theme.
 * Selectors are prefixed with .ddw / .ddw-lb so they outrank the theme's
 * generic `button`, `button:hover` (dark fill, white bold text, padding) and
 * `a`, `a:hover` (red, underlined) rules in style.css. */
.ddw-landing{max-width:1440px;margin:0 auto;padding:56px 32px 96px}
.ddw-category{max-width:1240px;margin:0 auto;padding:56px 32px 96px}
.ddw-sq{display:block;width:100%;aspect-ratio:1;background:#eeebe4;overflow:hidden}
.ddw-sq img{display:block;width:100%;height:100%;object-fit:cover}

.ddw .ddw-landing-title{font-weight:300;font-size:40px;line-height:1.2;letter-spacing:.02em;margin:0 0 32px}
.ddw-landing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 12px}
.ddw a.ddw-cat{display:flex;flex-direction:column;gap:10px;min-width:0;container-type:inline-size;color:inherit;text-decoration:none}
.ddw a.ddw-cat:hover,.ddw a.ddw-cat:focus{color:inherit;opacity:.82}
.ddw-cat-name{font-size:clamp(12px,3.9cqi,15px);letter-spacing:.05em;line-height:1.4}
@media (min-width:1200px){.ddw-cat-name{white-space:nowrap}}

.ddw a.ddw-back{display:inline-block;margin-bottom:22px;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#6b6459;text-decoration:none}
.ddw a.ddw-back:hover,.ddw a.ddw-back:focus{color:#8a6f4e}
.ddw-head{border-bottom:1px solid rgba(28,26,23,.12);padding-bottom:18px;margin-bottom:44px}
.ddw .ddw-title{font-weight:300;font-size:20px;line-height:1.3;letter-spacing:.02em;margin:0}
.ddw .ddw-intro{margin:12px 0 0;max-width:68ch;font-size:16px;line-height:1.65;text-wrap:pretty}
.ddw-works{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:48px 30px}
.ddw button.ddw-work,.ddw button.ddw-work:hover,.ddw button.ddw-work:focus{display:flex;flex-direction:column;gap:13px;width:100%;text-align:left;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;white-space:normal;cursor:pointer}
.ddw button.ddw-work:hover{opacity:.85}
.ddw-work-title{font-size:18px;font-weight:600;line-height:1.3}

@media (max-width:719px){
  .ddw-landing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ddw-cat-name{font-size:13px;white-space:normal}
}

.ddw a:focus,.ddw button:focus{outline:0}
.ddw a:focus-visible,.ddw button:focus-visible{outline:1px solid #8a6f4e;outline-offset:4px}

/* Lightbox */
.ddw-lb{position:fixed;inset:0;z-index:99998;background:rgba(17,16,14,.95);display:flex;flex-direction:column;padding:64px 80px 28px;animation:ddw-fade .2s ease both}
.ddw-lb:focus{outline:0}
@keyframes ddw-fade{from{opacity:0}to{opacity:1}}
.ddw-lb-media{position:relative;flex:1;min-height:0;container-type:size}
.ddw-lb-media img,.ddw-lb-media video{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto}
.ddw-lb-media video{background:#000}
.ddw-lb-media iframe{position:absolute;inset:0;margin:auto;width:min(100cqw,177.78cqh);height:min(56.25cqw,100cqh);border:0;background:#000}
.ddw-lb .ddw-lb-cap{margin:16px auto 0;max-width:80ch;text-align:center;font-size:14px;line-height:1.5;color:#d8d4cc;text-wrap:pretty}
.ddw-lb button,.ddw-lb button:hover,.ddw-lb button:focus{position:absolute;display:flex;align-items:center;justify-content:center;background:none;border:0;padding:0;color:#fff;cursor:pointer}
.ddw-lb button[hidden]{display:none}
.ddw-lb .ddw-lb-prev,.ddw-lb .ddw-lb-next{top:50%;transform:translateY(-50%);width:48px;height:72px;opacity:.6}
.ddw-lb .ddw-lb-prev{left:8px}.ddw-lb .ddw-lb-next{right:8px}
.ddw-lb .ddw-lb-close{top:12px;right:12px;width:44px;height:44px;opacity:.7}
.ddw-lb button:hover,.ddw-lb button:focus-visible{opacity:1}
.ddw-lb button:focus{outline:0}
.ddw-lb button:focus-visible{outline:1px solid rgba(255,255,255,.5);outline-offset:2px}
body.ddw-lock{overflow:hidden}
/* Logged in: the admin bar (z-index 99999) stays on top so "Edit Work" is reachable. */
.admin-bar .ddw-lb{padding-top:96px}
.admin-bar .ddw-lb .ddw-lb-close{top:44px}
@media (max-width:782px){.admin-bar .ddw-lb .ddw-lb-close{top:58px}}
@media (max-width:719px){
  .ddw-lb{padding:60px 12px 20px}
  .admin-bar .ddw-lb{padding-top:106px}
  .ddw-lb .ddw-lb-prev,.ddw-lb .ddw-lb-next{width:40px;height:40px;border-radius:50%;background:rgba(17,16,14,.45);opacity:1}
  .ddw-lb .ddw-lb-prev:hover,.ddw-lb .ddw-lb-next:hover,.ddw-lb .ddw-lb-prev:focus,.ddw-lb .ddw-lb-next:focus{background:rgba(17,16,14,.45)}
  .ddw-lb .ddw-lb-prev svg,.ddw-lb .ddw-lb-next svg{width:11px;height:22px}
  .ddw-lb .ddw-lb-prev svg{margin-right:2px}.ddw-lb .ddw-lb-next svg{margin-left:2px}
  .ddw-lb .ddw-lb-prev{left:16px}.ddw-lb .ddw-lb-next{right:16px}
}
