body {
  --nir-glass-bg: rgba(255, 255, 255, 0.78);
  --nir-glass-bd: rgba(2, 6, 23, 0.08);
  --nir-glass-shadow: 0 18px 48px rgba(2, 6, 23, 0.12);
  --nir-paper: #fbfbfd;
  --nir-paper-bd: rgba(2, 6, 23, 0.12);
  --nir-paper-shadow: 0 22px 55px rgba(2, 6, 23, 0.18);
  --nir-ink: rgba(2, 6, 23, 0.92);
  --nir-ink-weak: rgba(2, 6, 23, 0.64);
}

body.night {
  --nir-glass-bg: rgba(2, 6, 23, 0.55);
  --nir-glass-bd: rgba(255, 255, 255, 0.12);
  --nir-glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --nir-paper: rgba(17, 24, 39, 0.86);
  --nir-paper-bd: rgba(255, 255, 255, 0.14);
  --nir-paper-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  --nir-ink: rgba(255, 255, 255, 0.92);
  --nir-ink-weak: rgba(255, 255, 255, 0.66);
}

.nir-gallery-hub {
  position: relative;
  color: var(--nir-ink);
}

.nir-gallery-hub-hero {
  padding: 22px 0 10px;
}

.nir-gallery-hub-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.nir-gallery-hub-title {
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 22px;
}

.nir-gallery-hub-sub {
  margin-top: 6px;
  color: var(--nir-ink-weak);
  font-size: 13px;
}

.nir-gallery-hub-body.container {
  width: 100%;
  max-width: 1220px;
  padding: 10px 16px 28px;
}

.nir-gallery-hub-toolbar {
  margin: 8px 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--nir-glass-bg);
  border: 1px solid var(--nir-glass-bd);
  box-shadow: var(--nir-glass-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.nir-gallery-hub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(2, 6, 23, 0.08);
}

body.night .nir-gallery-hub-search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.nir-gallery-hub-search i {
  opacity: 0.7;
}

.nir-gallery-hub-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--nir-ink);
}

body.night .nir-gallery-hub-search input {
  color: var(--nir-ink);
}

.nir-gallery-hub-clear {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: rgba(2, 6, 23, 0.7);
}

body.night .nir-gallery-hub-clear {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.nir-gallery-hub-filters {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.nir-gallery-hub-filters::-webkit-scrollbar {
  height: 0;
}

.nir-gallery-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
}

body.night .nir-gallery-cat {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.nir-gallery-cat::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(480px 180px at 20% 10%, rgba(30, 202, 228, 0.18), transparent 60%),
    radial-gradient(420px 180px at 80% 0%, rgba(168, 85, 247, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.nir-gallery-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.16);
  filter: brightness(1.03);
}

.nir-gallery-cat:hover::before {
  opacity: 1;
}

.nir-gallery-cat.is-active {
  border-color: rgba(30, 202, 228, 0.85);
  box-shadow: 0 18px 42px rgba(30, 202, 228, 0.18);
}

.nir-gallery-cat .ico {
  width: 42px;
  height: 32px;
  border-radius: 12px;
  position: relative;
  flex: 0 0 42px;
}

.nir-gallery-cat .ico .folder {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 204, 109, 0.92), rgba(255, 179, 71, 0.86));
  box-shadow: 0 10px 26px rgba(255, 179, 71, 0.22);
  border: 1px solid rgba(2, 6, 23, 0.10);
}

body.night .nir-gallery-cat .ico .folder {
  background: linear-gradient(180deg, rgba(255, 204, 109, 0.22), rgba(255, 179, 71, 0.16));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.nir-gallery-cat .ico .folder::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 6px;
  width: 18px;
  height: 10px;
  border-radius: 8px 8px 2px 2px;
  background: inherit;
  border: 1px solid rgba(2, 6, 23, 0.10);
  border-bottom: 0;
}

.nir-gallery-cat .ico .thumb {
  position: absolute;
  inset: 4px 6px 6px 8px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.14);
  transform: rotate(-4deg);
  opacity: 0.92;
}

.nir-gallery-cat:hover .ico .thumb {
  transform: rotate(-2deg) translateY(-1px);
}

.nir-gallery-cat .tx {
  font-weight: 900;
  font-size: 13px;
  color: var(--nir-ink);
  white-space: nowrap;
}

.nir-gallery-cat .ct {
  font-size: 12px;
  opacity: 0.72;
  color: var(--nir-ink-weak);
}

.nir-gallery-hub-result {
  margin-top: 10px;
  font-size: 12px;
  color: var(--nir-ink-weak);
}

.nir-gallery-hub-empty {
  padding: 18px;
  border-radius: 18px;
  background: var(--nir-glass-bg);
  border: 1px solid var(--nir-glass-bd);
  box-shadow: var(--nir-glass-shadow);
  backdrop-filter: blur(12px);
}

.nir-gallery-hub-section {
  margin-top: 14px;
}

.nir-home-gallerycats {
  display: grid;
  grid-template-columns: repeat(var(--nir-cols, 5), minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 520px) {
  .nir-home-gallerycats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nir-gallery-termcard {
  text-decoration: none;
  color: inherit;
  padding: 0;
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0px 7px 15px 0px #a48fff30;
  z-index: 0;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.nir-gallery-termcard-title {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 1.7rem;
  z-index: 20;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nir-gallery-termcard-count {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 20;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.nir-gallery-termcard::before {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 5%;
  width: 90%;
  height: 0.4rem;
  opacity: 0.1;
  border-radius: 0 0 0.5rem 0.5rem;
  background: rgba(2, 6, 23, 1);
  border-top: 0.1rem solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: -1;
}

.nir-gallery-termcard::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 10%;
  width: 80%;
  height: 0.4rem;
  opacity: 0.08;
  border-radius: 0 0 0.5rem 0.5rem;
  background: rgba(2, 6, 23, 1);
  border-top: 0.1rem solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: -1;
}

.nir-gallery-termcard:hover {
  transform: translateY(-3px);
  filter: brightness(1.02);
}


.nir-gallery-hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
}

.nir-gallery-hub-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.nir-gallery-hub-section-title .t {
  font-weight: 900;
  font-size: 16px;
}

.nir-gallery-hub-section-title .c {
  font-size: 12px;
  opacity: 0.72;
}

.nir-gallery-hub-section-more {
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-color, #1ecae4);
}

.nir-gallery-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .nir-gallery-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nir-gallery-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .nir-gallery-hub-grid {
    grid-template-columns: 1fr;
  }
}

.nir-gallery-card {
  text-decoration: none;
  color: inherit;
  padding: 0;
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0px 7px 15px 0px #a48fff30;
  z-index: 0;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.nir-gallery-card::before {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 5%;
  width: 90%;
  height: 0.4rem;
  opacity: 0.1;
  border-radius: 0 0 0.5rem 0.5rem;
  background: rgba(2, 6, 23, 1);
  border-top: 0.1rem solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: -1;
}

.nir-gallery-card::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 10%;
  width: 80%;
  height: 0.4rem;
  opacity: 0.08;
  border-radius: 0 0 0.5rem 0.5rem;
  background: rgba(2, 6, 23, 1);
  border-top: 0.1rem solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: -1;
}

.nir-gallery-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.02);
}

.nir-gallery-card:active {
  transform: translateY(-1px) scale(0.99);
}

.nir-gallery-card.is-private .nir-gallery-img {
  filter: none;
  transform: none;
}

.nir-gallery-private-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nir-gallery-pay-badge,
.nir-gallery-unlock-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nir-gallery-pay-badge {
  background: rgba(0, 0, 0, 0.55);
}

.nir-gallery-unlock-badge {
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}

.nir-gallery-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: transparent;
  padding: 0;
  box-shadow: 0px 7px 6px 2px hsl(0deg 0% 0% / 40%);
  display: block;
  position: relative;
  overflow: hidden;
}

.nir-gallery-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
  transition: opacity 0.22s ease;
}

.nir-gallery-card:hover .nir-gallery-cover::before,
.nir-gallery-termcard:hover .nir-gallery-termcard-cover::before {
  opacity: 1;
}

.nir-gallery-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nir-gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  z-index: 4;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  box-shadow: none;
  transition: 0.5s;
}

.nir-gallery-cover .nir-gallery-img:nth-child(2) {
  z-index: 3;
  transform: translate(0, 16.7%);
}

.nir-gallery-cover .nir-gallery-img:nth-child(3) {
  z-index: 2;
  transform: translate(0, 33.3%);
}

.nir-gallery-cover:hover .nir-gallery-img,
.nir-gallery-card:hover .nir-gallery-img {
  aspect-ratio: 3;
}

.nir-gallery-cover:hover .nir-gallery-img:nth-child(2),
.nir-gallery-card:hover .nir-gallery-img:nth-child(2) {
  aspect-ratio: 2.5;
}

.nir-gallery-cover:hover .nir-gallery-img:nth-child(3),
.nir-gallery-card:hover .nir-gallery-img:nth-child(3) {
  aspect-ratio: 2.5;
}

.nir-gallery-cover:hover .nir-gallery-img:nth-child(2),
.nir-gallery-card:hover .nir-gallery-img:nth-child(2),
.nir-gallery-termcard:hover .nir-gallery-img:nth-child(2) {
  transform: translateY(66.67%);
}

.nir-gallery-cover:hover .nir-gallery-img:nth-child(3),
.nir-gallery-card:hover .nir-gallery-img:nth-child(3),
.nir-gallery-termcard:hover .nir-gallery-img:nth-child(3) {
  transform: translateY(150%);
}

.nir-gallery-termcard-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: transparent;
  padding: 0;
  box-shadow: 0px 7px 6px 2px hsl(0deg 0% 0% / 40%);
  position: relative;
  overflow: hidden;
}

.nir-gallery-termcard-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
  transition: opacity 0.22s ease;
}

.nir-gallery-termcard-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nir-gallery-title {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 1.7rem;
  z-index: 20;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nir-gallery-meta {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.nir-gallery-meta .dot {
  opacity: 0.55;
}

.nir-gallery-card.is-hidden {
  display: none;
}

.nir-gallery-hub-section.is-hidden {
  display: none;
}

.single-gallery #coverflow.gallery[type=image],
.single-gallery #coverflow.gallery[type=image] .coverflow.container {
  height: min(560px, calc(100vh - 260px));
}

@media (max-width: 767px) {
  .single-gallery #coverflow.gallery[type=image],
  .single-gallery #coverflow.gallery[type=image] .coverflow.container {
    height: min(440px, calc(100vh - 240px));
  }
}

.nir-gallery-thumbs-shell {
  width: 100%;
  padding: 10px 0 16px;
  position: relative;
}

.nir-gallery-thumbs {
  width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 6px;
  border-radius: 18px;
  background: var(--nir-glass-bg);
  border: 1px solid var(--nir-glass-bd);
  box-shadow: var(--nir-glass-shadow);
  backdrop-filter: blur(12px);
}

.nir-gallery-thumbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(2, 6, 23, 0.78);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.18);
  cursor: pointer;
  z-index: 3;
  font-size: 22px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
}

body.night .nir-gallery-thumbs-arrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.nir-gallery-thumbs-arrow.left {
  left: 10px;
}

.nir-gallery-thumbs-arrow.right {
  right: 10px;
}

.nir-gallery-thumbs-arrow[disabled] {
  opacity: 0.3;
  cursor: default;
}

.nir-gallery-thumbs {
  padding-left: 62px;
  padding-right: 62px;
}

.nir-gallery-thumbs::-webkit-scrollbar {
  height: 0;
}

.nir-gallery-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nir-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nir-gallery-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(30, 202, 228, 0.85);
  box-shadow: 0 12px 30px rgba(30, 202, 228, 0.22);
}

body.night .nir-gallery-thumb {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.nir-gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000001;
}

.nir-gallery-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nir-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.nir-gallery-lightbox-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 26px));
  height: min(78vh, 760px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.night) .nir-gallery-lightbox-dialog {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

.nir-gallery-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.nir-gallery-lightbox[data-mode="wide"] .nir-gallery-lightbox-dialog {
  overflow: hidden;
}

.nir-gallery-lightbox[data-mode="wide"] .nir-gallery-lightbox-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.nir-gallery-lightbox[data-mode="original"] .nir-gallery-lightbox-dialog {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 56px 56px 22px;
}

.nir-gallery-lightbox[data-mode="original"] .nir-gallery-lightbox-img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: unset;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.nir-gallery-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  user-select: none;
}

body:not(.night) .nir-gallery-lightbox-btn {
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(2, 6, 23, 0.86);
}

.nir-gallery-lightbox-btn.prev {
  left: 14px;
}

.nir-gallery-lightbox-btn.next {
  right: 14px;
}

.nir-gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}

body:not(.night) .nir-gallery-lightbox-close {
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(2, 6, 23, 0.86);
}

.nir-gallery-lightbox-counter {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  border-radius: 999px;
}

body:not(.night) .nir-gallery-lightbox-counter {
  color: rgba(2, 6, 23, 0.78);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.nir-gallery-lightbox-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

body:not(.night) .nir-gallery-lightbox-toolbar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
}

.nir-gallery-lightbox-tool {
  height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

body:not(.night) .nir-gallery-lightbox-tool {
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(2, 6, 23, 0.86);
}

.nir-gallery-lightbox-tool.is-active {
  border-color: rgba(30, 202, 228, 0.85);
  box-shadow: 0 12px 30px rgba(30, 202, 228, 0.22);
}
