/* =========================================================================
   WillemB's Photos - public site
   Dark, cinematic, photograph-first.
   ========================================================================= */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg,#0d0d0f);
  color:var(--text,#f3f3f1);
  font-family:var(--font-body,'Inter',system-ui,sans-serif);
  font-size:var(--font-size,17px);
  line-height:1.65;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* -------- Brand name style (Setup > Advanced > Branding > "Brand name style") ---- */
body,body[data-brand="serif"]{
  --brand-font:'Fraunces','Cormorant Garamond',Georgia,serif;
  --brand-transform:none; --brand-tracking:.005em; --brand-weight:500;
}
body[data-brand="script"]{
  --brand-font:'Parisienne','Segoe Script',cursive;
  --brand-transform:none; --brand-tracking:.01em; --brand-weight:400;
}
body[data-brand="modern"]{
  --brand-font:'Jost','Inter',system-ui,sans-serif;
  --brand-transform:none; --brand-tracking:.16em; --brand-weight:400;
}
body[data-brand="classic"]{
  --brand-font:'Cormorant Garamond',Georgia,serif;
  --brand-transform:uppercase; --brand-tracking:.1em; --brand-weight:500;
}
/* Script faces read small - size the brand up a little */
body[data-brand="script"] .brand-name{font-size:2.1rem}
body[data-brand="script"] .footer-name{font-size:2rem}
body[data-brand="script"] .hero-title{font-size:clamp(3.2rem,10vw,6.5rem);line-height:1}
body[data-brand="modern"] .brand-name{font-size:1.3rem}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .25s ease,opacity .25s ease}
a:hover{color:var(--accent,#c9a24b)}
h1,h2,h3,h4{font-family:var(--font-head,'Cormorant Garamond',serif);font-weight:500;line-height:1.15;letter-spacing:.005em}
h1{font-size:calc(1.5rem * var(--head-scale,1.28))}
h2{font-size:calc(1.15rem * var(--head-scale,1.28))}
p{margin:0 0 1rem}
.wrap{width:min(1400px,92vw);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp-field{position:absolute!important;left:-9999px!important;opacity:0!important;height:0!important;width:0!important}
.skip-link{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:.6rem 1rem;z-index:200}
.skip-link:focus{left:0}

:focus-visible{outline:2px solid var(--accent,#c9a24b);outline-offset:3px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:80;
  background:linear-gradient(to bottom,rgba(13,13,15,.92),rgba(13,13,15,.55) 70%,transparent);
  backdrop-filter:blur(6px);
  transition:background .3s ease;
}
.site-header.is-solid{background:rgba(10,10,12,.97);border-bottom:1px solid rgba(255,255,255,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.1rem 0}
.brand{display:flex;flex-direction:column;line-height:1.1}
.logo-center .header-inner{justify-content:center;flex-wrap:wrap;position:relative}
.logo-center .primary-nav{order:3;width:100%;justify-content:center}
.brand-logo{height:var(--logo-size,42px);width:auto}
.brand-name{font-family:var(--brand-font);font-size:1.55rem;line-height:1;letter-spacing:var(--brand-tracking);
  text-transform:var(--brand-transform);font-weight:var(--brand-weight)}
.brand-tagline{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--accent,#c9a24b);opacity:.85;margin-top:.2rem}
.primary-nav{display:flex;align-items:center;gap:1.6rem;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase}
.primary-nav a{opacity:.8}
.primary-nav a:hover,.primary-nav a[aria-current=page]{opacity:1;color:var(--accent,#c9a24b)}
.nav-fav{display:inline-flex;align-items:center;gap:.4rem}
.fav-badge{background:var(--accent,#c9a24b);color:#0d0d0f;border-radius:999px;padding:.05rem .4rem;font-size:.7rem;letter-spacing:0}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.4rem;flex-direction:column;gap:5px}
.nav-toggle span{width:24px;height:2px;background:var(--text);display:block;transition:transform .3s}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:2px;border:1px solid transparent;
  font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;
  font-family:var(--font-body,sans-serif);background:none;color:var(--text);
  transition:all .25s ease;
}
.btn-primary{background:var(--accent,#c9a24b);color:#0d0d0f;font-weight:500}
.btn-primary:hover{filter:brightness(1.12);color:#0d0d0f}
.btn-quiet{border-color:rgba(255,255,255,.28)}
.btn-quiet:hover{border-color:var(--accent,#c9a24b);color:var(--accent,#c9a24b)}
.btn-ghost{border-color:rgba(255,255,255,.2)}
.btn-ghost:hover{border-color:var(--accent)}
.btn-link{padding:.6rem .4rem;letter-spacing:.1em;opacity:.75}
.btn-link:hover{opacity:1}

/* ---------- Flash ---------- */
.flash-wrap{position:fixed;top:5rem;left:50%;transform:translateX(-50%);z-index:120;display:flex;flex-direction:column;gap:.5rem;width:min(560px,92vw)}
.flash{padding:.85rem 1.1rem;border-radius:3px;background:#1b1b1f;border:1px solid rgba(255,255,255,.1);font-size:.9rem}
.flash-success{border-color:rgba(120,190,120,.5)}
.flash-error,.flash-danger{border-color:rgba(220,120,120,.55)}

/* ---------- Hero ---------- */
.hero{position:relative;display:flex;align-items:flex-end;overflow:hidden;min-height:60vh}
.hero-full{min-height:100vh;min-height:100dvh}
.hero-tall{min-height:82vh}
.hero-medium{min-height:60vh}
.hero-media{position:absolute;inset:0}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:var(--focal-x,50%) var(--focal-y,45%);opacity:0;transition:opacity 1.4s ease}
.hero-img.is-active{opacity:1}
.hero-overlay{position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(13,13,15,.92),rgba(13,13,15,.15) 55%,rgba(13,13,15,.4)),
    rgba(13,13,15,calc(var(--overlay,55)/100));
}
.hero-content{position:relative;z-index:2;padding-bottom:12vh;max-width:760px}
.hero-title{font-family:var(--brand-font);font-size:clamp(2.6rem,7vw,5.2rem);margin:0 0 .4rem;
  letter-spacing:var(--brand-tracking);text-transform:var(--brand-transform);font-weight:var(--brand-weight)}
.hero-tagline{font-size:clamp(1rem,2vw,1.35rem);letter-spacing:.28em;text-transform:uppercase;color:var(--accent,#c9a24b);margin-bottom:1.4rem}
.hero-intro{font-size:1.05rem;max-width:46ch;color:rgba(243,243,241,.82)}
.hero-buttons{margin-top:2rem;display:flex;gap:1rem;flex-wrap:wrap}
.hero-scroll{position:absolute;left:50%;bottom:2.2rem;transform:translateX(-50%);z-index:3;width:26px;height:40px;border:1px solid rgba(255,255,255,.4);border-radius:14px}
.hero-scroll span{position:absolute;left:50%;top:8px;width:3px;height:8px;background:#fff;border-radius:2px;transform:translateX(-50%);animation:scrolldot 1.8s infinite}
@keyframes scrolldot{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}100%{opacity:0;transform:translate(-50%,14px)}}

/* ---------- Sections ---------- */
.home-section{padding:5rem 0}
.section-title{font-size:clamp(1.5rem,3vw,2.2rem);margin:0 0 1.8rem;font-weight:400}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:1.8rem;gap:1rem}
.section-link{font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;opacity:.7}
.section-link:hover{opacity:1}
.page-title{font-size:clamp(2rem,4vw,3rem);font-weight:400;margin:0 0 .5rem}
.page-sub{color:rgba(243,243,241,.6);margin-bottom:2rem}
.eyebrow{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--accent,#c9a24b);margin-bottom:.6rem}
.gallery-head{padding:3.5rem 0 1.5rem}
.empty-note{color:rgba(243,243,241,.55);padding:3rem 0}

/* ---------- Photo grid / masonry ---------- */
.photo-grid{display:grid;gap:var(--grid-gap,14px);grid-template-columns:repeat(auto-fill,minmax(min(var(--col-target,430px),100%),1fr))}
.photo-grid.is-masonry{display:block;column-gap:var(--grid-gap,14px);column-width:var(--col-target,430px)}
.photo-grid.is-masonry .photo-card{break-inside:avoid;margin-bottom:var(--grid-gap,14px)}
.photo-card{position:relative;overflow:hidden;background:#151518}
.photo-card img{width:100%;transition:transform .9s cubic-bezier(.2,.7,.2,1),filter .5s;filter:saturate(.95)}
.photo-grid.is-grid .photo-card{aspect-ratio:var(--ar,1.5)}
.photo-grid.is-grid .photo-card img{height:100%;object-fit:cover}
.photo-link{display:block;position:relative}
.photo-hover{position:absolute;inset:0;background:linear-gradient(to top,rgba(13,13,15,.55),transparent 45%);opacity:0;transition:opacity .4s}
.photo-card:hover img{transform:scale(1.04);filter:saturate(1.05)}
.photo-card:hover .photo-hover{opacity:1}
.photo-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:1rem 1.1rem .9rem;font-size:.9rem;color:#fff;
  opacity:0;transform:translateY(8px);transition:all .4s;pointer-events:none;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.photo-card:hover figcaption{opacity:1;transform:none}
.photo-detail-line{font-size:.78rem!important;letter-spacing:.05em;color:var(--accent,#c9a24b)!important;bottom:2.2rem!important}
.fav-btn{position:absolute;top:.6rem;right:.6rem;z-index:3;width:38px;height:38px;border-radius:999px;border:0;
  background:rgba(13,13,15,.45);backdrop-filter:blur(4px);cursor:pointer;display:grid;place-items:center;
  opacity:0;transform:scale(.85);transition:all .3s}
.photo-card:hover .fav-btn,.fav-btn:focus-visible{opacity:1;transform:none}
.fav-btn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.6}
.fav-btn[aria-pressed=true]{opacity:1;transform:none}
.fav-btn[aria-pressed=true] svg{fill:var(--accent,#c9a24b);stroke:var(--accent,#c9a24b)}
/* There is no hover on a touchscreen, so the heart must simply always be visible
   on devices without one (phones and tablets), rather than only reveal on hover. */
@media (hover:none),(pointer:coarse){
  .fav-btn{opacity:1;transform:none;background:rgba(13,13,15,.55)}
}

.load-more-wrap{display:flex;justify-content:center;padding:3rem 0}

/* ---------- Category tiles ---------- */
.category-strip{display:grid;gap:var(--grid-gap,14px);grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.category-tile{position:relative;aspect-ratio:var(--ar,1.3);overflow:hidden;background:#151518}
.category-tile img{width:100%;height:100%;object-fit:cover;transition:transform .9s;filter:brightness(.7)}
.category-tile:hover img{transform:scale(1.05);filter:brightness(.85)}
.category-tile-label{position:absolute;left:0;bottom:0;padding:1.1rem 1.2rem;font-family:var(--font-head,serif);font-size:1.35rem;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.category-tile-label em{display:block;font-family:var(--font-body,sans-serif);font-style:normal;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;opacity:.75;margin-top:.2rem}
.category-wall{display:grid;gap:calc(var(--grid-gap,14px) * 1.5);grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.category-card{background:#151518;overflow:hidden;display:flex;flex-direction:column}
.category-card-media{position:relative;aspect-ratio:1.5;overflow:hidden}
.category-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .9s;filter:brightness(.72)}
.category-card:hover .category-card-media img{transform:scale(1.05)}
.category-card-body{padding:1.3rem 1.4rem 1.6rem}
.category-card-body h2{margin:0 0 .3rem;font-size:1.5rem}
.category-card-body p{margin:0;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent,#c9a24b)}
.category-card-desc{margin-top:.7rem!important;font-size:.9rem!important;letter-spacing:0!important;text-transform:none!important;color:rgba(243,243,241,.6)!important}
.category-hero{position:relative;min-height:44vh;display:flex;align-items:flex-end;background:#151518 var(--cover) center/cover no-repeat}
.category-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(13,13,15,.95),rgba(13,13,15,.35))}
.category-hero-content{position:relative;z-index:2;padding:3rem 0}

/* ---------- Gallery filters ---------- */
.gallery-filters{margin-top:1.5rem;display:flex;flex-direction:column;gap:1rem}
.filter-row{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.filter-search{flex:1;min-width:200px}
.input{width:100%;background:#151518;border:1px solid rgba(255,255,255,.14);color:var(--text);
  padding:.7rem .9rem;border-radius:2px;font-family:inherit;font-size:.95rem}
.input:focus{border-color:var(--accent,#c9a24b);outline:none}
select.input{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--accent) 50%),linear-gradient(135deg,var(--accent) 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 13px) 55%;background-size:5px 5px;background-repeat:no-repeat;padding-right:2.4rem}
.filter-chips{display:flex;gap:.5rem;flex-wrap:wrap}
.chip{padding:.4rem .95rem;border:1px solid rgba(255,255,255,.16);border-radius:999px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
.chip:hover{opacity:1;border-color:var(--accent)}
.chip.is-active{background:var(--accent,#c9a24b);color:#0d0d0f;border-color:var(--accent);opacity:1}
.filter-more summary{cursor:pointer;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;opacity:.7;padding:.5rem 0}
.check{display:inline-flex;align-items:center;gap:.5rem;font-size:.85rem}

/* ---------- Lightbox ---------- */
.lightbox{position:fixed;inset:0;z-index:150;background:rgba(8,8,10,.97);display:none;opacity:0;transition:opacity .3s}
.lightbox.is-open{display:block;opacity:1}
.lb-inner{position:absolute;inset:0;display:grid;grid-template-columns:1fr minmax(300px,380px)}
.lb-stage{display:flex;align-items:center;justify-content:center;padding:2.5rem;overflow:hidden}
.lb-image{max-width:100%;max-height:calc(100vh - 5rem);object-fit:contain;box-shadow:0 20px 80px rgba(0,0,0,.6)}
.lb-meta{border-left:1px solid rgba(255,255,255,.08);padding:3.2rem 2rem 2rem;overflow-y:auto;background:#101012}
.lb-title{font-size:1.7rem;margin:0 0 .4rem;font-weight:400}
.lb-species{color:var(--accent,#c9a24b);margin-bottom:.3rem}
.lb-sci{font-style:italic;opacity:.7;display:block;font-size:.9rem}
.lb-location{font-size:.9rem;color:rgba(243,243,241,.6)}
.lb-category{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;margin:.6rem 0 1rem}
.lb-story{font-size:.95rem;color:rgba(243,243,241,.8);margin:1rem 0}
.lb-exif{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;margin:1.4rem 0;font-size:.82rem}
.lb-exif dt{color:rgba(243,243,241,.45);text-transform:uppercase;letter-spacing:.08em;font-size:.68rem}
.lb-exif dd{margin:0}
.lb-actions{display:flex;flex-direction:column;gap:.6rem;margin-top:1.2rem}
.lb-actions .btn{width:100%}
.lb-secondary{margin-top:1.8rem;padding-top:1.4rem;border-top:1px solid rgba(255,255,255,.08)}
.lb-secondary .lb-story{margin-top:0}
.lb-close{position:absolute;top:1rem;right:1.3rem;z-index:5;background:none;border:0;color:#fff;font-size:2.4rem;line-height:1;cursor:pointer;opacity:.7}
.lb-close:hover{opacity:1}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;background:rgba(13,13,15,.4);border:0;color:#fff;font-size:2.4rem;width:56px;height:72px;cursor:pointer;opacity:.6}
.lb-nav:hover{opacity:1}
.lb-prev{left:0}.lb-next{left:calc(100% - 380px - 56px)}
[data-fav][aria-pressed=true] .fav-off{display:none}
[data-fav]:not([aria-pressed=true]) .fav-on{display:none}

/* ---------- Modal ---------- */
.modal-root{position:fixed;inset:0;z-index:160;background:rgba(8,8,10,.9);display:none;align-items:center;justify-content:center;padding:1.5rem}
.modal-root.is-open{display:flex}
.modal-card{background:#141416;border:1px solid rgba(255,255,255,.1);max-width:560px;width:100%;padding:2.4rem;position:relative;border-radius:3px;max-height:90vh;overflow-y:auto}
.modal-close{position:absolute;top:.8rem;right:1rem;background:none;border:0;color:#fff;font-size:1.8rem;cursor:pointer;opacity:.6}
.modal-close:hover{opacity:1}
.modal-lead{color:rgba(243,243,241,.75)}
.licence-box{background:#0e0e10;border:1px solid rgba(255,255,255,.08);padding:1rem 1.2rem;max-height:200px;overflow-y:auto;font-size:.85rem;color:rgba(243,243,241,.7);margin:1rem 0;white-space:pre-line}
.check-licence{align-items:flex-start;gap:.7rem;margin:1rem 0;font-size:.88rem;line-height:1.5}
.check-licence input{margin-top:.25rem}
.modal-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.2rem}
.modal-fineprint{font-size:.8rem;color:rgba(243,243,241,.5);margin-top:1.2rem}

/* ---------- Photo detail page ---------- */
.photo-page-stage{background:#0a0a0c;display:flex;justify-content:center;padding:3vh 0;min-height:60vh;align-items:center}
.photo-page-img{max-height:88vh;max-height:88dvh;width:auto;object-fit:contain}
.photo-page-body{display:grid;grid-template-columns:1fr 300px;gap:3rem;padding:3.5rem 0}
.photo-page-title{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:400;margin:.2rem 0 .6rem}
.photo-page-species{color:var(--accent,#c9a24b)}
.photo-page-species em{opacity:.7}
.photo-page-location{color:rgba(243,243,241,.6);font-size:.92rem}
.photo-page-story{margin:1.6rem 0;color:rgba(243,243,241,.82)}
.photo-page-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}
.photo-page-exif h2{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(243,243,241,.45);margin-bottom:1rem}
.photo-page-exif dl{display:grid;gap:.7rem;font-size:.88rem}
.photo-page-exif dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:rgba(243,243,241,.4)}
.photo-page-nav{display:flex;justify-content:space-between;gap:1rem;padding:2rem 0 5rem;border-top:1px solid rgba(255,255,255,.07);font-size:.85rem}
.photo-page-nav a:hover{color:var(--accent)}

/* ---------- Prose / forms ---------- */
.prose-wrap,.form-wrap,.about-wrap{width:min(760px,92vw);margin:4rem auto 6rem}
.about-wrap{width:min(820px,92vw)}
.prose{color:rgba(243,243,241,.82);font-size:1.03rem}
.prose p{margin-bottom:1.2rem}
/* Both About images (the header portrait and the story photo) render at the
   same width so the page feels consistent. Change --about-img to resize both. */
.about-wrap{--about-img:300px}
.about-header{display:flex;gap:2rem;align-items:flex-start;margin-bottom:2.5rem;flex-wrap:wrap}
.about-header>div{flex:1 1 300px;min-width:min(100%,260px)}
.about-portrait{width:var(--about-img);max-width:100%;height:auto;border-radius:3px;filter:grayscale(.05)}
.about-intro{font-size:1.2rem;line-height:1.6;color:rgba(243,243,241,.9);margin-bottom:1.4rem}
.about-intro p{margin:0 0 .8rem}
.about-story.has-image{display:grid;grid-template-columns:var(--about-img) minmax(0,1fr);gap:2rem;align-items:start}
.about-story-figure{margin:0}
.about-story-figure img{width:100%;height:auto;border-radius:3px;filter:grayscale(.05)}
@media (max-width:720px){
  .about-portrait{width:100%;max-width:360px}
  .about-story.has-image{grid-template-columns:1fr}
}
.equipment-list{columns:2;gap:2rem;color:rgba(243,243,241,.75);font-size:.95rem}
.about-social{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2.5rem}
.stack-form{display:flex;flex-direction:column;gap:1.2rem;margin-top:2rem}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(243,243,241,.6)}
.field-check{flex-direction:row;align-items:center;gap:.6rem}
.field-help{font-size:.78rem;color:rgba(243,243,241,.45);margin:0}
.field-error,.field-errors{color:#e08a8a;font-size:.82rem;margin:0}
.req{color:var(--accent,#c9a24b)}
.notice-soft{background:#151518;border:1px solid rgba(255,255,255,.08);padding:.8rem 1rem;font-size:.88rem;color:rgba(243,243,241,.65)}
.contact-aside{margin-top:2.5rem;font-size:.9rem;color:rgba(243,243,241,.6)}
.center-block{text-align:center}
.enquiry-photo-strip{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0 2rem}
.enquiry-photo-strip figure{margin:0;width:150px;font-size:.75rem;color:rgba(243,243,241,.6)}
.enquiry-photo-strip img{border-radius:2px;margin-bottom:.4rem}
.fav-toolbar{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}
.fav-remove{position:absolute;bottom:.5rem;left:.5rem;z-index:3}
.fav-remove .btn{background:rgba(13,13,15,.6);padding:.4rem .7rem;font-size:.65rem}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid rgba(255,255,255,.07);padding:4rem 0 3rem;margin-top:4rem}
.footer-inner{display:flex;flex-direction:column;gap:1.4rem;align-items:center;text-align:center}
.footer-name{font-family:var(--brand-font);font-size:1.35rem;letter-spacing:var(--brand-tracking);
  text-transform:var(--brand-transform);font-weight:var(--brand-weight)}
.footer-tag{display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--accent,#c9a24b);margin-top:.3rem}
.footer-nav{display:flex;gap:1.4rem;flex-wrap:wrap;justify-content:center;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;opacity:.65}
.footer-nav a:hover{opacity:1;color:var(--accent)}
.footer-social{display:flex;gap:1.2rem;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;opacity:.7}
.footer-copy{font-size:.78rem;color:rgba(243,243,241,.4);margin:0}

/* ---------- Error pages ---------- */
.page-error{background:#0d0d0f}
.error-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:2rem}
.error-code{font-size:.75rem;letter-spacing:.3em;text-transform:uppercase;color:var(--accent,#c9a24b)}
.error-title{font-size:clamp(1.8rem,5vw,3rem);font-weight:400;margin:.5rem 0 1rem}
.error-text{color:rgba(243,243,241,.6);max-width:40ch;margin:0 auto 2rem}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  /* The whole viewer scrolls as one column - image, then the action buttons
     right below it, then the story/EXIF as the part you scroll further for.
     Close and prev/next stay fixed to the screen so they're always reachable,
     instead of a small nested scrollbox that's easy to miss on a touchscreen. */
  .lb-inner{display:block;grid-template-columns:none;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .lb-stage{max-height:60vh;padding:1.2rem}
  .lb-image{max-height:100%}
  .lb-meta{border-left:0;border-top:1px solid rgba(255,255,255,.08);max-height:none;overflow-y:visible;padding:1.6rem 1.2rem 2.5rem}
  .lb-close,.lb-nav{position:fixed}
  .lb-next{left:auto;right:0}
  .photo-page-body{grid-template-columns:1fr}
  .field-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .nav-toggle{display:flex}
  .primary-nav{position:fixed;inset:0 0 0 auto;width:min(80vw,320px);background:#0e0e10;flex-direction:column;align-items:flex-start;
    padding:6rem 2rem 2rem;gap:1.6rem;transform:translateX(100%);transition:transform .35s ease;z-index:90;font-size:.9rem}
  .primary-nav.is-open{transform:none}
  body.nav-open{overflow:hidden}
  .hero-content{padding-bottom:16vh}
  .equipment-list{columns:1}
  .home-section{padding:3.5rem 0}
}

/* ---------- Phones: photo first, then details ----------
   Portrait: one big photo per row in the gallery; the viewer shows a large
   photo with its details directly underneath. Landscape (short screens): the
   photo fills the screen height; "Details" scrolls down to the info. Tapping
   the photo (or pinching) opens full-screen zoom - see lightbox.js. */
.lb-peek{display:none}
@media (orientation:portrait) and (max-width:720px){
  .photo-grid{grid-template-columns:1fr}
  .photo-grid.is-masonry{column-width:auto;column-count:1}
}
@media (max-width:1000px),(orientation:landscape) and (max-height:520px){
  .lb-inner{display:block;grid-template-columns:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .lb-stage{max-height:none;min-height:60vh;min-height:60dvh;padding:.5rem 0;touch-action:pan-y;position:relative}
  .lb-image{max-width:100%;max-height:78vh;max-height:78dvh;width:auto;height:auto;box-shadow:none;touch-action:pan-y;
    will-change:transform;-webkit-user-select:none;user-select:none}
  .lb-close{top:.4rem;right:.4rem;width:48px;height:48px;border-radius:999px;font-size:2rem;opacity:.9;
    background:rgba(13,13,15,.55);display:grid;place-items:center}
  .lb-nav{width:44px;height:64px;font-size:2rem;opacity:.55}
  /* full-screen photo mode (tap the photo / pinch): the stage covers the screen */
  .lightbox.is-full .lb-inner{overflow:hidden}
  .lightbox.is-full .lb-stage{position:fixed;inset:0;z-index:3;height:100vh;height:100dvh;min-height:0;padding:0;
    background:#000;touch-action:none;overflow:hidden}
  .lightbox.is-full .lb-image{max-height:100vh;max-height:100dvh;touch-action:none}
  .lightbox.is-full .lb-peek{display:none}
  .lightbox.is-zoomed .lb-nav{display:none}
}
@media (orientation:landscape) and (max-height:520px){
  .lb-stage{height:100vh;height:100dvh;min-height:0;padding:0}
  .lb-image{max-height:100vh;max-height:100dvh}
  .lb-peek{display:block;position:absolute;left:50%;bottom:.5rem;transform:translateX(-50%);z-index:4;
    max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:999px;
    background:rgba(13,13,15,.7);color:#fff;font:inherit;font-size:.8rem;padding:.45rem 1rem;cursor:pointer}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
  .photo-grid.is-masonry{column-width:auto;column-count:3}
  .gallery-head{padding:1.5rem 0 1rem}
  .photo-page-stage{padding:0;min-height:0}
  .photo-page-img{max-height:100vh;max-height:100dvh}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
