/* Chat-171: compact Museum Ledger Navigator for the local Editorial gallery. */
body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination {
  grid-template-columns: minmax(170px, .8fr) minmax(292px, 1.4fr) minmax(170px, .8fr);
  gap: 10px;
  width: min(760px, 100%);
  min-height: 80px;
  margin: 32px auto 12px;
  padding: 6px 10px;
  overflow: visible;
  border: 1px solid rgba(178, 137, 72, .72);
  border-radius: 14px;
  clip-path: none;
  background:
    radial-gradient(circle at 50% 0, rgba(211, 174, 104, .09), transparent 38%),
    linear-gradient(180deg, rgba(255, 238, 198, .035), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #11161c 0, #090d12 48%, #12151a 100%);
  box-shadow:
    0 0 0 1px #05070a,
    0 0 0 3px rgba(73, 52, 27, .72),
    0 14px 30px rgba(0, 0, 0, .34),
    inset 0 1px rgba(255, 232, 181, .09),
    inset 0 -1px rgba(0, 0, 0, .78);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination::before {
  inset: 5px;
  border: 1px solid rgba(174, 135, 73, .34);
  border-radius: 11px;
  clip-path: none;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(219, 181, 112, .2) 30% 70%, transparent 88%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 18%, rgba(93, 66, 31, .44) 36% 64%, transparent 82%) bottom / 100% 1px no-repeat;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .42);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination::after {
  content: none;
  display: none;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button {
  min-width: 0;
  min-height: 52px;
  padding: 8px 13px;
  gap: 9px;
  border: 1px solid #775d36;
  border-radius: 10px;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(241, 208, 139, .1), transparent 38%),
    linear-gradient(180deg, #2b241a, #12161a);
  color: #e8cf97;
  box-shadow:
    inset 0 0 0 1px rgba(10, 9, 7, .82),
    inset 0 1px rgba(255, 238, 194, .11),
    0 4px 10px rgba(0, 0, 0, .26);
  font: 700 14px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

body[data-gallery-pagination-design="museum-ledger-v001"] #galleryPrevious,
body[data-gallery-pagination-design="museum-ledger-v001"] #galleryNext {
  width: 100%;
}

body[data-gallery-pagination-design="museum-ledger-v001"] #galleryPrevious {
  grid-column: 1;
  grid-row: 1;
}

body[data-gallery-pagination-design="museum-ledger-v001"] #galleryNext {
  grid-column: 3;
  grid-row: 1;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:disabled {
  cursor: default;
  opacity: 1;
  filter: none;
  border-color: #3e382f;
  background: linear-gradient(180deg, rgba(24, 27, 30, .86), rgba(10, 13, 17, .92));
  color: #777166;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-arrow {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 143, 76, .58);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 177, 103, .13), rgba(8, 11, 15, .62) 72%);
  color: #f0d391;
  font: 20px/1 Georgia, serif;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .34);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:disabled .gallery-page-arrow {
  border-color: #40392f;
  background: #0c1014;
  color: #676157;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-centre {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-inline: 1px solid rgba(142, 107, 59, .34);
  background: radial-gradient(ellipse at center, rgba(196, 152, 82, .06), transparent 70%);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-status {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  column-gap: 6px;
  row-gap: 1px;
  color: #ddc596;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: normal;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-kicker {
  color: #a98a58;
  font: 700 10px/1.1 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-fraction {
  color: #f0dcad;
  font: 600 18px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .075em;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-fraction b {
  color: #fff0c7;
  font-weight: 700;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-fraction i {
  margin-inline: 2px;
  color: #806844;
  font-size: 12px;
  font-style: normal;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-range {
  grid-column: 1 / -1;
  color: #bdb19b;
  font: 600 11px/1.2 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  letter-spacing: .055em;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index {
  width: 28px;
  height: 26px;
  min-width: 28px;
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #55462f;
  border-radius: 6px;
  background: linear-gradient(180deg, #191b1d, #0d1115);
  color: #a99b83;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font: 700 12px/1 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index[aria-current="page"] {
  border-color: #e2bd73;
  background: linear-gradient(180deg, #d4ad66, #94703b);
  color: #100f0d;
  box-shadow: inset 0 1px rgba(255, 244, 207, .42), 0 0 10px rgba(202, 155, 78, .2);
}

body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:focus-visible,
body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index:focus-visible {
  outline: 3px solid #8fdee4;
  outline-offset: 3px;
}

body[data-gallery-pagination-design="museum-ledger-v001"] #grid > article:focus {
  outline: 3px solid #8fdee4;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:not(:disabled):hover {
    border-color: #d4ac65;
    background:
      linear-gradient(180deg, rgba(255, 226, 166, .15), transparent 42%),
      linear-gradient(180deg, #382c1d, #16191c);
    color: #fff0c4;
    box-shadow:
      inset 0 0 0 1px rgba(18, 14, 8, .86),
      inset 0 1px rgba(255, 242, 204, .18),
      0 0 16px rgba(182, 135, 64, .14),
      0 5px 12px rgba(0, 0, 0, .3);
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index:hover {
    border-color: #b58b4d;
    color: #f1dba9;
  }
}

@media (max-width: 760px) {
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: min(100%, 560px);
    min-height: 0;
    padding: 8px;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-centre {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 66px;
    padding: 3px 8px 7px;
    border-inline: 0;
    border-top: 1px solid rgba(142, 107, 59, .3);
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] #galleryPrevious {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] #galleryNext {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 390px) {
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination {
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button {
    min-height: 50px;
    gap: 6px;
    padding-inline: 8px;
    font-size: 11px;
    letter-spacing: .045em;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-arrow {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-centre {
    padding-inline: 2px;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-list {
    gap: 4px;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index {
    width: 27px;
    min-width: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button,
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination,
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button,
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-centre,
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-pagination::before {
    display: none;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index[aria-current="page"] {
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:disabled {
    border-color: GrayText;
    color: GrayText;
    opacity: 1;
    filter: none;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-status {
    text-shadow: none;
  }

  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-button:focus-visible,
  body[data-gallery-pagination-design="museum-ledger-v001"] .gallery-page-index:focus-visible {
    outline-color: Highlight;
  }
}
