.nbt-gallery { --nbt-gallery-ink: #123d46; --nbt-gallery-teal: #087a7d; --nbt-gallery-mist: #e1f1ea; color: var(--nbt-gallery-ink); }
.nbt-gallery-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.25rem 1.5rem; }
.nbt-gallery-filters button, .nbt-gallery-close { min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid rgb(18 61 70 / 24%); border-radius: 999px; background: white; color: var(--nbt-gallery-ink); font: inherit; font-weight: 750; cursor: pointer; }
.nbt-gallery-filters button[aria-pressed="true"], .nbt-gallery-close { background: var(--nbt-gallery-ink); color: white; }
.nbt-gallery-filters button:focus-visible, .nbt-gallery-open:focus-visible, .nbt-gallery-close:focus-visible { outline: 3px solid #ec9d7f; outline-offset: 3px; }
.nbt-gallery-status { min-height: 1.5em; color: #47686d; }
.nbt-gallery-note, .nbt-gallery-empty { margin-block: 1rem; padding: 1rem 1.2rem; border-radius: 1rem; background: var(--nbt-gallery-mist); color: var(--nbt-gallery-ink); }
.nbt-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); margin: 0; padding: 0; list-style: none; }
.nbt-gallery-card { min-width: 0; overflow: hidden; border: 1px solid rgb(18 61 70 / 14%); border-radius: 1.25rem; background: white; box-shadow: 0 .8rem 2.4rem rgb(8 47 59 / 8%); }
.nbt-gallery-card[hidden] { display: none; }
.nbt-gallery-open { display: block; position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; background: #d2e7df; color: inherit; cursor: zoom-in; }
.nbt-gallery-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 260ms ease; }
.nbt-gallery-open:hover img { transform: scale(1.025); }
.nbt-gallery-play { position: absolute; inset: auto auto 1rem 1rem; padding: .55rem .85rem; border-radius: 999px; background: rgb(8 47 59 / 88%); color: white; font-weight: 750; }
.nbt-gallery-caption { display: grid; gap: .25rem; padding: 1rem 1.1rem 1.1rem; }
.nbt-gallery-caption strong { font-size: 1rem; }
.nbt-gallery-caption span { color: #47686d; font-size: .92rem; line-height: 1.5; }
.nbt-gallery-caption small { color: #60797b; font-size: .75rem; }
.nbt-gallery-dialog { width: min(94vw, 74rem); max-width: none; max-height: 92svh; padding: clamp(.75rem, 2vw, 1.25rem); border: 1px solid rgb(255 255 255 / 75%); border-radius: 1.25rem; background: #082f3b; color: white; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 34%); }
.nbt-gallery-dialog > p { margin: 0; }
.nbt-gallery-dialog::backdrop { background: rgb(5 31 38 / 82%); backdrop-filter: blur(5px); }
.nbt-gallery-close { display: block; margin: 0 0 .75rem auto; }
.nbt-gallery-dialog-content { display: grid; min-height: 0; place-items: center; gap: .75rem; }
.nbt-gallery-dialog-content img { display: block; max-width: 100%; max-height: calc(92svh - 7rem); width: auto; height: auto; object-fit: contain; }
.nbt-gallery-dialog-content video, .nbt-gallery-dialog-content iframe { display: block; width: min(100%, 68rem, 124svh); height: auto; aspect-ratio: 16 / 9; max-height: calc(92svh - 10rem); border: 0; border-radius: .65rem; background: #000; }
.nbt-gallery-watch-link { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; background: white; color: var(--nbt-gallery-ink); font-weight: 750; text-align: center; text-decoration: none; }
.nbt-gallery-watch-link:focus-visible { outline: 3px solid #ec9d7f; outline-offset: 3px; }
@media (max-width: 900px) { .nbt-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nbt-gallery-grid { grid-template-columns: minmax(0, 1fr); } .nbt-gallery-dialog { width: 100%; max-width: 100%; max-height: 100svh; border-radius: 1rem 1rem 0 0; } .nbt-gallery-dialog-content video, .nbt-gallery-dialog-content iframe { max-height: calc(100svh - 10rem); } }
@media (prefers-reduced-motion: reduce) { .nbt-gallery-open img { transition: none; } }
