/* 90 Leads Core: Project gallery. Colors follow the Starter theme's palette. */
.nl-gallery { --nl-g-accent: var(--wp--preset--color--accent, #ff5b1a); --nl-g-on-accent: var(--wp--preset--color--on-accent, #111); --nl-g-border: var(--wp--preset--color--border, #dde3ea); --nl-g-text: var(--wp--preset--color--body, #1f2933); --nl-g-muted: var(--wp--preset--color--muted, #5b6672); margin-block: 1.5rem; }
.nl-gallery__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.nl-gallery__filters[hidden] { display: none; }
.nl-gallery__filter { font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--nl-g-border); background: transparent; color: var(--nl-g-text); cursor: pointer; min-height: 44px; }
.nl-gallery__filter:hover { border-color: var(--nl-g-accent); }
.nl-gallery__filter[aria-pressed="true"] { background: var(--nl-g-accent); border-color: var(--nl-g-accent); color: var(--nl-g-on-accent); }
.nl-gallery__filter:focus-visible, .nl-gallery__link:focus-visible { outline: 3px solid var(--nl-g-accent); outline-offset: 3px; }
.nl-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.5vw, 16px); grid-template-columns: repeat(var(--nl-gallery-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1000px) { .nl-gallery__grid { grid-template-columns: repeat(min(var(--nl-gallery-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .nl-gallery__grid { grid-template-columns: 1fr; } }
.nl-gallery__item { margin: 0; }
.nl-gallery__item[hidden] { display: none; }
.nl-gallery__link { display: block; overflow: hidden; border-radius: var(--nl-radius-m, 10px); background: var(--nl-g-border); }
.nl-gallery__img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.nl-gallery.is-cropped .nl-gallery__img { aspect-ratio: 4 / 3; object-fit: cover; }
.nl-gallery__link:hover .nl-gallery__img { transform: scale(1.03); }
.nl-gallery__caption { display: block; margin-top: .5rem; font-size: .9rem; color: var(--nl-g-muted); }
.nl-gallery-empty { padding: 1rem; border: 1px dashed currentColor; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .nl-gallery__img { transition: none; } .nl-gallery__link:hover .nl-gallery__img { transform: none; } }

/* Full-screen viewer */
.nl-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 10, 10, .94); color: #fff; }
.nl-lightbox::backdrop { background: rgba(10, 10, 10, .94); }
.nl-lightbox__stage { position: absolute; inset: 56px 64px 72px; display: flex; align-items: center; justify-content: center; }
.nl-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.nl-lightbox__caption { position: absolute; left: 64px; right: 64px; bottom: 20px; text-align: center; font-size: .95rem; color: #ddd; }
.nl-lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 48px; text-align: center; cursor: pointer; padding: 0; }
.nl-lightbox__btn:hover, .nl-lightbox__btn:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.nl-lightbox__close { top: 12px; right: 12px; }
.nl-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.nl-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.nl-lightbox__count { position: absolute; top: 24px; left: 20px; font-size: .9rem; color: #bbb; }
@media (max-width: 600px) { .nl-lightbox__stage { inset: 56px 8px 80px; } .nl-lightbox__prev, .nl-lightbox__next { top: auto; bottom: 14px; transform: none; } .nl-lightbox__prev { left: 20px; } .nl-lightbox__next { right: 20px; } .nl-lightbox__caption { left: 80px; right: 80px; bottom: 26px; } }
