/* PHOTOIRIDE gallery page — extends the shared site tokens. */
.gallery-page{background:var(--bg);color:var(--text)}
.gallery-page [hidden]{display:none!important}
.gallery-page button{color:inherit}
.gallery-page .site-header{background:rgba(12,22,36,.94)}
.gallery-page .primary-nav a[aria-current="page"]{color:var(--gold)}
.gallery-hero{padding-block:136px 56px;border-bottom:1px solid var(--line)}
.gallery-hero-top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.gallery-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--secondary);font-size:13px}
.gallery-back:hover{color:var(--gold)}
.gallery-hero h1{max-width:13ch;margin:0;font:400 clamp(56px,7vw,110px)/.97 var(--serif);letter-spacing:-.035em;text-wrap:balance}
.gallery-hero-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);align-items:end;gap:48px;margin-top:40px}
.gallery-hero-bottom p{max-width:45ch;margin:0;color:var(--secondary);font-size:18px;line-height:1.6}
.gallery-hero-bottom .gallery-index{color:var(--gold);font-size:11px;font-weight:700;letter-spacing:.17em;line-height:1.5;text-transform:uppercase;text-align:right}
.gallery-main{padding-block:48px 96px}
.gallery-toolbar{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:40px}
.gallery-toolbar h2{margin:0 0 8px;font:400 clamp(32px,3.5vw,52px)/1.08 var(--serif)}
.gallery-count{margin:0;color:var(--secondary);font-size:14px}
.gallery-filters{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.gallery-filter{min-height:44px;padding:8px 16px;border:1px solid var(--line);background:transparent;font-size:12px;font-weight:700;letter-spacing:.07em;transition:background var(--fast),border-color var(--fast),color var(--fast)}
.gallery-filter:hover{border-color:var(--gold);color:var(--gold)}
.gallery-filter[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--bg)}
.gallery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:32px 20px}
.gallery-item{grid-column:span 4;display:block;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;text-align:left;cursor:zoom-in}
.gallery-item.is-landscape{grid-column:span 6}
.gallery-item-image{display:block;overflow:hidden;background:var(--surface)}
.gallery-item img{display:block;width:100%;height:auto;transition:transform var(--normal) var(--ease-out)}
@media(hover:hover){.gallery-item:hover img{transform:scale(1.025)}}
.gallery-item-copy{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid var(--line);margin-top:16px}
.gallery-item-title{font:400 clamp(24px,2.2vw,36px)/1.15 var(--serif)}
.gallery-item-type{color:var(--secondary);font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;text-align:right}
.gallery-empty{padding:48px 0;color:var(--secondary)}
.gallery-next{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:48px;border-top:1px solid var(--line)}
.gallery-next h2{max-width:16ch;margin:0;font:400 clamp(34px,3.5vw,56px)/1.05 var(--serif)}
.gallery-next .button{flex:none}
.gallery-lightbox{width:min(calc(100vw - 32px),1160px);max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);background:var(--bg);color:var(--text);overflow:auto}
.gallery-lightbox::backdrop{background:rgba(2,8,14,.88)}
.lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.lightbox-label{margin:0;color:var(--gold);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.lightbox-close,.lightbox-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);background:transparent;font-size:24px;line-height:1}
.lightbox-close:hover,.lightbox-arrow:hover{border-color:var(--gold);color:var(--gold)}
.lightbox-content{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:16px;padding:20px}
.lightbox-figure{min-width:0;margin:0;text-align:center}
.lightbox-figure img{display:block;max-width:100%;max-height:calc(100dvh - 190px);width:auto;height:auto;margin-inline:auto;object-fit:contain}
.lightbox-figure figcaption{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;margin-top:14px;color:var(--secondary);font-size:14px}
.lightbox-figure strong{color:var(--text);font-weight:600}
@media(max-width:1023px){
  .gallery-hero{padding-block:124px 48px}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-item,.gallery-item.is-landscape{grid-column:auto}
  .gallery-toolbar{align-items:start;flex-direction:column}
  .gallery-filters{justify-content:flex-start}
}
@media(max-width:767px){
  .gallery-hero{padding-block:108px 36px}
  .gallery-hero-top{margin-bottom:20px}
  .gallery-hero h1{font-size:clamp(46px,12vw,72px)}
  .gallery-hero-bottom{display:block;margin-top:24px}
  .gallery-hero-bottom p{font-size:16px;line-height:1.6}
  .gallery-hero-bottom .gallery-index{margin-top:24px;text-align:left}
  .gallery-main{padding-block:36px 64px}
  .gallery-toolbar{gap:20px;margin-bottom:28px}
  .gallery-filters{width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .gallery-filters::-webkit-scrollbar{display:none}
  .gallery-filter{flex:none}
  .gallery-grid{grid-template-columns:1fr;gap:36px}
  .gallery-item-copy{gap:12px}
  .gallery-next{display:block;padding-block:36px}
  .gallery-next .button{margin-top:24px;width:100%;min-width:0}
  .gallery-lightbox{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .lightbox-content{grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;padding:12px}
  .lightbox-figure img{max-height:calc(100dvh - 200px)}
}
@media(prefers-reduced-motion:reduce){.gallery-page img,.gallery-page a,.gallery-page button{transition:none!important}}
