:root {
  --ink: #1b1714;
  --ink-soft: #3d352e;
  --paper: #f6f1ea;
  --paper-deep: #eee6da;
  --sand: #e6dac8;
  --amber: #b8863b;
  --amber-soft: #d8b678;
  --plum: #2a1f2d;
  --muted: #776c62;
  --line: rgba(27, 23, 20, 0.13);
  --white: #fffdf9;
  --shadow-sm: 0 1px 2px rgba(27, 23, 20, 0.06), 0 8px 24px rgba(27, 23, 20, 0.05);
  --shadow-lg: 0 30px 80px rgba(15, 12, 10, 0.35);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184, 134, 59, 0.09), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--amber-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: min(1440px, 100% - 56px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1440px, 100% - 56px);
  margin-inline: auto;
  height: 72px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--amber-soft);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.035);
}

.brand-text { display: grid; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-text small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 3px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 72%, transparent);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search:focus-within {
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(184, 134, 59, 0.12);
}
.search > svg {
  width: 18px;
  height: 18px;
  margin-left: 16px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 8px 0 10px;
  font-size: 14.5px;
}
.search input::placeholder { color: #95887c; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  flex: none;
  margin-right: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--paper);
}
.search-clear {
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}
.search-clear svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.search:focus-within kbd { display: none; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--paper-deep); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.fav-toggle { position: relative; }
.fav-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.fav-toggle[aria-pressed="true"] { color: var(--amber); }
.fav-toggle[aria-pressed="true"] svg { fill: var(--amber); }

.view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--white) 55%, transparent);
}
.view-toggle .icon-btn { width: 34px; height: 32px; border-radius: 8px; }
.view-toggle .icon-btn.is-active { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-block: 52px 34px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 500; }
.hero-sub { margin: 16px 0 0; max-width: 44ch; color: var(--muted); font-size: 14.5px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 5px;
}
.hero-meta > div {
  padding: 0 26px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.hero-meta > div:first-child { border-left: 0; padding-left: 0; }
.hero-meta > div:last-child { padding-right: 0; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-meta span {
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Toolbar ---------- */

.gallery-shell { padding-bottom: 24px; }

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 16px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: rgba(27, 23, 20, 0.28); background: rgba(255, 253, 249, 0.5); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip .n { font-size: 10.5px; opacity: 0.55; font-variant-numeric: tabular-nums; }
.chip .heart { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chip.is-active .heart { fill: currentColor; }

.toolbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.result-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.sort { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.sort select {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 7px 26px 7px 10px;
  font-size: 12px;
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23776c62' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
}

.card {
  min-width: 0;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid rgba(27, 23, 20, 0.05);
  box-shadow: 0 1px 2px rgba(27, 23, 20, 0.04);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
}
.card-media img.is-loading { opacity: 0; }
.card:hover .card-media img { transform: scale(1.035); }

.card-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  z-index: 2;
}
.card-hit:focus-visible { outline-offset: -4px; }

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(27, 23, 20, 0.58);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-badge, .card:focus-within .card-badge { opacity: 1; transform: none; }

.card-fav {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s, transform 0.18s, color 0.18s;
}
.card:hover .card-fav, .card:focus-within .card-fav, .card-fav.is-fav { opacity: 1; transform: none; }
.card-fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.card-fav.is-fav { color: var(--amber); }
.card-fav.is-fav svg { fill: var(--amber); }

.card-body { padding: 10px 2px 0; }
.card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--muted); flex: none; }

/* List view */
#grid.list-view { display: flex; flex-direction: column; gap: 8px; }
#grid.list-view .card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 58px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--white) 40%, transparent);
  animation: none;
}
#grid.list-view .card:hover { background: var(--white); }
#grid.list-view .card-media { position: static; aspect-ratio: 1; width: 74px; border-radius: 8px; overflow: hidden; }
#grid.list-view .card-badge { display: none; }
#grid.list-view .card-fav {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  opacity: 1;
  background: transparent;
  backdrop-filter: none;
}
#grid.list-view .card-body { padding: 0; min-width: 0; }
#grid.list-view .card-title { font-size: 14px; }
#grid.list-view .card-meta { font-size: 11.5px; }
#grid.list-view .card-hit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* Skeleton */
.skeleton .card-media, .skeleton .card-title, .skeleton .card-meta { position: relative; overflow: hidden; background: var(--paper-deep); }
.skeleton .card-title { height: 12px; width: 72%; border-radius: 4px; margin: 0 0 6px; }
.skeleton .card-meta { height: 9px; width: 48%; border-radius: 4px; }
.skeleton .card-media::after, .skeleton .card-title::after, .skeleton .card-meta::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 253, 249, 0.55), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Empty ---------- */

.empty {
  text-align: center;
  padding: 70px 20px 90px;
  border: 1px dashed rgba(27, 23, 20, 0.18);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 249, 0.35);
}
.empty-icon { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-deep); }
.empty-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.empty h2 { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin: 0 0 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

/* ---------- Buttons ---------- */

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: #2c2520; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(27, 23, 20, 0.3); background: rgba(255, 253, 249, 0.6); }
.btn-ghost[aria-pressed="true"] { color: var(--amber); border-color: rgba(184, 134, 59, 0.45); }
.btn-ghost[aria-pressed="true"] svg { fill: var(--amber); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px 42px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}
.footer p { margin: 0; }
.footer strong { color: var(--ink); font-weight: 600; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 14, 0.76); backdrop-filter: blur(10px); animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } }

.lb-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  width: min(1180px, 100%);
  height: min(860px, 90dvh);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: lbIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes lbIn { from { opacity: 0; transform: translateY(14px) scale(0.99); } }

.lb-figure {
  margin: 0;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(255, 255, 255, 0.07), transparent 70%),
    #141110;
  display: grid;
  place-items: center;
  padding: 34px;
  min-height: 0;
}
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }

.lb-info { padding: 30px 28px 26px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-kicker { margin: 0 0 8px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.lb-info h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 32px; line-height: 1.05; font-weight: 600; }
.lb-meta { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.lb-tags span { font-size: 10.5px; padding: 4px 8px; border-radius: 5px; background: var(--paper-deep); color: var(--ink-soft); }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.lb-actions .btn { min-height: 40px; }
.lb-note { margin: 14px 0 0; font-size: 10.5px; color: var(--muted); }

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(8px);
  border-color: var(--line);
}
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(27, 23, 20, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.lb-nav:hover { background: rgba(27, 23, 20, 0.72); }
.lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 14px; }
.lb-next { right: 354px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lb-next { right: 14px; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { align-items: flex-start; flex-direction: column; gap: 26px; padding-block: 38px 24px; }
  .hero-meta > div:first-child { padding-left: 0; }
  .lb-shell { grid-template-columns: minmax(0, 1fr) 300px; }
  .lb-info { padding: 24px 22px; }
  .lb-info h2 { font-size: 27px; }
}

@media (max-width: 760px) {
  .wrap, .topbar-inner { width: min(1440px, 100% - 32px); }
  .topbar-inner {
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    padding-block: 10px;
  }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .brand-text strong { font-size: 20px; }
  .brand-text small { font-size: 8px; }
  .top-actions { gap: 2px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; height: 42px; }
  .search kbd { display: none; }
  .view-toggle { display: none; }

  .hero { padding-block: 30px 18px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-sub { font-size: 13.5px; margin-top: 12px; }
  .hero-meta { width: 100%; justify-content: space-between; gap: 0; }
  .hero-meta > div { padding: 0 16px; }
  .hero-meta strong { font-size: 24px; }
  .hero-meta span { font-size: 8.5px; }
  .hero-meta > div:last-child { display: none; }

  .toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 12px;
    margin-bottom: 16px;
  }
  .chips { margin-inline: -16px; padding-inline: 16px; }
  .toolbar-right { justify-content: space-between; }
  .sort > span { display: none; }
  .sort select { background-color: rgba(255, 253, 249, 0.5); }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .card-media { border-radius: 11px; }
  .card-title { font-size: 12.5px; }
  .card-meta { font-size: 10.5px; }
  .card-fav { opacity: 1; transform: none; }
  .card-badge { opacity: 1; transform: none; font-size: 8px; }

  #grid.list-view .card { grid-template-columns: 64px minmax(0, 1fr) auto; }
  #grid.list-view .card-media { width: 64px; }

  .footer { flex-direction: column; gap: 6px; padding-bottom: 30px; }

  .lightbox { padding: 0; }
  .lb-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .lb-figure { padding: 18px 16px; }
  .lb-info { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 42dvh; border-top: 1px solid var(--line); }
  .lb-info h2 { font-size: 24px; }
  .lb-actions { padding-top: 16px; }
  .lb-note { display: none; }
  .lb-close { top: 12px; right: 12px; }
  .lb-nav { width: 38px; height: 38px; top: 34%; }
  .lb-next { right: 10px; }
  .lb-prev { left: 10px; }

  .toast { bottom: 18px; width: max-content; max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
