.lia-pagebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 10px 12px;
  background: #1b1f29;
  color: #e8e6df;
  border-radius: 12px;
  font-size: 0.95rem;
}
.lia-pagebar a,
.lia-pagebar span.lia-pagebar-dead {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.lia-pagebar a {
  background: #e8a317;
  color: #1b1f29 !important;
}
.lia-pagebar a:hover {
  background: #f3c15b;
}
.lia-pagebar span.lia-pagebar-dead {
  background: #343b4d;
  color: #9aa3b5;
}
.lia-pagebar .lia-pagebar-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  flex: 1;
}
.lia-pagebar .lia-pagebar-mid a,
.lia-pagebar .lia-pagebar-mid span {
  min-width: 2em;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: #2a3140;
  color: #e8e6df !important;
  text-decoration: none;
  font-weight: 600;
}
.lia-pagebar .lia-pagebar-mid a:hover {
  background: #e8a317;
  color: #1b1f29 !important;
}
.lia-pagebar .lia-pagebar-mid span.current {
  background: #e8a317;
  color: #1b1f29 !important;
}
.page-links {
  display: none !important;
}
@media print {
  .lia-pagebar { display: none !important; }
}

/* FooGallery built-in image pager */
.fg-paging-container,
nav.fg-ph-pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 18px !important;
  padding: 10px 12px;
  background: #1b1f29;
  border-radius: 12px;
}
.fg-paging-container .fg-page,
.fg-paging-container a,
.fg-paging-container button,
.fg-page-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  min-height: 2.2em;
  padding: 6px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #2a3140 !important;
  color: #e8e6df !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  cursor: pointer;
}
.fg-paging-container .fg-selected,
.fg-paging-container .fg-page.fg-selected,
.fg-paging-container span.fg-selected {
  background: #e8a317 !important;
  color: #1b1f29 !important;
}
.fg-paging-container .fg-page:hover,
.fg-paging-container a:hover,
.fg-paging-container button:hover {
  background: #e8a317 !important;
  color: #1b1f29 !important;
}
.fg-paging-container .fg-disabled {
  background: #343b4d !important;
  color: #9aa3b5 !important;
  cursor: default !important;
}
