/* Restore all four navigation buttons on phones and tablets. */
@media (max-width: 1080px) {
  header .wrap.nav { flex-wrap: wrap; justify-content: center; gap: 12px; box-sizing: border-box; }
  header .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; min-width: 0; }
  header .links a.nav-other,
  header .links a.nav-roof,
  header .links a.nav-pm,
  header .links a.nav-cta { display: inline-flex !important; align-items: center; justify-content: center; }
}
@media (max-width: 650px) {
  header .wrap.nav { padding: 12px 13px; }
  header .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  header .links a { box-sizing: border-box; min-width: 0; min-height: 46px; margin: 0; padding: 9px 8px !important; text-align: center; font-size: 12px !important; line-height: 1.25; white-space: normal; }
  header .links a.nav-other { flex-direction: column; gap: 2px; }
  header .links a.nav-other small { font-size: 9px; }
}

.bwr-photo-button { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; border-radius: inherit; }
.bwr-photo-trigger { cursor: zoom-in; }
.bwr-photo-trigger:focus-visible { outline: 3px solid #1777de; outline-offset: 4px; }
dialog.bwr-lightbox:not([open]) { display: none !important; }
dialog.bwr-lightbox[open] {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  box-sizing: border-box; width: 100%; max-width: none; height: 100vh; height: 100dvh;
  max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #07111b; color: #fff; overflow: hidden;
  font-family: Inter, system-ui, -apple-system, sans-serif; text-align: left;
  overscroll-behavior: contain;
}
.bwr-lightbox::backdrop { background: #07111b; }
.bwr-lightbox .bwr-lightbox-top { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); background: #0e1b28; }
.bwr-lightbox-heading { min-width: 0; }
.bwr-lightbox #bwr-gallery-title { margin: 0 0 5px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bwr-lightbox #bwr-gallery-counter { color: #bcd0e2; font-size: 14px; font-variant-numeric: tabular-nums; }
.bwr-lightbox button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; margin: 0; padding: 12px; border: 1px solid #728397; border-radius: 50%; background: #1b2b3b; color: #fff; cursor: pointer; appearance: none; }
.bwr-lightbox button:hover { background: #244766; }
.bwr-lightbox button:focus-visible { outline: 3px solid #77c8ff; outline-offset: 3px; }
.bwr-lightbox button svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bwr-lightbox .bwr-lightbox-stage { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 16px; min-height: 0; padding: 12px 20px; touch-action: pan-y pinch-zoom; }
.bwr-lightbox-image-area { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; position: relative; height: 100%; min-width: 0; min-height: 0; }
.bwr-lightbox .bwr-lightbox-image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: contain; background: transparent; user-select: none; -webkit-user-drag: none; }
.bwr-lightbox .bwr-lightbox-image.bwr-is-loading { opacity: 0; }
.bwr-lightbox-status { position: absolute; top: 50%; left: 50%; width: min(85%, 420px); transform: translate(-50%, -50%); margin: 0; color: #dce7f2; text-align: center; font-size: 15px; line-height: 1.5; }
.bwr-lightbox .bwr-lightbox-bottom { flex: 0 0 auto; padding: 12px max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: #0e1b28; text-align: center; }
.bwr-lightbox #bwr-gallery-caption { max-height: 15vh; overflow: auto; max-width: 900px; margin: 0 auto 6px; padding: 0; color: #fff; font-size: 14px; line-height: 1.5; }
.bwr-lightbox #bwr-gallery-help { margin: 0; color: #bcd0e2; font-size: 12px; line-height: 1.5; }
.bwr-lightbox [hidden] { display: none !important; }
@media (max-width: 650px) {
  .bwr-lightbox .bwr-lightbox-top { gap: 12px; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(14px, env(safe-area-inset-left)); }
  .bwr-lightbox #bwr-gallery-title { font-size: 14px; }
  .bwr-lightbox .bwr-lightbox-stage { padding: 6px 0; gap: 0; }
  .bwr-lightbox .bwr-lightbox-arrow { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); background: #07111bba; }
  .bwr-lightbox .bwr-lightbox-prev { left: max(8px, env(safe-area-inset-left)); }
  .bwr-lightbox .bwr-lightbox-next { right: max(8px, env(safe-area-inset-right)); }
  .bwr-lightbox #bwr-gallery-help { font-size: 11px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .bwr-lightbox .bwr-lightbox-top { padding-top: 5px; padding-bottom: 5px; }
  .bwr-lightbox .bwr-lightbox-bottom { padding-top: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .bwr-lightbox #bwr-gallery-caption { max-height: 12vh; font-size: 12px; margin-bottom: 0; }
  .bwr-lightbox #bwr-gallery-help { display: none; }
}
