body.gallery-page{color:var(--night-ink);background:var(--gallery-surface)}
.gallery-nav{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.15rem max(1.25rem,calc((100vw - var(--max))/2));background:var(--night);border-bottom:1px solid var(--line)}
.gallery-nav>a{display:flex;align-items:center;gap:.6rem;font-size:.9rem;text-decoration:none}
.gallery-nav svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.5}
.gallery-nav strong{font-family:var(--font-display);font-size:1rem}
.gallery-main{width:min(100% - 3rem,var(--max));margin:auto}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding:2rem 0 1.5rem}
.gallery-heading h1{margin:0;font:750 clamp(3rem,6vw,4.5rem)/1 var(--font-display);letter-spacing:-.04em}
.gallery-index{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem}
.gallery-index a{padding:.35rem 0;font-size:1rem;text-decoration-thickness:1px;text-underline-offset:.4em;color:var(--cyan-light)}
.gallery-index a:hover{color:var(--coral)}
.gallery-section{padding:2rem 0 4rem;scroll-margin-top:5rem}
.gallery-section h2{margin:0 0 2rem;padding-top:1rem;border-top:1px solid var(--line);font:700 clamp(1.7rem,3.5vw,2.6rem)/1.1 var(--font-display);letter-spacing:-.03em}
.gallery-section h2 span{font-family:var(--font-body);font-size:.6em;font-weight:400;color:var(--text-on-dark-secondary);letter-spacing:0}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem 1.8rem;align-items:start}
.photo{margin:0;min-width:0}
.photo--wide{grid-column:1/-1}
/* Stagger the Macau portraits so the tower follows the shorter lane photo. */
@media(min-width:38.001rem){
  #macau .photo-grid{grid-template-rows:auto auto min-content auto auto}
  #macau .photo:nth-child(4){grid-column:1;grid-row:3 / span 2}
  #macau .photo:nth-child(5){grid-column:2;grid-row:3}
  #macau .photo:nth-child(6){grid-column:1;grid-row:5}
  #macau .photo:nth-child(7){grid-column:2;grid-row:4 / span 2}
}
.photo a{display:block;text-decoration:none;cursor:zoom-in}
.photo img{width:100%;height:auto;background:var(--night-2)}
#yili .photo:first-child img{max-height:60svh;object-fit:contain;background:transparent}
.photo figcaption{margin-top:.7rem;font-size:.88rem;color:var(--text-on-dark-secondary)}
.photo a:hover img{outline:2px solid var(--cyan-light);outline-offset:4px}
.gallery-section--other .photo{max-width:32rem}
.gallery-footer{margin-top:1.5rem;background:var(--night-2);color:var(--night-ink);border-color:var(--line)}
.lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;inset:0;margin:0;padding:1rem 1.5rem 1.5rem;border:0;color:var(--night-ink);background:var(--gallery-surface)}
.lightbox::backdrop{background:var(--gallery-surface)}
.lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:1rem}
.lightbox-bar,.lightbox-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.lightbox-bar p,.lightbox-bottom p{margin:0}
.lightbox-bar p{font-family:var(--font-display);font-size:1.15rem}
.lightbox button{min-width:44px;min-height:44px;padding:.55rem .9rem;background:transparent;color:var(--night-ink);border:1px solid var(--line);font:500 .9rem var(--font-body);cursor:pointer}
.lightbox button:hover{background:var(--cyan-light);color:var(--night)}
.lightbox figure{min-height:0;margin:0;display:grid;place-items:center}
.lightbox img{width:100%;height:100%;min-height:0;object-fit:contain}
.lightbox-bottom p{color:var(--text-on-dark-secondary);font-size:.9rem;text-align:center}
.lightbox-bottom button{flex-shrink:0}
@media(max-width:60rem){.gallery-heading{display:block}.gallery-index{margin-top:1.5rem}}
@media(max-width:38rem){.gallery-main{width:calc(100% - 2rem)}.gallery-heading{padding:2rem 0 1rem}.gallery-index{gap:.65rem 1.4rem}.photo-grid{grid-template-columns:1fr;gap:2rem}.photo--wide{grid-column:auto}.gallery-section{padding-bottom:2.5rem}.gallery-section h2 span{display:block;margin-top:.6rem}.gallery-nav{padding:1rem}.lightbox{padding:1rem .75rem}.lightbox-bottom{gap:.5rem}.lightbox-bottom p{font-size:.8rem}}
