/*
Theme Name: Willem—Dirk Portfolio
Theme URI: https://willem-dirk.com
Author: OpenAI for Willem—Dirk du Toit
Description: A lightweight editorial photography portfolio with editable projects, homepage imagery, personal work and contact details.
Version: 5.8
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: willem-dirk
*/
:root{--paper:#f5f2eb;--ink:#111;--muted:#646464;--gap:clamp(16px,1.6vw,30px);--pad:clamp(28px,5vw,92px);--sans:Arial,Helvetica,sans-serif;--condensed:"Arial Narrow","Aptos Narrow","Helvetica Neue Condensed","Roboto Condensed",Arial,sans-serif;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.4}img{display:block;max-width:100%;height:auto}a{color:inherit;text-decoration:none}.site-shell{min-height:100vh}.site-header{display:flex;align-items:center;justify-content:space-between;padding:28px var(--pad) 10px;gap:20px}.brand-small{font-size:13px;letter-spacing:.14em;font-weight:600;text-transform:uppercase;white-space:nowrap}.site-nav{display:flex;gap:clamp(16px,2.1vw,34px);font-size:13px}.site-nav a{padding-bottom:5px;border-bottom:1px solid transparent}.site-nav a:hover,.site-nav .current-menu-item>a,.site-nav .is-active{border-color:currentColor}.mobile-toggle{display:none;background:none;border:0;font:inherit;padding:7px}
.main{padding:20px var(--pad) 55px}.home-grid{display:grid;grid-template-columns:1.08fr .92fr;grid-template-rows:auto auto;column-gap:clamp(24px,5vw,82px);row-gap:0;align-items:start;padding-top:28px}.mega-name{font-family:var(--sans);font-weight:900;text-transform:uppercase;line-height:.61;letter-spacing:-.065em;font-stretch:condensed;font-size:clamp(78px,9.6vw,168px);margin:0;max-width:720px;position:relative;z-index:2}.mega-name span{display:block}.mega-name span+span{margin-top:-.025em}.home-image-top{padding-top:14px}.home-image-top img,.home-image-bottom img{width:100%;object-fit:contain}.home-bottom-left{margin-top:clamp(-150px,-8.5vw,-80px);position:relative;z-index:1}.home-right-copy{align-self:start;padding:clamp(42px,5vw,88px) 0 40px}.home-phrase{font-family:var(--sans);font-size:clamp(30px,3.2vw,54px);line-height:1.1;font-weight:400;margin:0 0 90px}.explore-link{display:flex;justify-content:flex-end;align-items:center;gap:26px;text-transform:uppercase;letter-spacing:.22em;font-size:12px}.arrow{font-size:38px;line-height:1}
.page-head{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:end;margin:55px 0 34px}.page-title,.project-title{font-family:var(--sans);font-size:clamp(38px,5.2vw,78px);font-weight:400;letter-spacing:-.035em;line-height:1;margin:0}.project-meta{font-size:13px;color:#303030;min-width:170px}.project-number{font-size:13px;letter-spacing:.07em;margin-bottom:15px}.project-gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap)}.project-gallery figure{margin:0}.project-gallery .full{grid-column:1/-1}.project-gallery .half-left{grid-column:1/6}.project-gallery .half-right{grid-column:6/-1}.project-gallery .portrait-left{grid-column:1/7}.project-gallery .portrait-right{grid-column:7/-1}.project-gallery img{width:100%;height:auto;object-fit:contain}.project-caption{font-size:14px;color:var(--muted);margin-top:10px}.project-footer{display:flex;justify-content:space-between;align-items:center;padding:38px 0 10px;font-size:14px}.project-nav{display:flex;gap:28px;align-items:center}.project-nav-link{font-size:13px;letter-spacing:.02em}.project-nav-link:hover{text-decoration:underline;text-underline-offset:4px}
.archive-list{max-width:1120px;margin:70px auto 30px}.archive-row{display:grid;grid-template-columns:48px minmax(220px,1fr) 70px 180px;gap:18px;align-items:center;padding:18px 0}.archive-index{font-size:12px;letter-spacing:.08em;color:#666}.archive-title{font-family:var(--sans);font-weight:400;letter-spacing:-.02em;font-size:clamp(18px,1.7vw,24px);line-height:1.15}.archive-rule{height:1px;background:#777;width:55px}.archive-meta{font-size:13px;color:#666}.archive-bottom{display:flex;justify-content:space-between;align-items:flex-end;margin-top:70px;font-size:15px}.archive-bottom small{font-size:12px;color:#666;max-width:190px}
.personal-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);margin-top:45px}.personal-grid .wide{grid-column:1/-1}.personal-grid img{width:100%;height:auto}.personal-tag{margin-top:70px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#555}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,100px);align-items:start;max-width:1220px;margin:70px auto}.about-photo img{width:100%}.about-copy{padding-top:70px}.about-copy h1{font-family:var(--sans);font-size:clamp(32px,3.8vw,54px);font-weight:400;line-height:1.08;margin:0 0 35px}.about-copy p{font-family:var(--sans);font-size:clamp(18px,1.9vw,28px);margin:0 0 42px}.contact-block{border-top:1px solid #333;padding-top:32px}.contact-block h2{font-size:15px;font-weight:400;margin:0 0 12px}.email-image{max-width:520px;margin:28px 0 36px}.instagram{font-size:15px}.contact-page{max-width:1000px;margin:90px auto}.contact-page h1{font-family:var(--sans);font-size:clamp(38px,5.2vw,76px);font-weight:400;letter-spacing:-.03em;margin:0 0 45px}.contact-page .email-image{max-width:600px}.site-footer{display:flex;justify-content:space-between;align-items:center;padding:30px var(--pad) 38px;font-size:12px;color:#555}.empty-state{padding:70px 0;font-size:18px;color:#555}
@media(max-width:900px){.site-header{align-items:flex-start}.mobile-toggle{display:block}.site-nav{display:none;position:absolute;right:20px;top:65px;background:var(--paper);padding:18px 22px;flex-direction:column;z-index:20;border:1px solid #ddd}.site-nav.open{display:flex}.home-grid{grid-template-columns:1fr;grid-template-rows:auto;gap:34px}.mega-name{font-size:clamp(82px,20vw,150px);line-height:.64}.mega-name span+span{margin-top:-.02em}.home-image-top{padding:0}.home-bottom-left{margin:0}.home-right-copy{padding:0}.home-phrase{margin-bottom:45px}.page-head{grid-template-columns:1fr;margin-top:35px}.project-gallery{grid-template-columns:1fr}.project-gallery .full,.project-gallery .half-left,.project-gallery .half-right,.project-gallery .portrait-left,.project-gallery .portrait-right{grid-column:1}.archive-row{grid-template-columns:42px 1fr;gap:12px}.archive-rule{display:none}.archive-meta{grid-column:2;font-size:13px}.personal-grid,.about-grid{grid-template-columns:1fr}.personal-grid .wide{grid-column:1}.about-copy{padding-top:0}.site-footer{flex-direction:column;align-items:flex-start;gap:8px}}
@media(max-width:560px){.project-footer{align-items:flex-start;gap:20px;flex-direction:column}.project-nav{width:100%;justify-content:space-between;gap:16px}.project-nav-link{font-size:12px}.brand-small{font-size:11px}.main{padding-top:8px}.mega-name{font-size:22vw}.home-phrase{font-size:12vw}.archive-title{font-size:20px}.site-header{padding-top:20px}.project-title{font-size:10.5vw}.page-title{font-size:10.5vw}.about-grid{margin-top:35px}.about-copy h1{font-size:11vw}.about-copy p{font-size:7vw}}

.section-head{margin:58px auto 12px;max-width:1120px}.section-title{font-family:var(--sans);font-size:clamp(38px,5.2vw,78px);font-weight:400;letter-spacing:-.035em;line-height:1;margin:0}.section-list{margin-top:38px}

/* v2.2 section layouts */
.structures-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(26px,4vw,64px);max-width:1320px;margin:42px auto 30px}.structure-card{display:block}.structure-thumb{background:#ebe7df;overflow:hidden;aspect-ratio:4/3}.structure-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.structure-card:hover .structure-thumb img{transform:scale(1.012)}.structure-thumb-placeholder{width:100%;height:100%;background:#e8e4dc}.structure-card-meta{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:baseline;padding-top:12px}.structure-index{font-size:11px;letter-spacing:.08em;color:#777}.structure-name{font-size:18px;letter-spacing:-.015em}.structure-client{font-size:12px;color:#777;text-align:right}
.image-wall{max-width:1500px;margin:42px auto 20px}.image-wall-item{display:block}.image-wall-item img{width:100%;height:auto;display:block}.image-wall.layout-masonry{columns:3 300px;column-gap:var(--gap)}.image-wall.layout-masonry .image-wall-item{break-inside:avoid;margin:0 0 var(--gap)}.image-wall.layout-one{display:grid;grid-template-columns:1fr;gap:clamp(28px,4vw,64px);max-width:1320px}.image-wall.layout-two,.image-wall.layout-three,.image-wall.layout-four{display:grid;gap:var(--gap);align-items:start}.image-wall.layout-two{grid-template-columns:repeat(2,minmax(0,1fr))}.image-wall.layout-three{grid-template-columns:repeat(3,minmax(0,1fr))}.image-wall.layout-four{grid-template-columns:repeat(4,minmax(0,1fr))}.image-wall.layout-editorial{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap);align-items:start}.image-wall.layout-editorial .image-wall-item{grid-column:span 4}.image-wall.layout-editorial .image-wall-item:nth-child(8n+1){grid-column:1/-1}.image-wall.layout-editorial .image-wall-item:nth-child(8n+2){grid-column:1/7}.image-wall.layout-editorial .image-wall-item:nth-child(8n+3){grid-column:7/-1}.image-wall.layout-editorial .image-wall-item:nth-child(8n+4){grid-column:2/6}.image-wall.layout-editorial .image-wall-item:nth-child(8n+5){grid-column:7/12}.image-wall.layout-editorial .image-wall-item:nth-child(8n+6){grid-column:1/9}.image-wall.layout-editorial .image-wall-item:nth-child(8n+7){grid-column:9/-1}.image-wall.layout-editorial .image-wall-item:nth-child(8n){grid-column:3/11}.wddt-lightbox{position:fixed;inset:0;background:rgba(12,12,12,.94);z-index:9999;display:none;align-items:center;justify-content:center;padding:5vw}.wddt-lightbox.open{display:flex}.wddt-lightbox img{max-width:94vw;max-height:90vh;width:auto;height:auto}.wddt-lightbox-close{position:absolute;right:24px;top:18px;border:0;background:none;color:#fff;font-size:42px;line-height:1;cursor:pointer;font-weight:300}
@media(max-width:900px){.image-wall.layout-four{grid-template-columns:repeat(3,minmax(0,1fr))}.image-wall.layout-editorial .image-wall-item,.image-wall.layout-editorial .image-wall-item:nth-child(n){grid-column:span 6}.image-wall.layout-editorial .image-wall-item:nth-child(5n+1){grid-column:1/-1}}
@media(max-width:760px){.structures-grid{grid-template-columns:1fr}.structure-card-meta{grid-template-columns:30px 1fr}.structure-client{grid-column:2;text-align:left}.image-wall.layout-masonry{columns:2 180px}.image-wall.layout-three,.image-wall.layout-four{grid-template-columns:repeat(2,minmax(0,1fr))}.image-wall.layout-editorial{grid-template-columns:repeat(2,minmax(0,1fr))}.image-wall.layout-editorial .image-wall-item,.image-wall.layout-editorial .image-wall-item:nth-child(n){grid-column:span 1}.image-wall.layout-editorial .image-wall-item:nth-child(4n+1){grid-column:1/-1}}
@media(max-width:480px){.image-wall.layout-masonry{columns:1}.image-wall.layout-two,.image-wall.layout-three,.image-wall.layout-four,.image-wall.layout-editorial{grid-template-columns:1fr}.image-wall.layout-editorial .image-wall-item,.image-wall.layout-editorial .image-wall-item:nth-child(n){grid-column:1}.structure-name{font-size:17px}}


/* v2.4 Structures index — quieter scale, shorter proportions, inward thumbnails */
.section-structures .section-head,.section-commercial .section-head{max-width:1120px;margin:42px 0 18px}
.section-structures .section-title,.section-commercial .section-title{font-family:var(--sans);font-size:clamp(38px,5.2vw,72px);font-weight:400;letter-spacing:-.035em;line-height:1;text-transform:none}
.structures-index{max-width:1040px;margin:18px 0 36px}
.structure-row{display:grid;grid-template-columns:44px auto minmax(50px,1fr) 104px;gap:14px;align-items:center;min-height:72px;padding:5px 0}
.structure-row:hover .structure-name{opacity:.62}
.structure-row:hover .structure-thumb-small img{transform:scale(1.025)}
.structure-index{font-size:12px;letter-spacing:.05em;color:#6f7378;font-variant-numeric:tabular-nums}
.structure-name{font-family:var(--sans);font-size:clamp(20px,1.8vw,28px);font-weight:400;letter-spacing:-.02em;line-height:1.1;text-transform:none;white-space:nowrap;transition:opacity .18s ease}
.structure-dots{align-self:center;border-top:1px dotted rgba(70,74,78,.34);height:0;min-width:40px}
.structure-thumb-small{display:block;width:104px;aspect-ratio:16/9;overflow:hidden;background:#e9e5dc;justify-self:end}
.structure-thumb-small img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.structure-thumb-small .structure-thumb-placeholder{display:block;width:100%;height:100%;background:#e9e5dc}
@media(max-width:900px){
  .structure-row{grid-template-columns:38px auto minmax(24px,1fr) 92px;gap:10px;min-height:64px}
  .structure-name{font-size:clamp(19px,3.8vw,25px)}
  .structure-thumb-small{width:92px}
}
@media(max-width:620px){
  .section-structures .section-title,.section-commercial .section-title{font-size:11vw}
  .structure-row{grid-template-columns:30px minmax(0,auto) 1fr 74px;gap:8px;min-height:58px}
  .structure-index{font-size:11px}
  .structure-name{font-size:clamp(17px,4.8vw,22px);white-space:normal}
  .structure-thumb-small{width:74px}
  .structure-dots{min-width:18px}
}


/* v2.5 optional project grid layout */
.project-grid-layout{margin-top:0}
.project-grid-hero{margin:0 0 var(--gap)}
.project-grid-hero img{display:block;width:100%;height:auto}
.project-grid-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);align-items:start}
.project-grid-item{margin:0;min-width:0;overflow:hidden}
.project-grid-item.span-2{grid-column:span 2}
.project-grid-item img{display:block;width:100%;height:auto;object-fit:contain}
.project-grid-item:not(.crop-original) img{width:100%;height:100%;object-fit:cover;object-position:var(--wddt-focus,50% 50%)}
.project-grid-item:not(.crop-original){width:100%}
@media(max-width:700px){
  .project-grid-items{grid-template-columns:1fr}
  .project-grid-item.span-2{grid-column:span 1}
}


/* v2.6 unified typography family */
body,.site-nav,.brand-small,.mega-name,.home-phrase,.explore-link,.page-title,.project-title,.project-meta,.project-number,.project-caption,.project-footer,.project-nav-link,.archive-title,.archive-meta,.personal-tag,.section-title,.structure-name,.structure-index,.structure-client,.about-copy,.about-copy h1,.about-copy p,.about-body,.contact-block,.site-footer,.empty-state{font-family:var(--sans)}

.instagram{display:flex;align-items:center;margin-top:10px}.instagram-icon-link{display:inline-flex;align-items:center;justify-content:center;color:#111;text-decoration:none}.instagram-icon{width:18px;height:18px;display:block}.instagram-icon-link:hover{opacity:.75}

.instagram-icon-link{gap:.45em}.instagram-icon{width:1em;height:1em;flex:0 0 auto}.instagram-handle{font:inherit;line-height:1}

/* v2.9 Instagram link reliability */
.instagram,.instagram-icon-link{position:relative;z-index:3}.instagram-icon-link{pointer-events:auto;cursor:pointer}

/* v3.0 explicit Instagram URL */
.instagram{position:relative;z-index:10}.instagram-icon-link{position:relative;z-index:11;pointer-events:auto;cursor:pointer;display:inline-flex;align-items:center;gap:.45em;width:max-content}.instagram-icon-link::after{content:"";position:absolute;inset:-8px;z-index:-1}.instagram-handle{pointer-events:none}.instagram-icon{pointer-events:none}

/* v3.6 align Moments/Horizons headings with gallery edge */
.section-moments .section-head,
.section-horizons .section-head{
  max-width:1500px;
  margin:42px auto 18px;
}
.section-moments .image-wall.layout-one,
.section-horizons .image-wall.layout-one{
  max-width:1500px;
}

/* v3.8 give Structures index a little more left breathing room */
.section-structures .section-head,
.section-structures .structures-index,.section-commercial .structures-index{
  margin-left:clamp(14px,1.7vw,28px);
}
@media(max-width:620px){
  .section-structures .section-head,
  .section-structures .structures-index,.section-commercial .structures-index{margin-left:8px;}
}

/* v3.9 Structures index — continuous dotted guide behind copy + thumbnail */
.section-structures .structure-row,.section-commercial .structure-row{position:relative;isolation:isolate;}
.section-structures .structure-row::before,.section-commercial .structure-row::before{content:"";position:absolute;left:58px;right:0;top:50%;border-top:1px dotted rgba(70,74,78,.34);transform:translateY(-50%);z-index:0;pointer-events:none;}
.section-structures .structure-index,.section-structures .structure-name,.section-structures .structure-thumb-small,.section-commercial .structure-index,.section-commercial .structure-name,.section-commercial .structure-thumb-small{position:relative;z-index:1;}
.section-structures .structure-name,.section-commercial .structure-name{background:var(--paper);padding:0 12px 0 0;}
.section-structures .structure-thumb-small,.section-commercial .structure-thumb-small{background:var(--paper);box-shadow:0 0 0 7px var(--paper);}
.section-structures .structure-dots,.section-commercial .structure-dots{border:0;height:0;min-width:40px;}
@media(max-width:900px){.section-structures,.section-commercial .structure-row::before{left:48px;}.section-structures .structure-thumb-small{box-shadow:0 0 0 5px var(--paper);}}
@media(max-width:560px){.section-structures,.section-commercial .structure-row::before{left:42px;}.section-structures .structure-name{padding-right:8px;}.section-structures .structure-thumb-small{box-shadow:0 0 0 4px var(--paper);}}

/* v4.0 Structures index — lower dotted leader only; keep all other row styling unchanged */
.section-structures .structure-dots,.section-commercial .structure-dots{
  transform:translateY(14px);
}
@media(max-width:900px){
  .section-structures .structure-dots,.section-commercial .structure-dots{transform:translateY(11px);}
}
@media(max-width:620px){
  .section-structures .structure-dots,.section-commercial .structure-dots{transform:translateY(8px);}
}


/* v4.1 Structures index — dotted leader sits below title/thumb, only between them */
.section-structures .structure-row::before,.section-commercial .structure-row::before{display:none!important;content:none!important;}
.section-structures .structure-name,.section-commercial .structure-name{background:transparent!important;padding-right:0!important;}
.section-structures .structure-thumb-small,.section-commercial .structure-thumb-small{background:#e9e5dc!important;box-shadow:none!important;}
.section-structures .structure-dots,.section-commercial .structure-dots{
  border-top:1px dotted rgba(70,74,78,.34)!important;
  height:0!important;
  min-width:40px;
  align-self:center;
  transform:translateY(13px)!important;
}
@media(max-width:900px){
  .section-structures .structure-dots,.section-commercial .structure-dots{transform:translateY(10px)!important;}
}
@media(max-width:620px){
  .section-structures .structure-dots,.section-commercial .structure-dots{transform:translateY(7px)!important;}
}

/* v4.2 Structures index — title and thumbnail sit on the same baseline/leader */
.section-structures .structure-row,.section-commercial .structure-row{
  align-items:end!important;
}
.section-structures .structure-index,
.section-structures .structure-name,
.section-structures .structure-thumb-small,
.section-structures .structure-dots,.section-commercial .structure-dots{
  align-self:end!important;
}
.section-structures .structure-dots,.section-commercial .structure-dots{
  transform:none!important;
  margin-bottom:0!important;
}


/* v4.3 deliberate row-by-row project layouts */
.project-rows-layout{display:flex;flex-direction:column;gap:var(--gap);margin-top:0}
.project-row{margin:0;min-width:0}
.project-row img{display:block;width:100%;height:auto}
.project-row-full{width:100%}
.project-row-full:not(.crop-original){overflow:hidden}
.project-row-full:not(.crop-original) img{width:100%;height:100%;object-fit:cover;object-position:var(--wddt-focus,50% 50%)}
.project-row-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);align-items:stretch}
.project-row-pair .pair-item{margin:0;aspect-ratio:4/5;overflow:hidden}
.project-row-pair .pair-item img{width:100%;height:100%;object-fit:cover;object-position:var(--wddt-focus,50% 50%)}
.project-row-solo{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.project-row-solo .project-row-item{margin:0;min-width:0}
.project-row-solo.solo-left .project-row-item{grid-column:1}
.project-row-solo.solo-right .project-row-item{grid-column:2}
.project-row-solo.solo-center{grid-template-columns:1fr minmax(0,50%) 1fr}
.project-row-solo.solo-center .project-row-item{grid-column:2}
.project-row-solo .project-row-item:not(.crop-original){overflow:hidden}
.project-row-solo .project-row-item:not(.crop-original) img{width:100%;height:100%;object-fit:cover;object-position:var(--wddt-focus,50% 50%)}
@media(max-width:760px){
  .project-row-pair{grid-template-columns:1fr 1fr;gap:10px}
  .project-row-solo,.project-row-solo.solo-center{grid-template-columns:1fr}
  .project-row-solo.solo-left .project-row-item,.project-row-solo.solo-right .project-row-item,.project-row-solo.solo-center .project-row-item{grid-column:1}
}

/* v4.4 slightly narrower overall content column */
@media(min-width:901px){
  .main{padding-left:var(--pad);padding-right:var(--pad);}
}

/* v4.5 — slightly more framing between gallery/project images */
:root{--image-gap:clamp(22px,2.2vw,42px)}
.project-gallery{gap:var(--image-gap)}
.project-grid-items{gap:var(--image-gap)}
.project-rows-layout{gap:var(--image-gap)}
.project-row-pair{gap:var(--image-gap)}
.project-row-solo{gap:var(--image-gap)}
.image-wall.layout-two,
.image-wall.layout-three,
.image-wall.layout-four,
.image-wall.layout-editorial{gap:var(--image-gap)}
.image-wall.layout-masonry{column-gap:var(--image-gap)}
.image-wall.layout-masonry .image-wall-item{margin-bottom:var(--image-gap)}
@media(max-width:900px){
  :root{--image-gap:clamp(16px,3vw,26px)}
}


/* v5.3 — Vimeo / YouTube items inside project galleries */
.project-video,.project-row-video{width:100%;margin:0}
.project-video-embed{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#111}
.project-video-embed iframe,.project-video-embed video{position:absolute;inset:0;width:100%!important;height:100%!important;border:0;display:block}
.project-video-fallback{display:flex;aspect-ratio:16/9;align-items:center;justify-content:center;background:#e9e5dc;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.project-gallery .project-video.full{grid-column:1/-1}
.project-rows-layout .project-row-video{display:block}
