/* Gallery pages (/galleries/<slug> and /g/<token>) only. Galleries open in color; the rest of the site stays black and white. */

/* Color by default: undo the site-wide grayscale on gallery photos, in the grid and in the viewer. */
main.gal .frame img,main.gal .lightbox img{filter:none}
/* B&W toggle on: the same filter the rest of the site uses. */
main.gal.bw .frame img,main.gal.bw .lightbox img{filter:grayscale(1) contrast(1.1)}
/* Featured work (main.vcolor): the grid stays black and white, only the enlarged photo opens in color, with the same B&W toggle. */
main.vcolor .lightbox img{filter:none}
main.vcolor.bw .lightbox img{filter:grayscale(1) contrast(1.1)}

.gtools{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.btn-secondary[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.btn-secondary[aria-pressed="true"]:hover{background:var(--control-fill-hover);border-color:var(--control-fill-hover)}

/* Viewer buttons that carry words instead of a single symbol */
.lightbox .lb-btns .lb-wide{width:auto;padding:0 12px;font-size:var(--text-2xs);font-weight:700;letter-spacing:var(--tracking-wider);text-transform:uppercase}
.lightbox .lb-btns .lb-wide[hidden]{display:none}
.lightbox .lb-btns .lb-wide[aria-pressed="true"]{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.lightbox .lb-btns a.lb-dl{display:inline-flex;align-items:center;height:40px;padding:0 14px;border:1px solid var(--paper-a20);color:var(--paper);font-size:var(--text-2xs);font-weight:700;letter-spacing:var(--tracking-wider);text-transform:uppercase}
.lightbox .lb-btns a.lb-dl:hover{border-color:var(--paper)}
.lightbox .lb-btns a.lb-dl[hidden]{display:none}
