*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-family: "ui-rounded", system-ui;
  --font-size: 18px;
  --interactive: #f00;
  --interactive-muted: rgba(255, 0, 0, 0.1);
  --text-1: #000;
  --text-2: #666;
  --text-3: #999;
  --bg: #fff;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --bg-subtle: #f0f0f0;
  --border: rgba(0, 0, 0, 0.1);
  --gap: 12px;
  --gutter: 4rem;
  --half-gutter: 1rem;
  /* Focus: outline only (no box-shadow) — avoids clashing with UI elevation shadows */
  --focus-outline-width: 2px;
  --focus-outline-color: var(--interactive);
  --focus-outline-offset: 2px;
}
@media (max-width: 500px) {
  :root {
    --gutter: 1rem;
    --half-gutter: 0.5rem;
  }
}
@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --interactive: color(display-p3 1 0.05 0);
      --interactive-muted: color(display-p3 1 0.22 0.12 / 0.14);
    }
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --text-1: #aaa;
    --text-2: #888;
    --text-3: #555;
    --bg: #111;
    --bg-elevated: rgba(30, 30, 30, 0.85);
    --bg-subtle: #222;
    --border: rgba(255, 255, 255, 0.1);
  }
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-family);
  font-size: var(--font-size);
  overflow: hidden;
}

#app {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  accent-color: var(--interactive);
  -webkit-focus-ring-color: transparent;
}

[v-cloak] {
  display: none;
}

/* ── Focus: strip UA ring (often blue); red rings applied in rules below ── */
#app :focus {
  outline: none;
}

/* ── Focus: :focus-visible uses outline (not box-shadow) on listed controls ── */
#app button,
#app .bottom-nav-btn,
#app .bottom-nav-settings,
#app .bottom-entry-plus,
#app .toast button,
#app .btn-copy,
#app .btn-secondary,
#app .btn-danger,
#app .tag button,
#app .setup-form input,
#app .bottom-entry-search,
#app .tag-input,
#app .detail-description,
#app .detail-preview a {
  -webkit-tap-highlight-color: transparent;
}

#app button:focus-visible:not(:disabled),
#app .bottom-nav-settings:focus-visible,
#app .bottom-entry-plus:focus-visible:not(:disabled),
#app .toast-undo:focus-visible,
#app .toast-dismiss:focus-visible,
#app .btn-copy:focus-visible,
#app .btn-secondary:focus-visible,
#app .btn-danger:focus-visible,
#app .tag button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

/* Primary (red) connect button: light ring for contrast */
#app .setup-form button:focus-visible:not(:disabled) {
  outline-color: #fff;
}

#app .setup-form input:focus-visible,
#app .bottom-entry-search:focus-visible,
#app .tag-input:focus-visible,
#app .detail-description:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

#app .detail-preview a:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
  border-radius: 0.25rem;
}

/* Firefox legacy inner border on <button> can read as a stray “ring” */
#app button::-moz-focus-inner {
  border: 0;
}

/* ── Setup ── */

.setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 2rem;
  padding: 3rem 2rem;
}

.setup h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-1);
}
.setup p {
  color: var(--text-3);
  font-size: 1rem;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
}

.setup-form input {
  font-size: 1rem; /* restore from label's font-size: 0 */
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text-1);
  font-size: 1rem;
  font-family: inherit;
}
.setup-form input:focus {
  border-color: var(--interactive);
}

.setup-form button {
  margin-top: 0.25rem;
  padding: 0.65rem;
  background: var(--interactive);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.setup-form button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Main layout ── */

.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Bottom entry bar (+) & bottom nav — aligned with fs(do) / fs(date) ── */

.bottom-entry-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-1);
  font-size: var(--font-size);
  font-weight: bold;
  position: fixed;
  bottom: calc(6rem + var(--keyboard-inset, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2);
  max-width: 500px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  user-select: none;
  -webkit-user-select: none;
}
/* Multi-line upload stack: top-align + with first row (not vertically centered in tall bar) */
.bottom-entry-bar--busy {
  align-items: flex-start;
}

.bottom-entry-plus {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--interactive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.bottom-entry-plus:hover:not(:disabled) {
  background: var(--bg-subtle);
}
.bottom-entry-plus:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Same asset + mask technique as fs(do) `.new-todo-plus-icon` */
.bottom-entry-plus-icon {
  display: block;
  width: 32px;
  height: 32px;
  background-color: currentColor;
  -webkit-mask-image: url("assets/plus.svg");
  mask-image: url("assets/plus.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.bottom-entry-search {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-1);
  font-size: var(--font-size);
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
}
.bottom-entry-search::placeholder {
  color: var(--text-3);
  font-weight: 600;
}

.bottom-upload-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 140px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 50%;
  transform: translateX(50%);
  width: 100%;
  padding: 0 var(--half-gutter);
  z-index: 1000;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.bottom-nav-bar > * {
  pointer-events: auto;
}

.bottom-nav-pusher {
  flex: 1;
}
.bottom-nav-pusher--right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.bottom-nav-btn {
  font-family: monospace;
  font-size: var(--font-size);
  font-weight: bold;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  color: var(--interactive);
  border-radius: 100px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.bottom-nav-btn:hover:not(:disabled) {
  background-color: var(--bg-subtle);
}
.bottom-nav-btn:hover:not(:disabled) svg polygon,
.bottom-nav-btn:hover:not(:disabled) svg circle {
  fill: currentColor;
}
.bottom-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.bottom-nav-settings {
  font-family: monospace;
  font-size: var(--font-size);
  font-weight: bold;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  line-height: 1;
}
.bottom-nav-settings:hover {
  color: var(--text-1);
  background: var(--bg-subtle);
}

.bottom-dim-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 3rem,
    transparent 100%
  );
  pointer-events: none;
  z-index: 50;
}

.upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: 0.5rem;
}
.upload-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 0.85rem;
}
.upload-state {
  font-size: 0.75rem;
  flex-shrink: 0;
}
.upload-state.uploading {
  color: var(--text-2);
}
.upload-state.done {
  color: var(--interactive);
}
.upload-state.error {
  color: var(--interactive);
}
.upload-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.1s linear;
  background: var(--text-3);
}
.upload-bar-fill.done {
  background: var(--interactive);
}
.upload-bar-fill.error {
  background: var(--interactive);
  opacity: 0.5;
}

/* ── Split browse: grid + detail ── */

.browse {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 0;
  overflow: hidden;
  align-items: stretch;
}

/* Only this pane scrolls; horizontal overflow from grid is clipped */
.browse-grid-wrap {
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.gallery-filter-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Gallery ── */

.gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--gap);
  padding: 1.25rem 1.5rem 10rem;
  overflow: visible;
}
.gallery[role="listbox"]:focus {
  outline: none;
}
.gallery-item {
  --gallery-inset: 6px;
  box-sizing: border-box;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* background: var(--bg-subtle); */
  /* Extra bottom breathing room so bitmap + inset focus ring don’t meet */
  padding: var(--gallery-inset) var(--gallery-inset)
    calc(var(--gallery-inset) + 2px);
  border: none;
  /* UA often still paints a system focus ring on [role=option][tabindex]; kill it — we use inset shadow */
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  /* Inset ring: outline is clipped by overflow:hidden on cells */
  transition: box-shadow 0.12s ease;
  overflow: hidden;
  display: flex;
}
/* :focus as well: script-driven .focus() is often :focus-only, not :focus-visible */
.gallery-item:focus,
.gallery-item:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 var(--focus-outline-width) var(--focus-outline-color);
  z-index: 1;
}
.gallery--original .gallery-item {
  aspect-ratio: unset;
  display: block;
  padding: var(--gallery-inset);
}
/* Square grid: fill the inner tile (crop), aligned with object-position */
.gallery-item img {
  display: block;
  box-sizing: border-box;
  width: 100%;

  border: none;
  outline: none;
  border-radius: calc(0.6rem - var(--gallery-inset));
  transition: opacity 0.15s;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: contain;
  overflow: hidden;
}
.gallery--original .gallery-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.gallery-item:hover img,
.gallery-item:focus img,
.gallery-item:focus-visible img {
  opacity: 0.85;
}

.empty-state {
  text-align: center;
  color: var(--text-3);
  padding: 5rem 2rem 10rem;
}

/* ── Detail pane ── */

.detail-pane {
  overflow: auto;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.detail-pane-inner {
  display: flex;
  flex-direction: column;
  min-height: min-content;
}

/* Desktop: preview + meta stacked; mobile: horizontal scroll-snap */
.detail-slides {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: min-content;
}
.detail-slide {
  min-width: 0;
}

.detail-slide-dots {
  display: none;
}

.detail-preview {
  background: var(--bg-subtle);

  padding: 1.5rem;
}
.detail-preview a {
  display: block;
  line-height: 0;
}
.detail-preview-img {
  display: block;
  width: 100%;
  max-height: min(42vh, 360px);
  object-fit: contain;
  background: var(--bg-subtle);
}

.detail-placeholder {
  padding: 2rem 1.5rem;
  color: var(--text-3);
  font-size: 0.95rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  text-align: center;
}

.detail-meta {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.detail-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.detail-label {
  width: 90px;
  flex-shrink: 0;
  color: var(--text-3);
  font-size: 0.8rem;
  padding-top: 2px;
}
.detail-value {
  color: var(--text-1);
  font-size: 0.9rem;
}

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}
.tag button {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.tag button:hover {
  color: var(--interactive);
}

.tag-input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.85rem;
  padding: 0.15rem 0.25rem;
  width: 100px;
  font-family: inherit;
  border-radius: 2px;
}
.tag-input:focus {
  border-color: var(--interactive);
}

.url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.url-text {
  font-size: 0.8rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.btn-copy {
  flex-shrink: 0;
  padding: 0.2rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: var(--text-2);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-copy:hover {
  border-color: var(--interactive);
  color: var(--interactive);
}

.detail-description {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-1);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  width: 100%;
}
.detail-description:focus {
  border-color: var(--interactive);
}
.detail-description:focus-visible {
  border-color: var(--interactive);
}

.detail-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.btn-secondary {
  padding: 0.4rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn-secondary:hover {
  background: var(--border);
}
.btn-danger {
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid var(--interactive);
  border-radius: 0.5rem;
  color: var(--interactive);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-danger:hover {
  background: var(--interactive);
  color: #fff;
}

/* ── Drop overlay ── */

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
@media (prefers-color-scheme: dark) {
  .drop-overlay {
    background: rgba(0, 0, 0, 0.7);
  }
}
.drop-overlay span {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--interactive);
  border: 2px dashed var(--interactive);
  padding: 2.5rem 4rem;
  border-radius: 1rem;
}

/* ── Toasts ── */

.toast-stack {
  position: fixed;
  bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1100;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  pointer-events: all;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: toast-in 0.15s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast-name {
  font-size: 0.85rem;
  color: var(--text-2);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-undo {
  background: var(--interactive);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.toast-dismiss {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.1rem;
}
.toast-dismiss:hover {
  color: var(--text-1);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .browse {
    grid-template-columns: 1fr;
    /* Equal halves of the browse area */
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .detail-pane {
    order: 1;
    border-left: none;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .detail-pane-inner {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .detail-slides {
    flex: 1;
    min-height: 0;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .detail-slides::-webkit-scrollbar {
    display: none;
  }
  .detail-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .detail-slide--preview {
    display: flex;
    flex-direction: column;
  }
  .detail-slide--meta {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .detail-meta {
    flex: 1 1 auto;
    min-height: min-content;
    padding-bottom: 1.5rem;
  }
  .detail-preview {
    flex: 1;
    min-height: 0;
    position: relative;
    border-bottom: none;
  }
  .detail-preview a {
    position: absolute;
    inset: 0.35rem;
    display: block;
    line-height: 0;
  }
  .detail-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .detail-slide-dots {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem 0 0.45rem;
  }
  .detail-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0;
    background: var(--border);
    cursor: pointer;
    flex-shrink: 0;
    transition:
      transform 0.12s ease,
      background 0.12s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .detail-slide-dot.is-active {
    background: var(--interactive);
    transform: scale(1.2);
  }
  .detail-placeholder {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .browse-grid-wrap {
    order: 2;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .browse .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1rem 1.25rem 10rem;
  }
  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .detail-label {
    width: auto;
  }
}
