/* pahrump.photography — dark, quiet theme for mostly black & white work.
   Neutral grays only: no colored accents, so nothing tints how the photos read. */

:root {
  --bg: #141414;
  --panel: #1c1c1c;
  --line: #2c2c2c;
  --text: #d6d6d6;
  --muted: #8c8c8c;
  --bright: #f2f2f2;
  --gap: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- header / navigation ---------- */

header.site {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bright);
}
.site-title:hover { text-decoration: none; color: #fff; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--bright); }
.crumbs .sep { color: #555; }
.crumbs .here { color: var(--text); }
.crumbs .up {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 3px;
}
.crumbs .up:hover { border-color: var(--muted); text-decoration: none; }

/* ---------- page body ---------- */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.album-head { max-width: 760px; margin: 34px 0 26px; }
.album-head h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--bright);
}
.album-head.intro { margin-top: 30px; }
.album-desc { color: var(--muted); font-size: 16px; }
.album-desc p { margin: 0 0 10px; }
.album-desc a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- album (category) cards ---------- */

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px var(--gap);
  margin: 30px 0 40px;
}
.album-card { display: block; }
.album-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter .2s;
}
.album-card:hover { text-decoration: none; }
.album-card:hover img { filter: brightness(1.05); }
.album-card__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 9px;
}
.album-card__title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--bright);
}
.album-card__count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- photo grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 10px;
}
.gallery figure { margin: 0; }
.gallery a { display: block; line-height: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--panel);
  transition: opacity .2s;
}
.gallery a:hover img { opacity: .85; }
.gallery figcaption {
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

footer.site {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #666;
}

/* ---------- lightbox captions ---------- */

.pswp { --pswp-bg: #0b0b0b; }
.pswp-caption-content { display: none; }

.pswp__dynamic-caption {
  color: var(--text);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  font-size: 15px;
  line-height: 1.5;
  transition: opacity 120ms linear !important;
}
.pswp__dynamic-caption a { color: var(--bright); text-decoration: underline; }
.pswp__dynamic-caption--faded { opacity: 0 !important; }
.pswp__dynamic-caption--aside {
  width: auto;
  max-width: 320px;
  padding: 20px 20px 20px 26px;
  margin-top: 70px;
}
.pswp__dynamic-caption--below {
  width: auto;
  max-width: 720px;
  padding: 14px 0 0;
}
.pswp__dynamic-caption--on-hor-edge { padding-left: 15px; padding-right: 15px; }
.pswp__dynamic-caption--mobile {
  width: 100%;
  background: rgba(0, 0, 0, .75);
  padding: 12px 16px;
  right: 0;
  bottom: 0;
  top: auto !important;
  left: 0 !important;
}

.cap-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--bright);
  margin-bottom: 2px;
}
.cap-where {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cap-text p { margin: 0 0 8px; }
.cap-exif {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  header.site { padding: 20px 16px 14px; }
  main { padding: 0 16px 36px; }
  footer.site { padding: 16px 16px 24px; }
  .site-title { font-size: 21px; }
  .album-head h1 { font-size: 27px; }
  .album-list { grid-template-columns: 1fr; gap: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery figcaption { display: none; }
}
