/* ==========================================================================
   Chantal Ortega — photo gallery redesign
   Loaded after poole.css; overrides the old Hyde sidebar theme.
   ========================================================================== */

:root {
  --teal: #49757a;
  --teal-dark: #3a5f63;
  --teal-tint: #eaf1f1;
  --ink: #1d1f21;
  --muted: #6b7280;
  --line: #e7e7e4;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --read: 720px;
}

html { font-family: var(--sans); font-size: 15px; }
@media (min-width: 38em) { html { font-size: 16px; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

a { color: var(--teal); text-decoration: none; }
a:hover, a:focus { color: var(--teal-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------- Top nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-nav__brand:hover { color: var(--teal); text-decoration: none; }
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav__menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-nav__menu a:hover { color: var(--teal); text-decoration: none; }
.site-nav__menu a.active { color: var(--ink); }
.site-nav__social { display: inline-flex; gap: 0.75rem; }
.site-nav__social a { color: var(--muted); font-size: 1rem; }
.site-nav__social a:hover { color: var(--teal); }

/* mobile menu toggle */
.site-nav__toggle-cb, .site-nav__toggle { display: none; }

@media (max-width: 40em) {
  .site-nav__toggle {
    display: inline-flex;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.2rem;
  }
  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__toggle-cb:checked ~ .site-nav__menu { display: flex; }
}

/* --------------------------------------------------------------- Layout */
.content { min-height: 60vh; }

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.hero--compact { padding: 2.5rem 1.5rem 1.5rem; }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.4rem;
  line-height: 1.05;
}
.hero__tagline { color: var(--muted); font-size: 1.05rem; margin: 0; }
.hero__intro { color: var(--muted); max-width: var(--read); margin: 0.75rem auto 0; }

/* --------------------------------------------------------------- Posts timeline */
.timeline {
  max-width: 760px;
  margin: 0.5rem auto 3rem;
  padding: 0 1.5rem;
}
.timeline__year { margin-bottom: 2.75rem; }
.timeline__year-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.timeline__list { list-style: none; padding: 0; margin: 0; }

.tl { border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: none; }
.tl__link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem 0.4rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.tl__link:hover { text-decoration: none; background: var(--bg-soft); }
.tl__thumb {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--teal-tint);
}
.tl__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.tl__link:hover .tl__thumb img { transform: scale(1.09); }
.tl__body { display: flex; flex-direction: column; min-width: 0; }
.tl__title {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.tl__link:hover .tl__title { color: var(--teal); }
.tl__meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.tl__sep { margin: 0 0.4rem; }

/* --------------------------------------------------------------- World map */
.worldmap {
  position: relative;
  max-width: 1000px;
  margin: 0.5rem auto 2.5rem;
  padding: 0 1.5rem;
}
.worldmap svg { width: 100%; height: auto; display: block; }
.worldmap path { fill: #e7e4df; stroke: #fff; stroke-width: 0.5; transition: fill 0.2s ease; }
.worldmap .visited, .worldmap .visited path { fill: var(--teal); }
.worldmap .visited:hover, .worldmap .visited:hover path { fill: var(--teal-dark); }
.worldmap__tip {
  position: absolute;
  transform: translate(-50%, -140%);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

/* --------------------------------------------------------------- Explore atlas */
.atlas {
  max-width: var(--wrap);
  margin: 0.5rem auto 3rem;
  padding: 0 1.5rem;
}
.atlas__region { margin-bottom: 3rem; }
.atlas__region-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.atlas__countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem 2rem;
}
.country__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.country__head:hover { text-decoration: none; }
.country__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.country__head:hover .country__name { color: var(--teal); }
.country__count {
  flex: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.country__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}
.country__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--teal-tint);
  display: block;
}
.country__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.country__thumb:hover img { transform: scale(1.09); }

/* --------------------------------------------------------------- Homepage landing */
.home-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}
.home-intro__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 0 auto 0.9rem;
  max-width: 46ch;
}
.home-intro .about__links { justify-content: center; }


.feature {
  position: relative;
  display: block;
  width: calc(100% - 3rem);
  max-width: var(--wrap);
  margin: 1.25rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--teal-tint);
}
.feature__img {
  width: 100%;
  height: clamp(320px, 56vh, 560px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature:hover { text-decoration: none; }
.feature:hover .feature__img { transform: scale(1.03); }
.feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 80%);
}
.feature__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: 0.5rem;
}
.feature__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.08;
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.feature__meta {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.home-section__head {
  max-width: var(--wrap);
  margin: 2.75rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.home-section__title { font-size: 1.4rem; margin: 0; }
.home-section__link {
  flex: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.home-section__link:hover { color: var(--teal-dark); text-decoration: none; }

.region-strip {
  max-width: var(--wrap);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 40em) { .region-strip { grid-template-columns: repeat(2, 1fr); } }
.region-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal-tint);
}
.region-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.region-card:hover img { transform: scale(1.06); }
.region-card__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 68%);
}
.region-card__name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.region-card__count { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.88; margin-top: 0.15rem; }

/* --------------------------------------------------------------- Magazine feed (legacy) */
.feed {
  max-width: 880px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.feed__item {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}
.feed__item:last-child { border-bottom: none; }

.feed__head { margin-bottom: 0.9rem; }
.feed__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  margin: 0;
}
.feed__title a { color: var(--ink); }
.feed__title a:hover { color: var(--teal); text-decoration: none; }
.feed__meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feed__meta .dot { margin: 0 0.4rem; }

.feed__excerpt {
  color: #55535c;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 1.3rem;
  max-width: 62ch;
}

/* 3-image editorial collage: one large + two stacked */
.feed__images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.3rem;
}
.feed__img { display: block; overflow: hidden; border-radius: 10px; background: var(--teal-tint); }
.feed__img:first-child { grid-row: 1 / 3; }
.feed__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.feed__img:hover img { transform: scale(1.04); }

/* fallback when a post has 1–2 images */
.feed__images--row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  grid-template-rows: auto;
  aspect-ratio: auto;
}
.feed__images--row .feed__img { aspect-ratio: 3 / 2; }
.feed__images--row .feed__img:first-child { grid-row: auto; }

.feed__more {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.feed__more:hover { color: var(--teal-dark); text-decoration: none; }

@media (max-width: 34em) {
  .feed__images { aspect-ratio: 4 / 3; gap: 0.4rem; }
  .feed__title { font-size: 1.4rem; }
}

/* --------------------------------------------------------------- Gallery */
.gallery {
  max-width: var(--wrap);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
@media (max-width: 40em) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0 0.75rem; }
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--teal-tint);
}
.tile:hover { text-decoration: none; }
.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tile__img--empty {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}
.tile:hover .tile__img { transform: scale(1.05); }

.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile:hover .tile__overlay,
.tile:focus .tile__overlay { opacity: 1; }
.tile__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.tile__date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 0.3rem;
}
/* Always show a subtle label on touch devices */
@media (hover: none) {
  .tile__overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%); }
}

/* --------------------------------------------------------------- Post page */
.post {
  max-width: var(--read);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.post__header { text-align: center; margin-bottom: 2rem; }
.post__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1; margin: 0 0 0.6rem; }
.post__tagline { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.2rem; margin: 0.25rem 0; }
.post__meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post__meta .dot { margin: 0 0.4rem; }

.post__body { font-size: 1.05rem; }
.post__body p { margin-bottom: 1.4rem; }
.post__body a { text-decoration: underline; text-underline-offset: 2px; }

/* Photos inside posts */
.post__body figure, .post__body p > a > img, .post__body img {
  border-radius: 10px;
}
.post__body a > img { display: block; margin: 1.5rem auto; box-shadow: 0 8px 30px rgba(0,0,0,0.10); }
.post__body figure { margin: 1.75rem 0; }
.caption, .post__body figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
}

.post--page .post__body img.center { border-radius: 50%; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.post--page .post__header { margin-bottom: 1.5rem; }

.post__body blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1.1rem;
  margin-left: 0;
  color: var(--muted);
  font-style: italic;
}
.post__body hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* --------------------------------------------------------------- Tags */
ul.tags { list-style: none; padding: 0; margin: 2rem 0 0; text-align: center; }
ul.tags li { display: inline-block; margin: 0.25rem 0.15rem; }
a.tag-link {
  background: var(--teal-tint);
  color: var(--teal-dark) !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
a.tag-link:hover { background: var(--teal); color: #fff !important; text-decoration: none; }

/* --------------------------------------------------------------- Share */
.share-buttons { text-align: center; font-size: 1.6rem; margin-top: 2.5rem; }
.share-buttons a { padding: 0 0.5rem; color: var(--muted); }
.share-buttons a:hover { color: var(--teal); }

/* --------------------------------------------------------------- Post nav */
.post__nav {
  display: grid;
  gap: 0.75rem;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 40em) { .post__nav { grid-template-columns: 1fr 1fr; } }
.post__nav-link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: right;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.post__nav-link--prev { text-align: left; order: -1; }
.post__nav-link:hover { border-color: var(--teal); background: var(--bg-soft); text-decoration: none; }
.post__nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.post__nav-title { font-family: var(--serif); color: var(--ink); }

/* --------------------------------------------------------------- Comments */
.comments { margin-top: 3rem; padding-top: 1rem; }
.comments h2 { font-size: 1.3rem; }

/* --------------------------------------------------------------- Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 2rem auto 3rem;
}
.pagination li { list-style: none; }
.pagination li a, .pagination li.active a {
  display: block;
  padding: 0.5em 0.9em;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid var(--line);
}
.pagination li a:hover { background: var(--teal-tint); text-decoration: none; }
.pagination li.active a { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination li.disabled a { color: #c9c9c9; pointer-events: none; }

/* --------------------------------------------------------------- About */
.about { max-width: var(--read); margin: 0 auto; padding: 2.5rem 1.5rem 1rem; }
.about__hero { text-align: center; margin-bottom: 2.5rem; }
.about__photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  margin-bottom: 1.25rem;
}
.about__name { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 0.5rem; line-height: 1.1; }
.about__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34ch;
  margin: 0 auto 1.25rem;
  line-height: 1.4;
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.about__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}
.about__links a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; background: var(--bg-soft); }
.about__body { font-size: 1.05rem; }
.about__body h3 { margin-top: 2rem; font-family: var(--serif); }
.about__body ul { padding-left: 1.1rem; }
.about__body li { margin-bottom: 0.6rem; }
.about__body hr { border: none; border-top: 1px solid var(--line); margin: 2.25rem 0; }

/* --------------------------------------------------------------- Lightbox */
.post__body .lb-item { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 12, 20, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__cap { color: #e8e6f0; font-size: 0.85rem; text-align: center; max-width: 80vw; }
.lightbox__close {
  position: fixed; top: 0.75rem; right: 1.25rem;
  font-size: 2.2rem; line-height: 1;
  color: #fff; background: none; border: none; cursor: pointer; opacity: 0.8;
}
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-size: 2.6rem; color: #fff; background: none; border: none; cursor: pointer;
  opacity: 0.65; padding: 1rem;
}
.lightbox__prev { left: 0.25rem; }
.lightbox__next { right: 0.25rem; }
.lightbox__nav:hover, .lightbox__close:hover { opacity: 1; }
@media (max-width: 40em) { .lightbox__nav { font-size: 1.9rem; padding: 0.5rem; } }

/* --------------------------------------------------------------- Footer */
footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }

/* --------------------------------------------------------------- Randomize */
#randomize, #randomize2 {
  font-family: var(--sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
#randomize:hover, #randomize2:hover { background: var(--teal-dark); }
#randomize:active, #randomize2:active { transform: translateY(1px); }

#images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  /* break out of the narrow reading column to the full site width */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), calc(100vw - 3rem));
  margin: 1.5rem 0;
}
@media (max-width: 40em) { #images { grid-template-columns: 1fr; } }
#images a { display: block; }
#images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}
