/*
Theme Name: JG Portfolio
Author: Jason Goldingay
Description: Portfolio theme for jasongoldingay.com. Dark, image-first.
Version: 1.0
Text Domain: jg
*/
:root{--bg:#0a0a0a;--fg:#f2f0ec;--mute:#8d8a85;--line:#262626;--hot:#ff3b1f;--pad:clamp(16px,3.2vw,44px)}
*{box-sizing:border-box}html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:400 17px/1.55 "Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}
.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;background:var(--fg);color:var(--bg);padding:8px 12px;z-index:99}
:focus-visible{outline:2px solid var(--hot);outline-offset:3px}
.hd{position:fixed;inset:0 0 auto 0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:18px var(--pad);color:#fff;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,0))}
.hd .name{font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:14px}
.hd nav{display:flex;gap:clamp(14px,2.4vw,30px);font-size:13px;letter-spacing:.12em;text-transform:uppercase}
.hd nav a{padding:6px 0;border-bottom:1px solid transparent}.hd nav a:hover,.hd nav a[aria-current]{border-color:currentColor}
.hero{position:relative;height:100svh;min-height:520px;overflow:hidden;background:#000}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.4s ease}
.hero img.on{opacity:1}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 30%,rgba(0,0,0,.72))}
.hero .t{position:absolute;left:var(--pad);right:var(--pad);bottom:clamp(28px,6vh,70px);z-index:2}
.hero h1{margin:0;font-weight:900;text-transform:uppercase;letter-spacing:-.02em;line-height:.86;font-size:clamp(54px,13.5vw,220px)}
.hero p{margin:18px 0 0;max-width:38ch;font-size:clamp(16px,1.5vw,21px);color:#e9e6e0}
.hero .dn{display:inline-block;margin-top:22px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;border-bottom:1px solid var(--hot);padding-bottom:4px}
.wrap{padding:0 var(--pad)}
.sec{padding:clamp(48px,8vw,110px) 0 clamp(20px,3vw,40px)}
.eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute);margin:0 0 18px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tile{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:#111}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1),filter .5s}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.78))}
.tile span{position:absolute;left:18px;right:18px;bottom:16px;z-index:2;font-weight:900;text-transform:uppercase;letter-spacing:-.01em;line-height:.95;font-size:clamp(22px,3.1vw,48px)}
.tile small{display:block;font-weight:400;font-size:11px;letter-spacing:.18em;color:#d6d2cb;margin-bottom:8px}
.tile:hover img,.tile:focus-visible img{transform:scale(1.045)}
.cta{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(24px,5vw,80px);align-items:end;padding:clamp(60px,10vw,140px) 0;border-top:1px solid var(--line);margin-top:clamp(48px,8vw,110px)}
.cta h2,.ph h1{margin:0;font-weight:900;text-transform:uppercase;letter-spacing:-.02em;line-height:.9;font-size:clamp(40px,7.4vw,120px)}
.cta p{margin:0 0 20px;color:#d9d5ce;max-width:44ch}
.btn{display:inline-block;border:1px solid var(--fg);padding:14px 22px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;background:none;color:var(--fg);cursor:pointer;font-family:inherit}
.btn:hover{background:var(--fg);color:var(--bg)}
.ph{padding:clamp(110px,16vw,200px) 0 clamp(26px,4vw,50px)}
.ph p{margin:18px 0 0;color:var(--mute);font-size:13px;letter-spacing:.16em;text-transform:uppercase}
.gal{columns:2;column-gap:6px}
.gal figure{margin:0 0 6px;break-inside:avoid;background:#111}
.gal button{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gal img{width:100%}
.gal figure.wide{column-span:all}
.next{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:clamp(48px,8vw,110px);padding:clamp(36px,6vw,80px) 0}
.next a{font-weight:900;text-transform:uppercase;letter-spacing:-.01em;line-height:1;font-size:clamp(26px,4.6vw,70px)}
.next a small{display:block;font-weight:400;font-size:11px;letter-spacing:.2em;color:var(--mute);margin-bottom:10px}
.next a:hover{color:var(--hot)}
.prose{max-width:62ch;font-size:clamp(18px,1.55vw,22px);line-height:1.5}
.prose p{margin:0 0 1.1em}.prose a{border-bottom:1px solid var(--hot)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,80px);align-items:start}
.two img{width:100%}
form.cf{display:grid;gap:16px;max-width:560px}
.cf label{display:grid;gap:6px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.cf input,.cf select,.cf textarea{font:inherit;font-size:17px;color:var(--fg);background:#121212;border:1px solid #333;padding:13px 12px;border-radius:0;width:100%;letter-spacing:0;text-transform:none}
.cf textarea{min-height:160px;resize:vertical}.cf .hp{position:absolute;left:-9999px}
.note{padding:14px 16px;border:1px solid var(--hot);margin:0 0 24px;max-width:560px}
.offers{display:grid;gap:22px;margin:0 0 10px;padding:0;list-style:none}
.offers li{border-top:1px solid var(--line);padding-top:16px}
.offers b{display:block;font-weight:900;text-transform:uppercase;font-size:22px;letter-spacing:-.01em;margin-bottom:4px}
.offers span{color:#cfcbc4}
.ft{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:28px var(--pad) 36px;border-top:1px solid var(--line);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.ft a:hover{color:var(--fg)}
.lb{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.96);display:none;align-items:center;justify-content:center}
.lb.on{display:flex}.lb img{max-width:96vw;max-height:94svh;width:auto;height:auto}
.lb button{position:absolute;background:none;border:0;color:#fff;font:inherit;font-size:13px;letter-spacing:.16em;text-transform:uppercase;padding:18px;cursor:pointer}
.lb .x{top:4px;right:6px}.lb .p{left:6px;top:50%}.lb .n{right:6px;top:50%}
@media(max-width:820px){.tiles{grid-template-columns:repeat(2,1fr)}.cta,.two{grid-template-columns:1fr}.gal{columns:1}.hd nav{gap:14px;font-size:12px}.hd .name{font-size:12px}}
@media(max-width:480px){.tiles{grid-template-columns:1fr}.tile{aspect-ratio:5/4}.hd .name span{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* fit-one-screen */
.gal{columns:auto;display:grid;grid-template-columns:1fr 1fr;gap:28px 20px;max-width:1500px;margin:0 auto}
.gal figure,.gal figure.wide{margin:0;height:66svh;background:none;display:flex;align-items:center;justify-content:center;grid-column:auto}
.gal button{height:100%;display:flex;align-items:center;justify-content:center}
.gal img{width:auto;height:auto;max-width:100%;max-height:100%}
.ph{padding-bottom:22px}
@media(max-width:820px){.gal{grid-template-columns:1fr}.gal figure,.gal figure.wide{height:auto}.gal button{height:auto}.gal img{height:auto;max-height:74svh;width:auto;max-width:100%;margin:0 auto}}

/* white-galleries */
body.page-template-page-gallery{background:#fff;color:#0a0a0a}
html:has(body.page-template-page-gallery){background:#fff}
body.page-template-page-gallery .hd{color:#0a0a0a;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,0))}
body.page-template-page-gallery .gal img{border:3px solid #0a0a0a}
body.page-template-page-gallery .ph p,body.page-template-page-gallery .next a small,body.page-template-page-gallery .ft{color:#6b6b6b}
body.page-template-page-gallery .next,body.page-template-page-gallery .ft{border-color:#d9d9d9}
body.page-template-page-gallery .ft a:hover{color:#0a0a0a}

/* gallery-wall */
body.page-template-page-gallery{background:#0a0a0a;color:#f2f2f2}
html:has(body.page-template-page-gallery){background:#0a0a0a}
body.page-template-page-gallery .hd{color:#fff;background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,0))}
body.page-template-page-gallery .ph p,body.page-template-page-gallery .next a small,body.page-template-page-gallery .ft{color:#9a9a9a}
body.page-template-page-gallery .next,body.page-template-page-gallery .ft{border-color:#2a2a2a}
body.page-template-page-gallery .gal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;columns:auto;max-width:none;--h:44svh}
body.page-template-page-gallery .gal::before{content:"";order:1;flex:0 0 100%;height:0;margin-top:-8px}
body.page-template-page-gallery .gal figure,body.page-template-page-gallery .gal figure.wide{order:2;margin:0;height:auto;width:auto;min-width:0;display:block;column-span:none;aspect-ratio:var(--ar);flex:var(--ar) 1 calc(var(--ar)*var(--h));max-width:calc(80svh*var(--ar));transition:opacity .3s ease}
body.page-template-page-gallery .gal figure:first-child{order:0;flex:0 0 auto;width:min(100%,calc(80svh*var(--ar)))}
body.page-template-page-gallery .gal button{display:block;width:100%;height:100%}
body.page-template-page-gallery .gal img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;max-height:none;border:0}
@media(hover:hover){body.page-template-page-gallery .gal:has(figure:hover) figure:not(:hover){opacity:.38}}
@media(max-width:820px){body.page-template-page-gallery .gal{gap:6px}body.page-template-page-gallery .gal figure,body.page-template-page-gallery .gal figure.wide,body.page-template-page-gallery .gal figure:first-child{flex:0 0 auto;width:min(100%,calc(78svh*var(--ar)));max-width:100%}}

/* hero-sub */
.hero p.sub{margin:16px 0 0;max-width:none;font-size:clamp(20px,2.7vw,42px);font-weight:700;letter-spacing:.01em;line-height:1.1;color:#fff}
.hero p.sub+p{margin-top:10px}

/* hero-crop */
.hero img[src*="japan-01"]{object-position:50% 90%}
.hero img[src*="festivals-01"]{object-position:50% 27%}

/* ux-seo */
.who{margin:clamp(40px,6vw,80px) 0 0;font-size:clamp(15px,1.4vw,19px);color:#bdbab4;max-width:60ch}
.who a{color:#fff;border-bottom:1px solid currentColor;padding-bottom:2px}
.who+.next{margin-top:clamp(28px,4vw,56px)}
@media(max-width:820px){.hd nav a{padding:13px 0}}
