/* Gallery page – load after style.css */
header.solid{position:relative;background:var(--ink)}
header.solid .logo,header.solid nav a{color:var(--white)}

.gallery-head{background:var(--ink);color:var(--white);padding:72px 5vw 56px}
.gallery-head h2{font-size:clamp(3rem,10vw,7rem);line-height:.9;margin-bottom:16px}
.gallery-head h2 span{color:var(--blue)}
.gallery-head h2 span+span{color:var(--pink)}
.gallery-head p{max-width:34rem;color:var(--white)}

.gallery{background:var(--white);padding:64px 5vw 96px}

/* four columns, each pushed down a different amount */
.board{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;align-items:start}
.col{display:grid;gap:20px}
.col:nth-child(1){margin-top:0}
.col:nth-child(2){margin-top:64px}
.col:nth-child(3){margin-top:24px}
.col:nth-child(4){margin-top:88px}

/* coloured tiles */
.tile{margin:0;padding:10px;border-radius:10px;background:var(--blue)}
.tile.pink{background:var(--pink)}
.tile.white{background:var(--white);box-shadow:inset 0 0 0 4px var(--pink)}
.tile button{display:block;position:relative;width:100%;padding:0;border:0;border-radius:6px;overflow:hidden;cursor:zoom-in;background:rgba(255,255,255,.45)}
.tile.white button{background:var(--blue)}
.tile .ph{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--display);font-size:3rem;color:var(--white)}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile figcaption{padding:10px 4px 2px;font-size:.92rem;font-weight:600;color:var(--ink)}
.tall button{aspect-ratio:3/4}
.square button{aspect-ratio:1/1}
.wide button{aspect-ratio:4/3}

/* viewer */
dialog.lightbox{border:0;background:transparent;max-width:92vw;max-height:92vh;margin:auto;overflow:visible}
dialog.lightbox::backdrop{background:rgba(29,42,58,.9)}
dialog.lightbox img{display:block;max-width:92vw;max-height:80vh;border-radius:8px}
dialog.lightbox p{color:var(--white);text-align:center;margin-top:12px}
dialog.lightbox button{position:absolute;top:-14px;right:-14px;width:40px;height:40px;border:0;border-radius:50%;background:var(--pink);color:var(--ink);font-size:1.4rem;font-weight:600;cursor:pointer}

@media (max-width:900px){
  .board{grid-template-columns:repeat(2,1fr)}
  .col:nth-child(1),.col:nth-child(3){margin-top:0}
  .col:nth-child(2),.col:nth-child(4){margin-top:56px}
}
@media (max-width:480px){
  .board{gap:12px}
  .col{gap:12px}
  .col:nth-child(2),.col:nth-child(4){margin-top:32px}
  .tile{padding:6px}
  .tile figcaption{font-size:.8rem}
}
