/* Inner pages (Travel / Events / Web / Mix) — builds on home.css tokens */
body.ab-page nav ul a[aria-current]{color:var(--ink);background:rgba(241,236,227,.1)}
body.ab-page .pg{max-width:1280px;margin:0 auto;padding:clamp(110px,16vh,170px) clamp(16px,4vw,40px) clamp(48px,8vw,100px)}
body.ab-page .pg-head{margin-bottom:clamp(36px,6vw,80px)}
body.ab-page .label{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
body.ab-page .pg-head h1{font-family:var(--serif)!important;font-weight:400!important;font-size:clamp(56px,11vw,168px)!important;line-height:.95!important;letter-spacing:-.04em!important;color:var(--ink)!important;margin:0 0 18px!important}
body.ab-page .pg-head h1 em{font-style:italic;color:var(--accent)}
body.ab-page .lede{font-size:clamp(18px,1.8vw,24px);line-height:1.3;max-width:34ch;color:var(--muted)}
body.ab-page .grid{list-style:none;padding:0;margin:0;column-count:3;column-gap:clamp(18px,2.4vw,36px)}
body.ab-page .tile{break-inside:avoid;margin:0 0 clamp(26px,3.4vw,48px);opacity:0;animation:rise .8s cubic-bezier(.2,.8,.2,1) forwards}
body.ab-page .tile:nth-child(3n+2){animation-delay:.1s} body.ab-page .tile:nth-child(3n){animation-delay:.2s}
@keyframes rise{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
body.ab-page .tile a{display:block;text-decoration:none;color:inherit}
body.ab-page .ph{display:block;background:var(--print);padding:clamp(5px,.6vw,9px);aspect-ratio:var(--ar);box-shadow:0 22px 44px -20px rgba(0,0,0,.75);
  transform:rotate(var(--r));transition:transform .4s cubic-bezier(.2,.8,.2,1)}
body.ab-page .tile a:hover .ph,body.ab-page .tile a:focus-visible .ph{transform:rotate(0) scale(1.03)}
body.ab-page .ph img{width:100%;height:100%;object-fit:cover;display:block;opacity:1!important}
body.ab-page .cap{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-top:14px;padding:0 4px}
body.ab-page .cap b{font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.2}
body.ab-page .cap time{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
@media(max-width:900px){body.ab-page .grid{column-count:2}}
@media(max-width:560px){body.ab-page .grid{column-count:1}}
@media(prefers-reduced-motion:reduce){body.ab-page .tile{animation:none;opacity:1}body.ab-page .ph{transition:none}}
/* year grouping */
body.ab-page .years{position:sticky;top:72px;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:10px 0;margin:0 0 clamp(24px,4vw,48px);scrollbar-width:none;
  background:linear-gradient(var(--paper) 70%,transparent)}
body.ab-page .years::-webkit-scrollbar{display:none}
body.ab-page .years a{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:22px;text-decoration:none;font-size:15px;color:var(--ink)}
body.ab-page .years a span{font-size:12px;color:var(--muted)}
body.ab-page .years a:hover{border-color:var(--accent);color:var(--accent)}
body.ab-page .year{scroll-margin-top:150px;margin-bottom:clamp(36px,6vw,80px)}
body.ab-page .year h2{font-family:var(--serif)!important;font-weight:400!important;font-size:clamp(40px,6vw,88px)!important;letter-spacing:-.04em!important;line-height:1!important;color:var(--accent)!important;margin:0 0 clamp(20px,3vw,36px)!important;font-style:italic}
/* events wall */
body.ab-page .wallsec h2{font-family:var(--serif)!important;font-weight:400!important;font-size:clamp(30px,4.4vw,64px)!important;line-height:1.05!important;letter-spacing:-.03em!important;max-width:18ch;margin:0 0 28px!important;color:var(--ink)!important}
body.ab-page .wallsec h2 em{font-style:italic;color:var(--accent)}
body.ab-page .filters{display:grid;gap:10px;margin-bottom:14px}
body.ab-page .fgroup{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
body.ab-page .fgroup::-webkit-scrollbar{display:none}
body.ab-page .chip{flex:none;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:22px;background:transparent;color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
body.ab-page .chip.sm{min-height:36px;padding:0 14px;font-size:13px;color:var(--muted)}
body.ab-page .chip:hover{border-color:var(--accent)}
body.ab-page .chip[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
body.ab-page .count{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:6px 0 0}
body.ab-page .wallwrap{position:relative;margin:0 calc(-1*clamp(16px,4vw,40px))}
body.ab-page .wallwrap .wall{padding-top:36px}
body.ab-page .wall .empty{color:var(--muted);padding:40px 0}
body.ab-page figure.frame a{display:block;text-decoration:none;color:inherit}
body.ab-page figure.frame figcaption{flex-direction:column;gap:4px}
body.ab-page figure.frame figcaption b{font-family:var(--serif);font-weight:400;font-size:17px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ab-page .arrow{position:absolute;top:45%;z-index:4;width:52px;height:52px;border:0;border-radius:50%;background:var(--ink);color:var(--paper);font-size:30px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.5)}
body.ab-page .arrow.l{left:clamp(8px,2vw,24px)}body.ab-page .arrow.r{right:clamp(8px,2vw,24px)}
@media(pointer:coarse){body.ab-page .arrow{display:none}}
/* events wall: compact top so the photos are visible straight away */
body.ab-page .pg.haswall{padding-top:88px;padding-bottom:40px}
body.ab-page .haswall .pg-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px clamp(16px,3vw,40px);margin-bottom:10px}
body.ab-page .haswall .pg-head .label{display:none}
body.ab-page .haswall .pg-head h1{font-size:clamp(40px,5.2vw,76px)!important;margin:0!important}
body.ab-page .haswall .pg-head .lede{font-size:clamp(15px,1.3vw,18px);max-width:none;margin:0}
body.ab-page .haswall .wallsec h2{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0!important}
body.ab-page .haswall .filters{margin-top:6px}
body.ab-page .haswall .count{margin-top:2px}
body.ab-page .haswall .wallwrap .wall{padding-top:20px;padding-bottom:28px}
/* events wall v3: kill inherited section padding, tighter header */
body.ab-page .pg.haswall{padding-top:78px!important}
body.ab-page .haswall .wallsec,body.ab-page .haswall section.wallsec{padding:0!important;margin:0!important;min-height:0!important}
body.ab-page .haswall .pg-head{margin:0 0 4px!important}
body.ab-page .haswall .pg-head h1{font-size:clamp(34px,4.2vw,60px)!important;line-height:1!important}
body.ab-page .haswall .filters{margin:0!important;gap:6px}
body.ab-page .haswall .chip{min-height:40px}
body.ab-page .haswall .chip.sm{min-height:32px}
body.ab-page .haswall .wallwrap .wall{padding-top:12px!important}
/* events wall v4: balanced spacing */
body.ab-page .pg.haswall{padding-top:92px!important}
body.ab-page .haswall .pg-head{margin:0 0 22px!important}
body.ab-page .haswall .filters{gap:10px}
body.ab-page .haswall .chip{min-height:44px}
body.ab-page .haswall .chip.sm{min-height:36px}
body.ab-page .haswall .count{margin-top:14px!important}
body.ab-page .haswall .wallwrap .wall{padding-top:22px!important}
/* events wall v5: photo height follows the window so the full print + caption is visible */
body.ab-page .haswall figure.frame img{aspect-ratio:auto!important;height:clamp(170px,calc(100svh - 380px),560px)!important;width:100%;object-fit:cover}
body.ab-page .haswall figure.frame{flex-basis:clamp(200px,22vw,330px)}
body.ab-page.admin-bar .haswall figure.frame img{height:clamp(170px,calc(100svh - 412px),560px)!important}
/* v6: a bit shorter, a bit wider */
body.ab-page .haswall figure.frame img{height:clamp(160px,calc(100svh - 440px),540px)!important}
body.ab-page.admin-bar .haswall figure.frame img{height:clamp(160px,calc(100svh - 472px),540px)!important}
body.ab-page .haswall figure.frame{flex-basis:clamp(240px,26vw,380px)}
/* list pages (Travel / Web / Mix): compact header and year sections, like Events */
body.ab-page .pg:not(.single):not(.contactpg):not(.haswall){padding-top:92px!important;padding-bottom:40px}
body.ab-page .pg:not(.single):not(.contactpg):not(.haswall) .pg-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px clamp(16px,3vw,40px);margin:0 0 22px!important}
body.ab-page .pg:not(.single):not(.contactpg):not(.haswall) .pg-head .label{display:none}
body.ab-page .pg:not(.single):not(.contactpg):not(.haswall) .pg-head h1{font-size:clamp(34px,4.2vw,60px)!important;line-height:1!important;margin:0!important}
body.ab-page .pg:not(.single):not(.contactpg):not(.haswall) .pg-head .lede{font-size:clamp(15px,1.3vw,18px);max-width:none;margin:0}
body.ab-page section.year{padding:0!important;min-height:0!important;margin:0 0 clamp(28px,4vw,56px)}
body.ab-page .year h2{font-size:clamp(32px,4vw,56px)!important;margin:0 0 16px!important}
body.ab-page .years{margin-bottom:20px;top:68px}
body.ab-page .year{scroll-margin-top:130px}

/* events: opening animation */
@keyframes ab-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes ab-chip{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ab-slide{from{opacity:0;transform:translateX(180px) rotate(calc(var(--r) + 9deg))}to{opacity:1;transform:rotate(var(--r))}}
@keyframes ab-develop{from{filter:brightness(.12) grayscale(1) blur(7px)}60%{filter:brightness(.7) grayscale(.6) blur(2px)}to{filter:none}}
@keyframes ab-fadeup{from{opacity:0;transform:translateY(14px) rotate(var(--r))}to{opacity:1;transform:rotate(var(--r))}}
@media(prefers-reduced-motion:no-preference){
  body.ab-page .haswall .pg-head h1{animation:ab-rise .8s cubic-bezier(.2,.8,.2,1) both}
  body.ab-page .haswall .pg-head .lede{animation:ab-rise .8s .12s cubic-bezier(.2,.8,.2,1) both}
  body.ab-page .haswall .chip{animation:ab-chip .5s cubic-bezier(.2,.8,.2,1) both}
  body.ab-page .haswall .count{animation:ab-rise .6s .9s both}
  body.ab-page .haswall figure.frame{animation:ab-slide 1.1s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:.45s}
  body.ab-page .haswall figure.frame img{animation:ab-develop 1.8s ease-out backwards;animation-delay:1s}
  body.ab-page .haswall figure.frame:nth-child(n+9){animation:ab-fadeup .6s ease-out backwards;animation-delay:0s}
  body.ab-page .haswall figure.frame:nth-child(n+9) img{animation:ab-develop .9s ease-out backwards;animation-delay:0s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(1){animation-delay:0.35s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(1){animation-delay:0.59s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(2){animation-delay:0.40s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(2){animation-delay:0.63s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(3){animation-delay:0.45s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(3){animation-delay:0.67s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(4){animation-delay:0.50s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(4){animation-delay:0.71s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(5){animation-delay:0.55s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(5){animation-delay:0.75s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(6){animation-delay:0.60s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(6){animation-delay:0.79s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(7){animation-delay:0.65s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(7){animation-delay:0.83s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(8){animation-delay:0.70s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(8){animation-delay:0.87s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(9){animation-delay:0.75s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(9){animation-delay:0.91s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(10){animation-delay:0.80s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(10){animation-delay:0.95s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(11){animation-delay:0.85s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(11){animation-delay:0.99s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(12){animation-delay:0.90s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(12){animation-delay:1.03s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(13){animation-delay:0.95s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(13){animation-delay:1.07s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(14){animation-delay:1.00s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(14){animation-delay:1.11s}
body.ab-page .haswall .fgroup:nth-of-type(1) .chip:nth-child(15){animation-delay:1.05s}body.ab-page .haswall .fgroup:nth-of-type(2) .chip:nth-child(15){animation-delay:1.15s}
body.ab-page .haswall figure.frame:nth-child(1){animation-delay:0.59s}body.ab-page .haswall figure.frame:nth-child(1) img{animation-delay:1.04s}
body.ab-page .haswall figure.frame:nth-child(2){animation-delay:0.73s}body.ab-page .haswall figure.frame:nth-child(2) img{animation-delay:1.18s}
body.ab-page .haswall figure.frame:nth-child(3){animation-delay:0.87s}body.ab-page .haswall figure.frame:nth-child(3) img{animation-delay:1.32s}
body.ab-page .haswall figure.frame:nth-child(4){animation-delay:1.01s}body.ab-page .haswall figure.frame:nth-child(4) img{animation-delay:1.46s}
body.ab-page .haswall figure.frame:nth-child(5){animation-delay:1.15s}body.ab-page .haswall figure.frame:nth-child(5) img{animation-delay:1.60s}
body.ab-page .haswall figure.frame:nth-child(6){animation-delay:1.29s}body.ab-page .haswall figure.frame:nth-child(6) img{animation-delay:1.74s}
body.ab-page .haswall figure.frame:nth-child(7){animation-delay:1.43s}body.ab-page .haswall figure.frame:nth-child(7) img{animation-delay:1.88s}
body.ab-page .haswall figure.frame:nth-child(8){animation-delay:1.57s}body.ab-page .haswall figure.frame:nth-child(8) img{animation-delay:2.02s}
}
/* end of the wall */
body.ab-page .wall .endcard{flex:0 0 clamp(200px,22vw,300px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--muted);text-align:center;padding:0 24px}
body.ab-page .wall .endcard p{margin:0;font-family:var(--serif);font-size:22px;color:var(--ink)}
body.ab-page .wall .endcard button{min-height:44px;padding:0 20px;border:1px solid var(--line);border-radius:22px;background:transparent;color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
body.ab-page .wall .endcard button:hover{border-color:var(--accent)}
