/* The gallery is an ordinary scrolling page with a heading (the map page's app layout is
   only for body.app in app.css). */
body { padding: 16px clamp(16px, 3vw, 32px) 32px; font-size: 15px; line-height: 1.45; }
.top { position: relative; }
.top h1 { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; letter-spacing: 0.02em; }
.tag { margin: 2px 0 16px; color: var(--faint); font-family: "IM Fell English", Georgia, serif; font-style: italic; font-size: 1.05rem; }
.top-nav { position: absolute; right: 0; top: 6px; border-left: 0; padding-left: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.tabs [role="tab"] { font: inherit; font-weight: 600; padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: none; color: var(--faint); cursor: pointer; margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { background: var(--card); border-color: var(--rule); color: var(--ink); }
.intro { margin: 0 0 14px; color: var(--faint); font-size: 0.9rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card a.pic { display: block; background: #fff; aspect-ratio: 1 / 1.1; }
.card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h2 { margin: 0; font: 400 1.1rem/1.2 "IM Fell English", Georgia, serif; overflow-wrap: anywhere; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card time { font-size: 0.78rem; color: var(--faint); }
.card .actions { margin-top: auto; padding-top: 6px; display: flex; gap: 6px; }
.card .plain { padding: 4px 8px; font-size: 0.8rem; }
.empty { color: var(--faint); }
.empty a { color: var(--ink); font-weight: 600; }
#more { margin: 16px auto 0; display: block; }
#more[hidden] { display: none; }
