/* Separate group rows; item details open in a native dialog above the page. */
.nl-compact .nl-gallery-groups { display: grid; gap: 24px; min-width: 0; }
.nl-compact .nl-gallery-group { min-width: 0; padding: 0; margin: 0; }
.nl-compact .nl-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--nl-line); }
.nl-compact .nl-gallery-group:first-child .nl-group-heading { padding-top: 0; border-top: 0; }
.nl-compact .nl-group-heading h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.nl-compact .nl-group-title { min-width: 0; }
.nl-compact .nl-group-description { max-width: 640px; margin: 7px 0 0; color: var(--nl-muted); font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.nl-compact .is-single-group { gap: 0; }
.nl-compact .is-single-group > .nl-gallery-group { border: 0; }
.nl-compact .is-single-item .nl-swipe-hint { display: none; }
.nl-compact .is-single-item [data-nl-row] { scroll-snap-type: none; }
.nl-compact .nl-group-heading .nl-gallery-controls { gap: 7px; }
.nl-compact .nl-group-heading .nl-swipe-hint { font-size: 11px; }
.nl-compact .nl-gallery-group [data-nl-card] { cursor: pointer; }
.nl-compact .nl-gallery-group [data-nl-card].is-expanded { border-color: var(--nl-green); box-shadow: inset 0 0 0 1px var(--nl-green); }
.nl-compact .nl-gallery-group .nl-card-detail { width: fit-content; }
.nl-compact .nl-gallery-group [data-nl-expansion-symbol] { display: inline-block; min-width: 16px; margin-left: 5px; font-size: 19px; vertical-align: -1px; }
.nl-compact .nl-group-empty { width: 100%; margin: 0; padding: 18px 20px; border: 1px dashed var(--nl-line); border-radius: 6px; color: var(--nl-muted); font-size: 14px; }
.nl-compact .nl-event-card { display: flex; flex-direction: column; min-height: 100%; }
.nl-compact .nl-event-card > img { display: block; width: 100%; height: 190px; object-fit: cover; }
.nl-compact .nl-event-card .nl-event__summary { display: flex; flex: 1; flex-direction: column; padding: 0 0 7px; }
.nl-compact .nl-event-card .nl-event__meta { display: block; margin: 14px 16px 7px; color: #59634e; font-size: 12px; font-weight: 700; }
.nl-compact .nl-event-card .nl-card-detail { margin-top: auto; margin-bottom: 0; }
.nl-compact .nl-gallery-preview { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nl-compact .nl-gallery-item figcaption { display: flex; flex-direction: column; align-items: flex-start; }
.nl-compact .nl-gallery-item figcaption .nl-card-detail { margin: 4px 0 -6px; }
.nl-compact .nl-gallery-item figcaption .nl-demo-label { margin: 6px 0 0; }
.nl-compact .nl-item-dialog {
  --nl-dialog-gap: 20px;
  position: fixed; inset: 0; box-sizing: border-box;
  width: min(860px, calc(100vw - var(--nl-dialog-gap) * 2 - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: auto; max-width: none;
  max-height: calc(100vh - var(--nl-dialog-gap) * 2);
  max-height: calc(100dvh - var(--nl-dialog-gap) * 2 - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto; padding: 0; overflow: hidden;
  border: 1px solid #809184; border-radius: 13px;
  background: #faf6ed; color: var(--nl-ink);
  box-shadow: 0 24px 100px #07170f80;
}
.nl-compact .nl-item-dialog:not([open]) { display: none; }
.nl-compact .nl-item-dialog[open] { display: flex; flex-direction: column; }
.nl-compact .nl-item-dialog::backdrop { background: #071a13a6; backdrop-filter: blur(2px); }
.nl-compact .nl-item-dialog__header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid #d7d2c5; background: var(--nl-green); color: #faf6ed; }
.nl-compact .nl-item-dialog__header h2 { min-width: 0; margin: 0; align-self: center; font: 700 31px/1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.nl-compact .nl-item-dialog__close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 5px 10px; border: 1px solid #a6b6a7; border-radius: 7px; background: #ffffff0c; color: #faf6ed; font: 600 13px/1.2 'Trebuchet MS', Arial, sans-serif; cursor: pointer; }
.nl-compact .nl-item-dialog__close span:last-child { font-size: 27px; font-weight: 400; line-height: 1; }
.nl-compact .nl-item-dialog__close:hover { background: #ffffff20; }
.nl-compact .nl-item-dialog__close:focus-visible { outline: 3px solid var(--nl-amber, #dda64b); outline-offset: 3px; }
.nl-compact .nl-item-dialog__body { min-width: 0; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; overflow-wrap: anywhere; }
.nl-compact .nl-item-dialog__body:focus-visible { outline: 2px solid var(--nl-amber, #dda64b); outline-offset: -3px; }
.nl-compact .nl-item-dialog .nl-product-content { padding: 22px; font-size: 16px; line-height: 1.6; }
.nl-compact .nl-item-dialog .nl-product-content h3 { font: 700 25px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.nl-compact .nl-item-detail-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nl-compact .nl-item-detail-meta .nl-card-category { margin: 0; }
.nl-compact .nl-item-detail-meta .nl-card-category:empty { display: none; }
.nl-compact .nl-item-detail-image { margin: 0; padding: 20px 22px 0; }
.nl-compact .nl-item-detail-image img { display: block; width: 100%; height: auto; max-height: min(430px, 46dvh); object-fit: contain; border-radius: 6px; background: #e9e4d9; }
.nl-compact .nl-item-detail-image figcaption { margin: 7px 0 0; color: var(--nl-muted); font-size: 12px; line-height: 1.4; }
.nl-compact .nl-product-facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 0; }
.nl-compact .nl-product-facts-list > div { padding: 15px; border: 1px solid var(--nl-line); border-radius: 5px; background: #eee8dc; }
.nl-compact .nl-product-facts-list dt { margin: 0 0 6px; font-weight: 700; }
.nl-compact .nl-product-facts-list dd { margin: 0; color: var(--nl-muted); font-size: 14px; line-height: 1.5; }
.nl-compact .nl-item-dialog .nl-demo-label { margin: 10px 0; }
.nl-compact .nl-item-dialog .nl-event__body { padding: 22px; border: 0; font-size: 16px; line-height: 1.6; }
.nl-compact .nl-item-dialog .nl-event-detail-date { margin: 0 0 16px; color: var(--nl-green); font-size: 15px; font-weight: 700; }
.nl-compact .nl-item-dialog .nl-event__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 18px; }
.nl-compact .nl-item-dialog .nl-event__media :is(img, video) { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.nl-compact .nl-gallery-detail-media { padding: 20px 20px 0; }
.nl-compact .nl-gallery-detail-media :is(img, video) { display: block; width: 100%; height: auto; max-height: 580px; object-fit: contain; }
.nl-compact .nl-gallery-detail-copy { padding: 20px; font-size: 15px; }
.nl-compact .nl-gallery-detail-copy p + p { margin-top: 10px; }
.nl-compact .nl-gallery-video-preview { position: relative; }
.nl-compact .nl-gallery-video-preview video { pointer-events: none; background: #16382b; }
.nl-compact .nl-gallery-video-badge { position: absolute; left: 12px; bottom: 12px; padding: 8px 11px; border-radius: 6px; background: #16382beb; color: #faf6ed; font-size: 13px; }
@media (min-width: 900px) { .nl-compact .nl-item-dialog { --nl-dialog-gap: 32px; } }
@media (max-width: 800px) {
  .nl-compact .nl-gallery-groups { gap: 20px; }
  .nl-compact .nl-group-heading { gap: 10px; }
  .nl-compact .nl-group-heading h3 { font-size: 23px; }
  .nl-compact .nl-group-heading .nl-swipe-hint { display: none; }
}
@media (max-width: 560px) {
  .nl-compact .nl-gallery-groups { gap: 18px; }
  .nl-compact .nl-group-heading { margin-bottom: 10px; align-items: center; }
  .nl-compact .nl-group-heading h3 { font-size: 21px; overflow-wrap: anywhere; }
  .nl-compact .nl-group-heading .nl-gallery-controls { gap: 4px; }
  .nl-compact .nl-group-heading .nl-gallery-controls button { width: 38px; height: 44px; font-size: 19px; }
  .nl-compact .nl-event-card > img { height: 225px; }
  .nl-compact .nl-item-dialog__header { gap: 10px; padding: 12px 14px; }
  .nl-compact .nl-item-dialog__header h2 { font-size: 24px; }
  .nl-compact .nl-item-dialog__close { padding-inline: 8px; }
  .nl-compact .nl-item-dialog__close span:first-child { display: none; }
  .nl-compact .nl-item-dialog .nl-product-content, .nl-compact .nl-item-dialog .nl-event__body { padding: 17px 16px; }
  .nl-compact .nl-item-detail-image { padding: 14px 14px 0; }
  .nl-compact .nl-item-detail-image img { max-height: 38dvh; }
  .nl-compact .nl-product-facts-list { grid-template-columns: 1fr; gap: 10px; }
  .nl-compact .nl-gallery-detail-media { padding: 14px 14px 0; }
  .nl-compact .nl-gallery-detail-copy { padding: 14px; }
}
@media print {
  .nl-compact .nl-group-heading { break-after: avoid; }
  .nl-compact .nl-item-dialog { display: none !important; }
}
