/* Deliberately plain: this mockup is for testing interactions, not styling. */
body { max-width: 640px; margin: 0 auto; padding: 0 16px; font: 17px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
.h-entry { border-top: 1px solid #ccc; padding: 1.5em 0; }
.type { margin: 0; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.meta, .source { color: #666; font-size: .9em; }
.h-entry h2 { font-size: 1.2em; margin: .3em 0; }
.photos img, .h-entry .e-content img { cursor: zoom-in; }

/* Carousel: native horizontal scroll with snapping, so touch swipe just works. */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track li { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.track img { cursor: zoom-in; max-height: 80vh; width: auto; }
.prev, .next, .close { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 2em; width: 1.4em; height: 1.4em; line-height: 1; cursor: pointer; border-radius: 50%; z-index: 2; }
.prev { left: 6px; } .next { right: 6px; }
.count { text-align: center; color: #666; font-size: .9em; margin: .3em 0 0; }

/* Overlay */
#overlay { position: fixed; inset: 0; margin: 0; border: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #000; overflow: hidden; }
#overlay::backdrop { background: #000; }
#overlay .track { height: 100%; }
#overlay .track img { max-height: 100%; max-width: 100%; cursor: default; }
#overlay .close { top: 12px; right: 12px; transform: none; }
#overlay[data-single] .prev, #overlay[data-single] .next { display: none; }

/* Collections grid: masonry-style columns, so photos keep their shape. */
.type a { color: inherit; }
.grid { columns: 2 150px; column-gap: 12px; list-style: none; padding: 0; }
.grid li { break-inside: avoid; margin-bottom: 16px; position: relative; border: 0; padding: 0; }
.grid a { color: inherit; text-decoration: none; display: block; }
.grid .p-name { display: block; font-size: .9em; margin-top: .3em; }
.grid .meta { margin: 0; font-size: .8em; }
.grid .more { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .8em; padding: 1px 6px; border-radius: 10px; }

/* ---- Home page sections ---- */
.home-section { margin: 2em 0 2.5em; }
.home-section > h2 { font-size: 1.3em; margin: 0 0 .5em; }
.home-section > h2 a { color: inherit; text-decoration: none; }
.home-section .all { margin: .6em 0 0; font-size: .9em; }
.home li.h-entry { border-top: 0; padding: 0; }

/* A post's photos: only the first shows; the lightbox has them all. */
.group { position: relative; }
.group img ~ img { display: none; }
.group .more { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .8em; padding: 1px 6px; border-radius: 10px; }

/* Photos: one post per slide, swipe for older ones. */
.slides .track li { display: block; }
.slides .track > li { scroll-snap-align: start; }
/* Long captions are cut to two lines here; the lightbox and post page show them in full. */
.slides .e-content { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Every slide's photo gets the same box, so the slider doesn't jump in height. */
.slides .group { height: min(65vh, 460px); display: flex; align-items: center; justify-content: center; background: #f2f2f2; }
.slides .group img:first-child { max-height: 100%; width: auto; max-width: 100%; }
.slides .track { align-items: flex-start; }
.slides .prev, .slides .next { top: 35%; }
.slides .e-content p { margin: .5em 0 0; }
.slides .meta { margin: .3em 0 0; }

/* Read and Recommended: cards in a sideways row. */
.cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 8px; }
.home .cards .card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; border: 1px solid #ccc; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; }
.card h3 { font-size: 1em; margin: 0 0 .3em; }
.card .source { margin: 0; }
.card .p-summary { margin: .5em 0 0; font-size: .9em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: auto 0 0; padding-top: .5em; font-size: .85em; }

/* Collections: tiles with tags over the photo. */
.tile-img { position: relative; }
.tile .tags { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tile .tag { background: rgba(0,0,0,.6); color: #fff; font-size: .75em; padding: 1px 7px; border-radius: 10px; text-decoration: none; }
.tile .p-name { font-size: .9em; margin: .3em 0 0; }

/* Lightbox details: caption, date and tags over the bottom of the photo. */
#overlay .info { position: absolute; left: 0; right: 0; bottom: 0; max-height: 40%; overflow: auto; padding: 2.5em 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85) 35%); color: #fff; }
#overlay .info:empty { display: none; }
#overlay .info a { color: #fff; }
#overlay .info p { margin: .3em 0; }
#overlay .info .title { font-weight: bold; }
#overlay .info .tag { margin-right: .5em; }

/* ---- Wider screens (iPad, desktop): the home page fills the width ---- */
body.wide { max-width: 1400px; }
@media (min-width: 700px) {
  body.wide { padding: 0 24px; }
  /* Text-only lists stay at a readable width. */
  .home .article .p-summary, .home .note .e-content { max-width: 680px; }
  .home .cards .card { flex-basis: 300px; }
  .home-grid { columns: 3 220px; }
}
@media (min-width: 900px) {
  /* Two photos side by side; swipe moves one at a time. */
  .slides .track > li { flex-basis: 50%; padding: 0 6px; box-sizing: border-box; }
  .slides .group { height: min(60vh, 520px); }
  .home-grid { columns: 4 220px; }
}
@media (min-width: 1300px) {
  .slides .track > li { flex-basis: 33.333%; }
  .home-grid { columns: 5 220px; }
}

/* ---- Rides ---- */
.ride-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; margin: 1em 0; }
.ride-stats div { margin: 0; }
.ride-stats dt { font-size: .8em; color: #666; }
.ride-stats dd { margin: 0; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.charts { display: grid; gap: 16px; }
.chart { margin: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 0 .6em; align-items: baseline; font-size: .9em; }
.chart .name { font-weight: 600; }
.chart .range, .chart .axis { color: #666; font-size: .85em; }
.chart .readout { margin-left: auto; font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; height: 90px; touch-action: pan-y; cursor: crosshair; border-bottom: 1px solid #ddd; }
.chart polyline { stroke: #2f6fb0; stroke-width: 2px; stroke-linejoin: round; }
.chart .cursor { stroke: #999; stroke-width: 1px; display: none; }
.chart .axis { display: flex; justify-content: space-between; margin: 2px 0 0; }
table.data { border-collapse: collapse; font-size: .9em; font-variant-numeric: tabular-nums; margin: .5em 0 1em; }
table.data th, table.data td { padding: 3px 10px 3px 0; text-align: left; border-bottom: 1px solid #eee; }
details { margin: 1em 0; }
details table.data { display: block; max-height: 360px; overflow: auto; }

/* ---- Home section colours: each section is a tinted band ---- */
.home-section { border-radius: 12px; padding: 16px 16px 12px; margin: 0 0 20px; }
.home-section > h2 a { text-decoration: none; }
.photos-section { background: #2b2b2b; color: #f2f2f2; }
.photos-section a { color: #a9cdf5; }
.photos-section a:visited { color: #c9b6f2; }
.photos-section .meta, .photos-section .count { color: #bdbdbd; }
.photos-section .slides .group { background: #1e1e1e; }
.bookmarks-section { background: #fbe8ee; }
.bookmarks-section .card { background: #fff; border-color: #efc9d5; }
.collections-section { background: #e2f4eb; }
.home-section.ride { background: #ececea; }
.home-section.article { background: #faf3d9; }
.home-section.note { background: #eeebf7; }
/* Entries inside a tinted section don't need their own divider lines. */
.home-section .h-entry { border-top-color: rgba(0,0,0,.12); }
.home-section .h-entry:first-of-type { border-top: 0; padding-top: .5em; }
@media (max-width: 699px) {
  .home-section { padding: 12px 12px 8px; }
}

/* ---- Header and fixed home photo ---- */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.site-header { text-align: center; margin: 1.5em 0 2em; }
/* One line at every width: the size scales with the screen. */
.site-header h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 6.8vw, 4.5rem); line-height: 1.1; white-space: nowrap; margin: 0 0 .5em; letter-spacing: -.01em; }
.site-header h1 a { color: inherit; text-decoration: none; }
/* Small photo, links home on every page.
   Phone: sits at the top and scrolls away, so content gets the full width.
   Wider screens: fixed top left in its own gutter, stays put when scrolling. */
.home-photo { position: absolute; top: 12px; left: 16px; z-index: 10; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.home-photo img { width: 100%; height: 100%; object-fit: cover; }
body { padding-top: 84px; }
@media (min-width: 700px) {
  .home-photo { position: fixed; top: 16px; left: 16px; width: 72px; height: 72px; }
  body { padding-top: 0; }
  body, body.wide { padding-left: 104px; }
}
/* Narrow pages already have wide side margins on big screens. */
@media (min-width: 1000px) { body:not(.wide) { padding-left: 16px; } }

/* Home heading sits level with the corner photo: same top and height,
   text centred vertically in that box. */
.site-header { display: flex; align-items: center; justify-content: center; height: 60px; margin: 12px 0 1em; padding: 0 16px 0 84px; }
.site-header h1 { margin: 0; font-size: clamp(1.1rem, 5.6vw, 4.5rem); }
body.wide { padding-top: 0; }
@media (min-width: 700px) {
  .site-header { height: 72px; margin: 16px 0 1.5em; padding: 0 24px 0 104px; }
}

/* Home page: section colours run edge to edge, no gaps, no rounded corners.
   The page itself has no side padding; each section pads its own content. */
body.wide { max-width: none; padding: 0; }
.home-section { border-radius: 0; margin: 0; padding: 16px 16px 12px; }
@media (min-width: 700px) {
  body.wide { padding: 0; }
  .home-section { padding: 20px 24px 16px 104px; }
}

/* Home section headings: bolder, thin rule underneath, description on the same line. */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .8em; border-bottom: 1px solid currentColor; padding-bottom: .4em; margin: 0 0 .8em; }
.section-head h2 { font-size: 1.3em; font-weight: 800; margin: 0; }
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head .blurb { margin: 0; font-size: .9em; opacity: .75; }

/* Section titles: all caps, 15% bigger. */
.section-head h2 { font-size: 1.5em; text-transform: uppercase; letter-spacing: .03em; }

/* Articles: two across on iPad and computer. */
@media (min-width: 700px) {
  .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .home-section .two-up .h-entry { border-top: 0; padding-top: .5em; }
}

/* Topics: one tile per tag, name then a short description. */
.topics-section { background: #ececea; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.topics li { background: #fff; border: 1px solid #d6d6d2; border-radius: 8px; padding: 10px 12px; }
.topics a { font-weight: 700; text-decoration: none; color: #222; }
.topics .blurb { margin: .3em 0 0; font-size: .85em; color: #666; }

/* Links: on hover, tap or keyboard focus they turn the opposite colour
   of their section's background, so they stand out. */
.home-section { --hover: #c2185b; }
.photos-section { --hover: #ffd23f; }       /* dark grey  -> bright yellow */
.bookmarks-section { --hover: #0a7a4a; }    /* pink       -> green */
.collections-section { --hover: #c2185b; }  /* mint green -> raspberry */
.topics-section { --hover: #d0451b; }       /* grey       -> orange */
.home-section.article { --hover: #3b3bc4; } /* pale yellow -> blue-violet */
.home-section.note { --hover: #8a6d00; }    /* lavender   -> deep gold */
.home-section a { transition: color .15s; }
.home-section a:hover, .home-section a:focus-visible, .home-section a:active { color: var(--hover); }
.site-header h1 a:hover, .site-header h1 a:focus-visible { color: #c2185b; }

/* Notes: tiles, one column on phones, two on iPad, three on computer. */
.note-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
.home-section .note-tiles .h-entry { background: #fff; border: 1px solid #d9d4ec; border-radius: 8px; padding: 12px 14px; min-width: 0; }
.home-section .note-tiles .h-entry p:first-child { margin-top: 0; }
.home .note-tiles .e-content { max-width: none; }
@media (min-width: 700px) { .note-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .note-tiles { grid-template-columns: 1fr 1fr 1fr; } }

/* Photos section: half as dark as before (#2b2b2b → mid grey).
   Light text doesn't read on mid grey, so text goes dark; hover goes white. */
.photos-section { background: #959595; color: #111; --hover: #fff; }
.photos-section a { color: #0b2f6b; }
.photos-section a:visited { color: #3d1f6e; }
.photos-section .meta, .photos-section .count { color: #262626; }
.photos-section .slides .group { background: #868686; }

/* Notes: masonry. Columns instead of a grid, so a short note lets the
   next one rise up to meet it. */
.note-tiles { display: block; columns: 1; column-gap: 12px; }
.home-section .note-tiles .h-entry { break-inside: avoid; margin: 0 0 12px; display: block; }
@media (min-width: 700px) { .note-tiles { columns: 2; } }
@media (min-width: 1000px) { .note-tiles { columns: 3; } }

/* ---- Home sections: all white, a thick black line between sections ---- */
.home-section, .photos-section, .bookmarks-section, .collections-section,
.topics-section, .home-section.article, .home-section.note, .home-section.ride { background: #fff; color: inherit; }
.home-section + .home-section { border-top: 6px solid #000; }
/* Undo the old dark/grey photos-section colours. */
.photos-section a { color: revert; }
.photos-section a:visited { color: revert; }
.photos-section .meta, .photos-section .count { color: #666; }
.photos-section .slides .group { background: #f2f2f2; }
/* On white, every section's links turn the same strong colour on hover. */
.home-section, .photos-section, .bookmarks-section, .collections-section,
.topics-section, .home-section.article, .home-section.note { --hover: #c2185b; }
.bookmarks-section .card { border-color: #ccc; }

/* Section titles in the header's font (Fraunces), still all caps. */
.section-head h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: .04em; }

/* Section titles never wrap: on narrow screens they shrink to fit
   (all titles together, so they stay the same size as each other). */
.section-head h2 { white-space: nowrap; font-size: min(1.5em, 5.3vw); }

/* Section descriptions: Fraunces italic. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
.section-head .blurb { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1em; opacity: .8; }

/* ---- Home page filter buttons ---- */
[hidden], .extra { display: none !important; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 16px 1.5em; }
.filters button { font: inherit; font-size: .9em; padding: 6px 14px; border: 1.5px solid #000; border-radius: 999px; background: #fff; color: #000; cursor: pointer; }
.filters button[aria-pressed="true"] { background: #000; color: #fff; }
.filters button:hover, .filters button:focus-visible { border-color: #c2185b; color: #c2185b; }
.filters button[aria-pressed="true"]:hover { color: #fff; background: #c2185b; }
@media (min-width: 700px) { .filters { margin: 0 24px 2em 104px; } }

/* Article teasers: first photo as a small thumbnail, right of the text. */
.teaser-img { float: right; width: 34%; max-width: 160px; margin: .3em 0 .5em 14px; }
.teaser-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.h-entry.article::after { content: ""; display: block; clear: both; }

/* Section titles: the font's normal letter spacing. */
.section-head h2 { letter-spacing: 0; }

/* Masonry grids (site.js places the tiles); CSS columns are the no-JS fallback. */
.grid.masonry { columns: auto; position: relative; }
.grid.masonry > li { position: absolute; margin: 0; box-sizing: border-box; }
/* Collection tiles hold only the photo and its tags. */
.tile .p-name { display: none; }

/* Topics tiles: just the tag name. On screens with a mouse, the description
   shows on hover; everywhere, it shows at the top of the tag's page. */
.topics .blurb { display: none; font-family: "Fraunces", Georgia, serif; font-style: italic; }
@media (hover: hover) {
  .topics li:hover .blurb, .topics li:focus-within .blurb { display: block; }
}
.tag-desc { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.1em; margin: -.3em 0 .5em; }

/* Read and Recommended: link-preview image (the linked site's own share image). */
.preview { display: block; margin: 0 0 .5em; }
.preview img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
.h-entry.bookmark .preview { max-width: 480px; }
/* No preview image: a plain tile with the source's name, same shape as an image. */
.preview.placeholder { aspect-ratio: 1.91 / 1; border-radius: 6px; background: #f2efe8; display: flex; align-items: center; justify-content: center; padding: 0 12px; text-decoration: none; color: #222; box-sizing: border-box; }
.h-entry.bookmark .preview.placeholder { max-width: 480px; }
.preview-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.6em; line-height: 1.1; text-align: center; }
.preview.placeholder:hover { color: var(--hover, #c2185b); }

/* Read and Recommended page: the home page's cards as a grid.
   One across on phones, 3 on an iPad upright, 4 on an iPad sideways. */
.card-grid { list-style: none; margin: 1em 0 2em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card-grid .card { width: auto; margin: 0; }
body.wide-page { max-width: 1400px; }
@media (min-width: 1000px) { body.wide-page { padding-left: 104px; } }
.card-grid .card { border: 1px solid #ccc; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; background: #fff; }
/* Phones: two smaller cards across. */
@media (max-width: 599px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-grid .card { padding: 8px; font-size: .9em; }
  .card-grid .preview-name { font-size: 1.1em; }
  .card-grid .p-summary { -webkit-line-clamp: 3; }
}

/* Quote tiles in Collections: the words themselves, no photo. */
.quote-card { display: block; background: #f2efe8; border-radius: 6px; padding: 18px 16px 40px; color: #222; text-decoration: none; }
.quote-card blockquote { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.15em; line-height: 1.3; }
.quote-card blockquote::before { content: "“"; }
.quote-card blockquote::after { content: "”"; }
.quote-who { margin: .6em 0 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: .9em; }
.quote-who::before { content: "— "; }
.quote-card:hover { color: var(--hover, #c2185b); }
/* Quotes on post pages */
.h-entry blockquote { font-family: "Fraunces", Georgia, serif; font-size: 1.15em; border-left: 3px solid #ddd; margin: 1em 0; padding-left: 14px; }
.quote-card blockquote { border: 0; padding: 0; margin: 0; }

/* Comments: approved email replies, then the reply link. */
.comments { margin: 2em 0 1em; padding-top: 1em; border-top: 1px solid #ddd; }
.comments h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.1em; text-transform: uppercase; margin: 0 0 .8em; }
.reply a { font-weight: 700; }
.reply span { display: block; font-size: .85em; color: #666; margin-top: .2em; }

/* Private section: a faint lock at the end of the public filter buttons. */
.private-lock { display: inline-flex; align-items: center; padding: 6px 8px; color: #e4e4e4; text-decoration: none; }
.private-lock:hover, .private-lock:focus-visible { color: #888; }
.private-header h1 { white-space: normal; }
/* Read and Recommended card with no link but a quote: the quote is the picture */
.card .preview.quote-card { padding: 16px 14px; margin: 0 0 .5em; }
.card .preview.quote-card blockquote { font-size: 1em; }
/* Long notes on the home pages: cap at about half the screen, fade, link to the post */
.home-section .note-tiles .e-content { max-height: 50vh; overflow: hidden; }
.home-section .note-tiles .e-content.clipped { -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.note-tiles .more-link { margin: .3em 0 .4em; font-size: .9em; }
/* Collections pages: up to four columns where the screen allows (iPad and up) */
.wide-page .grid { columns: 2 150px; }
@media (min-width: 700px) { .wide-page .grid { columns: 4 160px; } }
/* Route map (plain line, no tiles) */
.route { margin: 1em 0; }
.route svg { width: 100%; height: auto; background: #f4f1ea; border-radius: 6px; }
.route polyline { stroke: #c2185b; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.route figcaption { font-size: .8em; color: #666; margin-top: .3em; }
.related { margin-top: .6em; }
/* Ride report (article about a ride) */
.ride-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6em 1.2em; margin: .8em 0 1em; }
.ride-facts dt { font-size: .78em; color: #666; }
.ride-facts dd { margin: 0; font-size: 1.05em; }
.route-map { margin: 1em 0; }
.route-map img { width: 100%; height: auto; border-radius: 6px; display: block; }
.route-map figcaption, .route figcaption { font-size: .8em; color: #666; margin-top: .35em; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: -.05em; border: 2px solid #fff; box-shadow: 0 0 0 1px #bbb; }
.dot.start { background: #2e7d32; } .dot.finish { background: #c62828; }
.route circle.start { fill: #2e7d32; stroke: #fff; stroke-width: 2; }
.route circle.finish { fill: #c62828; stroke: #fff; stroke-width: 2; }
details.fitness { margin: 1.4em 0; border-top: 1px solid #ddd; padding-top: .6em; }
details.fitness > summary { cursor: pointer; font-weight: 600; font-size: 1.05em; }
/* Article lead photo, full width under the site header */
.hero { position: relative; width: 100vw; margin: 0 0 1.2em calc(50% - 50vw); }
.hero > img { width: 100%; max-height: 80vh; object-fit: cover; display: block; cursor: zoom-in; }
.hero .view-all { top: auto; left: auto; height: auto; width: auto; transform: none; position: absolute; right: 1em; bottom: 1em; background: rgba(0,0,0,.65); color: #fff; border: 0;
  border-radius: 4px; padding: .45em .8em; font: inherit; font-size: .85em; cursor: pointer; }
.article .meta.tags { margin: .2em 0 0; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
.article .meta.tags + .meta { margin-top: .2em; }
html { overflow-x: clip; }
/* Videos (Instagram imports): poster frame, plays in place */
.photos.video video { width: 100%; height: auto; display: block; background: #000; border-radius: 4px; }

/* Future Discussion and Comments: date on the left, a running timeline */
.comment-list { list-style: none; margin: 0 0 1em; padding: 0; }
.comment-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 1em; padding: .7em 0; border-top: 1px solid #eee; }
.comment-list li:first-child { border-top: 0; }
.comment-list time { font-weight: 600; font-size: .95em; line-height: 1.5; }
.comment-list .comment-by { margin: 0 0 .25em; font-size: .85em; color: #666; }
.comment-list .e-content p { margin: 0 0 .6em; }
.comment-list li.update .comment-by { color: #222; font-weight: 600; }
@media (max-width: 480px) { .comment-list li { grid-template-columns: 1fr; gap: .2em; } }
/* Photos page: one column, like Instagram, with where each post came from */
.photo-feed { list-style: none; margin: 0; padding: 0; max-width: 34em; }
.photo-feed > li { margin: 0 0 2.4em; }
.photo-feed .source { display: flex; align-items: center; gap: .6em; margin: 0 0 .5em; font-size: .9em; }
.photo-feed .avatar { display: inline-block; width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: #fff; box-shadow: 0 0 0 1px #ddd; }
.photo-feed .avatar img { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-sizing: content-box; margin: -2px; object-fit: cover; }
.photo-feed .avatar.ring { box-shadow: none; padding: 3px; background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 55%, #962fbf 78%, #4f5bd5); }
.photo-feed .who { display: flex; flex-direction: column; line-height: 1.25; }
.photo-feed .who span { color: #666; font-size: .9em; }
.photo-feed .h-entry { margin: 0; padding: 0; border: 0; }
.photo-feed .type { display: none; }
.card[data-href] { cursor: pointer; }
