.nlt-gallery{display:block;padding:4rem 0 5rem}
.nlt-gallery a{color:var(--nlt-gallery-accent)}
.nlt-gallery a:hover{text-decoration-thickness:2px}
.nlt-gallery__header{display:flex;justify-content:space-between;align-items:end;gap:2rem;padding-bottom:2.4rem;border-bottom:3px solid var(--nlt-gallery-accent);margin-bottom:2.4rem}
.nlt-gallery__header h1{font-family:var(--font-heading-family);font-size:clamp(3.2rem,3.6vw,4.8rem);line-height:1.1;margin:0 0 1rem}
.nlt-gallery__intro{max-width:70rem;font-size:1.6rem;line-height:1.55}
.nlt-gallery__intro p{margin:0}
.nlt-gallery__browse{flex-shrink:0;min-height:4.4rem;display:inline-flex;align-items:center;gap:.8rem;font-weight:700;text-underline-offset:.3em}
.nlt-gallery__toolbar{display:flex;justify-content:flex-start;align-items:center;gap:1.6rem;margin-bottom:2.4rem}
.nlt-gallery__toolbar[hidden]{display:none}
.nlt-gallery__filter{display:flex;align-items:center;gap:1rem;font-weight:600}
.nlt-gallery__filter select{min-height:4.4rem;min-width:18rem;padding:.8rem 3.4rem .8rem 1.2rem;border:1px solid rgba(var(--color-foreground),.3);border-radius:.6rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground));font:inherit}
.nlt-gallery__count{font-size:1.4rem}
.nlt-gallery__grid{display:grid;grid-template-columns:repeat(var(--nlt-gallery-columns,3),minmax(0,1fr));gap:2rem;list-style:none;margin:0;padding:0}
.nlt-gallery__card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:rgb(var(--color-background));border:1px solid rgba(var(--color-foreground),.14);border-radius:1.2rem}
.nlt-gallery__card[hidden]{display:none}
.nlt-gallery__card--featured{grid-column:1/-1}
.nlt-gallery__figure{margin:0;display:flex;flex-direction:column;height:100%}
.nlt-gallery__open{display:block;position:relative;aspect-ratio:3/2;width:100%;padding:0;border:0;background:rgb(var(--color-background));cursor:zoom-in;color:rgb(var(--color-foreground))}
.nlt-gallery__card--featured .nlt-gallery__open{aspect-ratio:16/7}
.nlt-gallery__open img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.nlt-gallery__open:focus-visible,.nlt-gallery button:focus-visible,.nlt-gallery select:focus-visible,.nlt-gallery a:focus-visible{outline:3px solid var(--nlt-gallery-accent);outline-offset:3px}
.nlt-gallery__caption{padding:1.6rem;display:flex;flex-direction:column;gap:.6rem;border-top:1px solid rgba(var(--color-foreground),.1)}
.nlt-gallery__category{font-size:1.2rem;font-weight:700;letter-spacing:.06em;line-height:1.3;text-transform:uppercase;color:var(--nlt-gallery-accent)}
.nlt-gallery__caption h2{font-family:var(--font-heading-family);font-size:2.2rem;line-height:1.25;margin:0;overflow-wrap:anywhere}
.nlt-gallery__caption p{margin:.5rem 0 0;line-height:1.5}
.nlt-gallery__link{display:inline-flex;align-items:center;gap:.6rem;min-height:4.4rem;font-size:1.4rem;font-weight:700;text-underline-offset:.25em}
.nlt-gallery__placeholder{height:26rem;overflow:hidden;background:rgba(var(--color-foreground),.04)}
.nlt-gallery__placeholder-icon{display:block;width:100%;height:100%;fill:rgba(var(--color-foreground),.2)}
.nlt-gallery__welcome{padding:2.4rem;border:1px solid rgba(var(--color-foreground),.14);border-radius:1.2rem;max-width:78rem}
.nlt-gallery__welcome h2{font-family:var(--font-heading-family);font-size:2.8rem;line-height:1.2;margin:0 0 1rem}
.nlt-gallery__welcome p{font-size:1.6rem;line-height:1.6;margin:0}
.nlt-gallery__dialog{width:min(110rem,calc(100vw - 3.2rem));max-height:92vh;margin:auto;padding:2rem;border:1px solid rgba(var(--color-foreground),.2);border-radius:1.2rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground))}
.nlt-gallery__dialog::backdrop{background:rgba(0,0,0,.76)}
.nlt-gallery__dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:1.6rem}
.nlt-gallery__dialog-heading h2{font-family:var(--font-heading-family);font-size:2.4rem;line-height:1.2;margin:0;max-width:88rem;overflow-wrap:anywhere}
.nlt-gallery__control{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;min-width:4.4rem;min-height:4.4rem;border:1px solid rgba(var(--color-foreground),.3);border-radius:.6rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground));font-size:2.8rem;line-height:1;cursor:pointer}
.nlt-gallery__photo{height:min(66vh,70rem);max-height:calc(90vh - 17rem);min-height:10rem;margin:1.6rem 0;background:rgb(var(--color-background))}
.nlt-gallery__photo img{display:block;width:100%;height:100%;object-fit:contain}
.nlt-gallery__dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:1.6rem}
.nlt-gallery__dialog-nav{display:flex;gap:1rem;align-items:center;margin-inline-start:auto}
.nlt-gallery__dialog-link{min-height:4.4rem;display:inline-flex;align-items:center;font-weight:700;text-underline-offset:.25em}
.nlt-gallery__dialog-link[hidden]{display:none}
@media(max-width:989.98px){.nlt-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:749.98px){.nlt-gallery{padding:2.4rem 0 3.6rem}.nlt-gallery__header{align-items:start;flex-direction:column;padding-bottom:1.6rem;margin-bottom:1.6rem;gap:1.2rem}.nlt-gallery__intro{font-size:1.5rem}.nlt-gallery__toolbar{flex-wrap:wrap;margin-bottom:1.6rem;gap:1rem}.nlt-gallery__filter{gap:.7rem;font-size:1.4rem}.nlt-gallery__filter select{min-width:0;max-width:18rem;font-size:1.4rem}.nlt-gallery__count{font-size:1.3rem;white-space:nowrap}.nlt-gallery__grid{grid-template-columns:minmax(0,1fr);gap:1.6rem}.nlt-gallery__card--featured .nlt-gallery__open{aspect-ratio:3/2}.nlt-gallery__caption h2{font-size:2rem}.nlt-gallery__dialog{padding:1.4rem}.nlt-gallery__dialog-heading h2{font-size:2rem}.nlt-gallery__dialog-footer{flex-wrap:wrap;gap:1rem}.nlt-gallery__dialog-link{font-size:1.4rem}.nlt-gallery__welcome{padding:1.8rem}.nlt-gallery__welcome h2{font-size:2.4rem}.nlt-gallery__welcome p{font-size:1.5rem}}

