/* 本体レイアウト・地図・期間・凡例・パネル各セクション・一覧・詳細シート */

.app {
  display: grid;
}
.map-wrap {
  position: relative;
  height: 58svh;
  min-height: 340px;
}
#map {
  position: absolute;
  inset: 0;
  background: #e9edf0;
}
.panel {
  background: var(--paper);
  display: grid;
  align-content: start;
}

@media (min-width: 1024px) {
  .bar .btn-primary {
    display: inline-flex;
  }
  .app {
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    height: calc(100vh - var(--bar-h));
  }
  .map-wrap {
    height: auto;
  }
  .panel {
    overflow-y: auto;
    border-left: 1px solid var(--rule);
  }
  .action-bar {
    display: none !important;
  }
}

/* ===== 期間（件数） ===== */
.periods {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}
.seg {
  pointer-events: auto;
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 26, 34, 0.12);
  overflow: hidden;
  max-width: 100%;
}
.seg button {
  border: 0;
  background: none;
  padding: 7px 12px 6px;
  display: grid;
  justify-items: start;
  gap: 0;
  cursor: pointer;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.seg button:last-child {
  border-right: 0;
}
.seg .lbl {
  font-size: 11px;
  color: var(--graphite);
  white-space: nowrap;
}
.seg .cnt {
  font-family: var(--data);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
}
.seg .cnt small {
  font-size: 11px;
  font-weight: 500;
  margin-left: 2px;
  color: var(--graphite);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
}
.seg button[aria-pressed="true"] .lbl,
.seg button[aria-pressed="true"] .cnt,
.seg button[aria-pressed="true"] .cnt small {
  color: #fff;
}
.seg button.zero .cnt {
  color: var(--mist);
}
.seg button .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

/* 「地図でこの雪崩を見る」の後で戻る「← 詳細に戻る」ボタン（画面幅1024px未満のみ・main.js が出し消しする）。
   期間ピル（.periods）の下、地図のコントロール（topright・スマホでは top:76px から）や凡例・下部の
   操作バー・著作権表記と重ならない、地図上端の左側に固定する。iPhoneの横向き時のセーフエリアを考慮。 */
.map-back {
  position: absolute;
  z-index: 500;
  top: 70px;
  left: max(12px, env(safe-area-inset-left, 0px));
  box-shadow: 0 2px 10px rgba(17, 26, 34, 0.12);
}
@media (min-width: 1024px) {
  .map-back {
    display: none !important;
  }
}

/* ホームの一覧の下「過去の記録を検索する（雪崩データベース）」（/v2/database/ へ・2026-09-26） */
.db-link {
  justify-self: start;
}

/* 方位×標高の扇で絞っている間の帯（main.js の renderRoseFilterBar が出し消しする・CEO 指示 2026-09-26）。
   期間ピルの下・左端。右上の地図のコントロールに重ならないよう幅を抑える */
.rose-filter {
  position: absolute;
  z-index: 500;
  top: 70px;
  left: max(12px, env(safe-area-inset-left, 0px));
  max-width: calc(100% - 84px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(17, 26, 34, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.rose-filter[hidden] {
  display: none;
}
.rose-filter button {
  flex: none;
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
/* 帯と「← 詳細に戻る」が両方出る時は、戻るボタンを帯の下へ */
.map-wrap:has(.rose-filter:not([hidden])) .map-back {
  top: 116px;
}

.legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--graphite);
  display: grid;
  gap: 3px;
}
.legend .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: -1px;
}

/* ===== パネル ===== */
.sec {
  padding: 20px 20px 22px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 12px;
}
.sec h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.status {
  display: grid;
  gap: 6px;
}
.status .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
.state.on {
  background: #fdecea;
  color: #a52a20;
}
.state.off {
  background: var(--wash);
  color: var(--graphite);
}
.status .headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
.status .sub {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
}

/* 方位×標高 */
.rose-wrap {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
/* 件数のある扇は押せる（押すと地図・一覧がその雪崩だけになる） */
.rose-cell {
  cursor: pointer;
}
.rose-cell:hover {
  opacity: 0.82;
}
.rose-cell:focus-visible {
  outline: none;
  stroke: #111a22;
  stroke-width: 2;
}
.rose-wrap svg {
  width: 100%;
  height: auto;
  max-width: 190px;
}
.rose-key {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--graphite);
}
.rose-key .band {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 3px;
}
.rose-key .band span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rose-key .band .chip {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.rose-key .band b {
  font-weight: 500;
  color: var(--ink);
}
/* ローズ図の季節切替（#seg の見た目に合わせた小型ピル。スマホ幅では折り返し・横スクロールなし） */
.rose-seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 文字は等幅の細い字（--data・11px）から、本文の字の太字・13px に（2026-10-06 CEO「フォントが細くて分かりづらい」）。
   太さは読み込んでいる Noto Sans JP の 700 */
.rose-seasons button {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.rose-seasons button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.rose-note {
  font-size: 12px;
  color: var(--mist);
  margin: 0;
}

/* ===== 検索・絞り込み（CEO決定 2026-09-26：雪崩データベースのページの役割をホームにまとめる） ===== */
.search-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.search-bar .btn {
  flex: none;
}
.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--graphite);
}
.filter-clear {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
}
.filter-panel {
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}
.filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  color: var(--graphite);
}
.filter-field.filter-range {
  grid-column: 1 / -1;
}
.filter-field select,
.filter-field input[type="text"],
.filter-field input[type="number"],
.filter-field input[type="date"] {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.range-inputs input {
  min-width: 0;
}
.range-sep {
  flex: none;
  color: var(--mist);
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--graphite);
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 記録の一覧 */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.list li + li {
  border-top: 1px solid var(--rule);
}
/* 年と月ごとに分けた一覧（雪崩データベースのページ・list.js の renderGroupedList・2026-09-26） */
.list > .list-year {
  display: grid;
  gap: 4px;
  padding: 8px 0 4px;
}
.list > .list-year + .list-year {
  border-top: 0;
  margin-top: 12px;
}
.year-h,
.month-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  list-style: none;
  cursor: pointer;
}
.year-h::-webkit-details-marker,
.month-h::-webkit-details-marker {
  display: none;
}
/* 開け閉めの向き（閉じている間は右向き・開くと下向き） */
.year-h::before,
.month-h::before {
  content: "";
  flex: none;
  align-self: center;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transition: transform 0.15s ease;
}
details[open] > .year-h::before,
details[open] > .month-h::before {
  transform: rotate(90deg);
}
.month-h:hover,
.year-h:hover {
  opacity: 0.8;
}
.list-month {
  padding-left: 14px;
}
.year-h {
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.month-h {
  padding: 10px 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.group-n {
  font-family: var(--data);
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
}
.list-month .list li:first-child {
  border-top: 1px solid var(--rule);
}
.item {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.item:hover .where {
  text-decoration: underline;
}
.item .bar-mark {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  justify-self: center;
}
.item .top {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.item .date {
  font-family: var(--data);
  font-size: 12px;
  color: var(--graphite);
}
.item .where {
  font-weight: 700;
  font-size: 15px;
}
.item .area {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--graphite);
}
.item .facts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.tag {
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--wash);
  color: var(--ink);
  white-space: nowrap;
}
.tag.size {
  font-family: var(--data);
  font-weight: 600;
  background: var(--ink);
  color: #fff;
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--wash) center / cover no-repeat;
}

.about {
  gap: 14px;
}
.about .statement {
  font-family: var(--statement);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.45;
  margin: 0;
  text-wrap: balance;
}
/* 紹介文は2行（文の区切りで改行・CEO 決定 2026-09-29） */
#about-body {
  white-space: pre-line;
}
.about p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  max-width: 34em;
}
.about .ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.foot {
  padding: 18px 20px calc(96px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: var(--mist);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.foot a {
  color: var(--graphite);
}
.foot .attrib {
  flex-basis: 100%;
}
@media (min-width: 1024px) {
  .foot {
    padding-bottom: 24px;
  }
}

/* ===== 詳細シート ===== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(17, 26, 34, 0.35);
}
.sheet {
  position: fixed;
  z-index: 1201;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88svh;
  background: var(--paper);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 30px rgba(17, 26, 34, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 1024px) {
  .sheet {
    left: auto;
    right: 0;
    top: var(--bar-h);
    bottom: 0;
    width: var(--panel-w);
    max-height: none;
    border-radius: 0;
    box-shadow: -6px 0 24px rgba(17, 26, 34, 0.12);
  }
  .sheet-backdrop {
    background: transparent;
    pointer-events: none;
  }
}
/* PC で詳細シートの左端をつまんで幅を変える取っ手（sheet-resize.js が作る・CEO 指示 2026-09-26）。
   スマホ幅（下から出るシート）では出さない */
.sheet-resize {
  display: none;
}
@media (min-width: 1024px) {
  .sheet-resize {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: -5px;
    width: 10px;
    cursor: col-resize;
    touch-action: none;
  }
  /* 真ん中のつまみ（縦長の小さな棒）と、触れた時の縦の線 */
  .sheet-resize::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 4px;
    height: 44px;
    margin-top: -22px;
    border-radius: 2px;
    background: var(--rule);
  }
  .sheet-resize::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: transparent;
  }
  .sheet-resize:hover::before,
  .sheet-resize:focus-visible::before,
  .sheet-resizing .sheet-resize::before {
    background: var(--graphite);
  }
  .sheet-resize:hover::after,
  .sheet-resize:focus-visible::after,
  .sheet-resizing .sheet-resize::after {
    background: var(--rule);
  }
  .sheet-resize:focus-visible {
    outline: none;
  }
  /* つまんで動かしている間は文字を選ばない・どこでも左右の矢印のカーソル */
  .sheet-resizing {
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--rule);
}
.sheet-head .grab {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
  transform: translateX(-50%);
}
.sheet-head h3 {
  margin: 0;
  font-size: 16px;
  flex: 1;
  min-width: 0;
}
.sheet-close {
  border: 0;
  background: var(--wash);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}
.sheet-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}
.kv dt {
  color: var(--graphite);
  font-size: 12px;
  padding-top: 2px;
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.kv dd.place {
  display: grid;
  gap: 2px;
}
.kv .place-sub,
.kv .place-admin {
  font-size: 12px;
  color: var(--graphite);
}
.kv .place-admin[hidden] {
  display: none;
}

/* ===== 共有（X・Facebook・LINE・URLコピー。CEO指示 2026-09-26） ===== */
.detail-share {
  display: grid;
  gap: 8px;
}
.detail-share h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
/* 各社の色の丸に白抜きの印（CEO 指示 2026-09-26）。X は黒・Facebook は青・LINE は緑 */
.share-btn--x,
.share-btn--facebook,
.share-btn--line {
  border-color: transparent;
  color: #fff;
}
.share-btn--x {
  background: #000;
}
.share-btn--facebook {
  background: #1877f2;
}
.share-btn--line {
  background: #06c755;
}
.share-btn--x:hover,
.share-btn--facebook:hover,
.share-btn--line:hover {
  opacity: 0.88;
}
.share-btn--copy {
  width: auto;
  gap: 6px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.copy-fallback {
  display: grid;
  gap: 4px;
}
.copy-fallback input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--data);
  font-size: 13px;
}

/* 横スクロールの枠はグリッド内で高さ0まで縮められるため、行の高さを固定する */
.photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  grid-auto-rows: 200px;
  min-height: 200px;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
/* 押せる写真（クリックで拡大表示・CEO指示 2026-09-26）：グリッドのマス目自体を button にする */
.photos .photo-btn {
  display: block;
  width: 100%;
  height: 200px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  scroll-snap-align: start;
}
.photos .photo-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.photos img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--wash);
}
.desc {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
}
.muted {
  color: var(--mist);
}

/* ===== コメントの機械翻訳（詳細シート） ===== */
.translate-area {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.translate-status {
  margin: 0;
  font-size: 13px;
  color: var(--graphite);
}
.desc-translated {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
}
.translate-note {
  margin: 0;
  font-size: 12px;
  color: var(--mist);
}

.leaflet-container {
  font-family: var(--ui);
}
.leaflet-control-attribution {
  font-size: 10px;
}
.leaflet-top,
.leaflet-bottom {
  margin: 0;
}
.leaflet-bottom.leaflet-right {
  margin-bottom: 0;
}
@media (max-width: 1023px) {
  .leaflet-top.leaflet-right {
    top: 76px;
  }
}
@media (min-width: 1024px) {
  .leaflet-top.leaflet-right {
    top: 80px;
  }
}

/* 線の凡例は、破断面・流下経路を描いている拡大時だけ */
.legend .legend-lines {
  display: none;
}
.shapes-on .legend .legend-lines {
  display: flex;
}
.legend .line-key {
  display: inline-block;
  width: 22px;
  height: 0;
  vertical-align: middle;
  margin-right: 4px;
}
/* 破断面＝青の破線・流下経路＝緑の実線（CEO 指示 2026-10-06） */
.legend .line-key.fracture {
  border-top: 3px dashed var(--fracture);
}
.legend .line-key.runout {
  border-top: 3px solid var(--runout);
  margin-left: 6px;
}

/* ===== 写真の拡大表示（ライトボックス） ===== */
/* v2/js/lightbox.js が生成する要素（詳細シートの写真・3Dのポップアップ写真の共通部品・
   CEO指示 2026-09-26）。terrain.css 側にも同じ規則がある（ページごとに読み込むCSSが別なため複製。
   z-indexだけ、このページの最大値＝詳細シート.sheetの1201より確実に前面へ出るよう合わせてある）。 */
.lightbox {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 26, 34, 0.92);
}
.lightbox-img {
  position: relative;
  max-width: min(94vw, 1200px);
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lightbox-close {
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.lightbox-prev {
  left: max(10px, env(safe-area-inset-left, 0px));
}
.lightbox-next {
  right: max(10px, env(safe-area-inset-right, 0px));
}
.lightbox-count {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12.5px;
  font-family: var(--data);
  background: rgba(17, 26, 34, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
}
