/* Sundial lightbox (gallery and sample photos open big). d12 tokens only. */
html { scrollbar-gutter: stable; }
html.lb-open { overflow: hidden; }
.lb-trigger { display: block; cursor: zoom-in; color: inherit; text-decoration: none; border-radius: var(--r-s); }
.lb-trigger:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; }
a.pt-wph__media { display: block; }
.pt-strip .lb-trigger { border-radius: var(--r-s); }

.lb[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.lb__scrim { position: absolute; inset: 0; background: rgba(29, 29, 31, .78); opacity: 0; transition: opacity .18s ease; }
.lb.is-shown .lb__scrim { opacity: 1; }
.lb__dialog {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "bar bar" "stage cap"; width: min(1120px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: var(--white); border-radius: var(--r-l, 20px); overflow: hidden; box-shadow: var(--shadow-d);
  opacity: 0; transform: translateY(8px) scale(.99); transition: opacity .18s ease, transform .22s ease;
}
.lb.is-shown .lb__dialog { opacity: 1; transform: none; }
.lb__bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.lb__count { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ink-2); }
.lb__x { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.lb__x:hover { border-color: var(--line-strong); }
.lb__stage { grid-area: stage; position: relative; display: grid; place-items: center; min-height: 0; padding: 16px 64px; background: var(--paper); touch-action: pan-y; }
.lb__img { display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-s);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); opacity: 0; transition: opacity .15s ease; }
.lb__img.is-in { opacity: 1; }
.lb__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); }
.lb__nav:hover:not([disabled]) { border-color: var(--line-strong); }
.lb__nav[disabled] { opacity: .35; cursor: default; }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }
.lb.is-single .lb__nav { display: none; }
.lb__cap { grid-area: cap; display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; overflow-y: auto; }
.lb__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.lb__body { display: grid; gap: 10px; }
.lb__lvl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--ink); }
.lb__lvl .pt-meter__txt { display: none; }
.lb__plain { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.lb__fact { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lb__note { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.lb__go { justify-self: start; margin-top: 4px; }
@media (max-width: 900px) {
  .lb { padding: 0; align-items: end; }
  .lb__dialog { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, auto) auto; grid-template-areas: "bar" "stage" "cap";
    width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 16px 16px 0 0; }
  .lb__stage { padding: 12px 56px; }
  .lb__img { max-height: 46vh; max-height: 46dvh; }
  .lb__cap { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 40vh; max-height: 40dvh; }
  .lb__title { font-size: 18px; }
}
@media (max-width: 480px) {
  .lb__stage { padding: 10px 8px 60px; }
  .lb__nav { top: auto; bottom: 8px; margin-top: 0; }
  .lb__nav--prev { left: calc(50% - 52px); }
  .lb__nav--next { right: calc(50% - 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .lb__scrim, .lb__dialog, .lb__img { transition: none; }
}
.sb-suggest { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
