/* archive pages — list of past making/walking entries */

body.archive {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 30px 100px;
}

/* centered header — same arrangement as the rest energy page */
.archive-header {
  position: relative;
  text-align: center;
  margin-bottom: 44px;
  padding-top: 4px;
}

.archive-back {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.archive-back:hover {
  color: var(--text-bright);
  text-decoration: underline;
}

.archive-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.archive-title img.section-label-img {
  height: 100px;
  width: auto;
  display: block;
}

.archive-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
}

.archive-empty {
  font-style: italic;
  color: var(--text-muted);
  padding: 40px 0;
  text-align: center;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.archive-entry {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.archive-entry-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.archive-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
}

.archive-caption {
  font-size: 0.85rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--text-main);
  max-width: 600px;
}

.archive-caption strong { font-style: normal; font-weight: 700; }
.archive-caption em { font-style: italic; }

.archive-link {
  display: inline-block;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(244, 237, 228, 0.3);
  text-underline-offset: 3px;
}

.archive-link:hover {
  color: var(--text-bright);
  text-decoration-color: var(--text-bright);
}

.archive-loading {
  font-style: italic;
  color: var(--text-muted);
  padding: 20px 0;
  text-align: center;
}

@media (max-width: 600px) {
  body.archive { padding: 32px 18px 60px; }
  .archive-photo { width: 140px; height: 140px; }
}

/* ---------- making gallery (photo grid + lightbox) ---------- */
.gal-grid {
  columns: 3 230px;
  column-gap: 18px;
}

.gal-entry {
  break-inside: avoid;
  margin: 0 0 24px;
  display: inline-block;
  width: 100%;
}

/* gallery photos = simple prints, natural aspect (matches homepage) */
.gal-photos { display: block; }

.gal-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gal-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

/* multiple photos = loose stack, slightly askew (matches homepage) */
.gal-photos.photo-pile { position: relative; height: 200px; }
.gal-photos.photo-pile .gal-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: 68%;
  max-height: 160px;
}
.gal-photos.photo-pile .gal-photo:nth-child(1) { transform: rotate(-6deg); z-index: 1; top: 12px; left: 0; }
.gal-photos.photo-pile .gal-photo:nth-child(2) { transform: rotate(5deg);  z-index: 2; top: 6px;  left: 26%; }
.gal-photos.photo-pile .gal-photo:nth-child(3) { transform: rotate(-2deg); z-index: 3; top: 0;    left: 13%; }
.gal-photos.photo-pile .gal-photo:nth-child(4) { transform: rotate(4deg);  z-index: 4; top: 10px; left: 32%; }
.gal-photos.photo-pile .gal-photo:hover { z-index: 10; transform: translateY(-2px); }

.gal-date {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 9px;
}

.gal-caption {
  font-size: 0.8rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-main);
  margin-top: 4px;
}

.gal-caption strong { font-style: normal; font-weight: 700; }
.gal-caption em { font-style: italic; }

/* (photo viewing uses the shared slideshow — photobox.css) */

@media (max-width: 600px) {
  .archive-title img.section-label-img { height: 72px; }
  .gal-grid { columns: 2 130px; column-gap: 12px; }
  .gal-photos.photo-pile { height: 140px; }
  .gal-photos.photo-pile .gal-photo { max-height: 110px; }
}

/* ---------- walking map (US states + pins) ---------- */
.walk-map {
  margin-top: 8px;
}

.us-map-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.us-map-svg path {
  fill: rgba(244, 237, 228, 0.06);
  stroke: rgba(244, 237, 228, 0.32);
  stroke-width: 0.75;
  stroke-linejoin: round;
}

.walk-pin circle {
  fill: #d4a017;
  stroke: #2d3826;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.15s ease;
}

.walk-pin:hover circle {
  fill: #f2c94c;
}

.walk-empty {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* pin popup card */
.walk-pop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.walk-pop[hidden] { display: none; }
body.walk-pop-open { overflow: hidden; }

.walk-pop-card {
  position: relative;
  background: #2d3826;
  border: 1px solid rgba(244, 237, 228, 0.2);
  border-radius: 6px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
  padding: 26px 24px 22px;
  max-width: 440px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}

.walk-pop-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.walk-pop-close:hover { color: var(--text-bright); }

.walk-pop-state {
  font-size: 1.1rem;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.walk-pop-date {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* popup photos = simple prints, natural aspect (matches homepage) */
.walk-pop-photos {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}
.walk-pop-photos[hidden] { display: none; }

.walk-pop-photo {
  display: block;
  max-width: 100%;
  max-height: 230px;
  width: auto;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.walk-pop-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

/* multiple photos = loose stack, slightly askew (matches homepage) */
.walk-pop-photos.photo-pile {
  display: block;
  position: relative;
  width: 260px;
  height: 210px;
  margin: 18px auto;
}
.walk-pop-photos.photo-pile .walk-pop-photo {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 64%;
  max-height: 165px;
}
.walk-pop-photos.photo-pile .walk-pop-photo:nth-child(1) { transform: rotate(-6deg); z-index: 1; top: 14px; left: 0; }
.walk-pop-photos.photo-pile .walk-pop-photo:nth-child(2) { transform: rotate(5deg);  z-index: 2; top: 6px;  left: 28%; }
.walk-pop-photos.photo-pile .walk-pop-photo:nth-child(3) { transform: rotate(-2deg); z-index: 3; top: 0;    left: 14%; }
.walk-pop-photos.photo-pile .walk-pop-photo:nth-child(4) { transform: rotate(4deg);  z-index: 4; top: 12px; left: 34%; }
.walk-pop-photos.photo-pile .walk-pop-photo:hover { z-index: 10; }

.walk-pop-caption {
  font-size: 0.82rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--text-main);
}
.walk-pop-caption[hidden] { display: none; }
.walk-pop-caption strong { font-style: normal; font-weight: 700; }

.walk-pop-link { margin-top: 12px; }
