/* Display only the first batch until visitors request more. */
    .nm-js .nm-gallery-pending { display: none; }
    .nm-gallery-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 8px; }
    .nm-gallery-actions[hidden] { display: none !important; }
    .nm-gallery-load-more { background: #62d0f0; border: 2px solid #a8e7f7; border-bottom: 5px solid #17799e; color: #092836; padding: 12px 23px; border-radius: 4px; font-size: 15px; font-weight: 900; cursor: pointer; }
    .nm-gallery-load-more:hover { background: #96e4f7; }
    .nm-gallery-load-more:focus-visible { outline: 3px solid #176b91; outline-offset: 3px; }
    .nm-gallery-progress { font-size: 13px; color: #556558; font-weight: 700; }
    /* Self-contained lightbox styling; no changes to shared site assets. */
    .nm-gallery-trigger { display: block; cursor: zoom-in; }
    .nm-gallery-trigger:focus-visible { outline: 3px solid #62d0f0; outline-offset: 3px; }
    .nm-gallery-dialog {
      position: fixed; inset: 0; margin: auto;
      width: min(1200px, calc(100vw - 24px));
      max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px);
      padding: 0; border: 2px solid #5cbfdc; border-radius: 8px;
      color: #f7fcff; background: #101e25;
      box-shadow: 0 25px 80px #000b;
      overflow: hidden;
    }
    .nm-gallery-dialog::backdrop { background: rgba(3, 11, 15, .88); backdrop-filter: blur(5px); }
    .nm-gallery-lightbox-layout { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
    .nm-gallery-lightbox-top {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 10px 16px; border-bottom: 1px solid #416071; background: #142b36;
    }
    .nm-gallery-lightbox-count { font-size: 13px; font-weight: 800; color: #cbe5ee; }
    .nm-gallery-lightbox-stage {
      display: flex; align-items: center; justify-content: center; min-height: 0;
      padding: 12px; background: #0d181e;
    }
    .nm-gallery-lightbox-stage img {
      display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 190px);
      height: auto; object-fit: contain; background: #0d181e;
    }
    .nm-gallery-lightbox-bottom {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 11px 16px; background: #142b36;
      border-top: 1px solid #416071;
    }
    .nm-gallery-lightbox-caption { margin: 0; text-align: center; font-size: 14px; line-height: 1.45; color: #e3edf4; min-width: 0; }
    .nm-gallery-lightbox-button {
      flex: 0 0 auto; appearance: none; cursor: pointer; border: 1px solid #5596b5;
      border-radius: 4px; padding: 9px 13px; background: #214b64; color: white;
      font: inherit; font-size: 13px; font-weight: 800;
    }
    .nm-gallery-lightbox-button:hover { background: #286c8c; }
    .nm-gallery-lightbox-button:focus-visible { outline: 3px solid #62d0f0; outline-offset: 2px; }
    @media (max-width: 600px) {
      .nm-gallery-lightbox-top { padding: 8px 10px; }
      .nm-gallery-lightbox-bottom { padding: 9px; gap: 7px; }
      .nm-gallery-lightbox-stage { padding: 6px; }
      .nm-gallery-lightbox-stage img { max-height: calc(100dvh - 164px); }
      .nm-gallery-lightbox-caption { font-size: 12px; }
      .nm-gallery-lightbox-button { padding: 8px 10px; }
    }
