/* photos.html — styles used only on this page (Photo Albums, members only).
   Shared styles: assets/site.css. Bump ?v= on the <link> after editing. */

/* ─── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy); position: relative; overflow: hidden;
  padding: 52px 0 44px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(191,30,46,.06) 0px, rgba(191,30,46,.06) 2px,
    transparent 2px, transparent 24px
  );
}
.page-hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1; color: white;
}
.page-hero p {
  font-family: 'Nunito', sans-serif;
  font-size: 15px; color: rgba(255,255,255,.65);
  line-height: 1.6; max-width: 560px; margin-top: 14px;
}

/* ─── Search Panel ───────────────────────────────────────────── */
.search-panel {
  background: white; border: 2px solid rgba(26,35,64,.1);
  border-radius: var(--radius);
  margin: -28px 0 32px; position: relative; z-index: 2;
  box-shadow: 0 12px 32px rgba(26,35,64,.12);
}
.search-bar { display: flex; gap: 10px; padding: 20px 20px 16px; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-input-wrap::before {
  content: '⌕'; position: absolute; left: 14px; top: 50%;
  transform: translateY(-52%); font-size: 20px; color: var(--ink-light);
}
.search-input {
  width: 100%; padding: 11px 14px 11px 40px;
  font-family: 'Nunito', sans-serif; font-size: 15px; color: var(--ink);
  border: 2px solid rgba(26,35,64,.15); border-radius: var(--radius);
  background: var(--cream); transition: border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--navy); background: white; }
.filter-block { padding: 12px 20px; border-top: 1px solid var(--rule); }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-light); min-width: 56px;
}
.pill {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid rgba(26,35,64,.18); background: white;
  color: var(--ink-mid); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.on { background: var(--navy); border-color: var(--navy); color: white; }
.pill .n { font-size: 11px; font-weight: 600; opacity: .55; }
.pill.on .n { opacity: .75; }
.pill.empty { opacity: .4; }
.filter-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid var(--rule);
  background: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
}
.sort-select {
  font-family: 'Nunito', sans-serif; font-size: 13px;
  padding: 6px 10px; border-radius: var(--radius);
  border: 1.5px solid rgba(26,35,64,.18); background: white; color: var(--ink);
}
.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--red);
}
.link-btn:hover { text-decoration: underline; }


/* ─── Members-only lock ──────────────────────────────────────── */
.locked-panel {
  background: white; border: 2px solid rgba(26,35,64,.1);
  border-radius: var(--radius); text-align: center;
  max-width: 560px; margin: -28px auto 0; position: relative; z-index: 2;
  padding: 40px 28px; box-shadow: 0 12px 32px rgba(26,35,64,.12);
}
.locked-icon { font-size: 40px; margin-bottom: 10px; }
.locked-panel h2 {
  font-family: 'Oswald', sans-serif; font-size: 26px;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.locked-panel p {
  font-family: 'Nunito', sans-serif; font-size: 15px;
  color: var(--ink-mid); line-height: 1.6; margin-bottom: 22px;
}
.locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }


/* ─── Album list ─────────────────────────────────────────────── */
.main-content { padding: 0 0 72px; }
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.results-count {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.results-count span { color: var(--red); }
.results-hint { font-family: 'Nunito', sans-serif; font-size: 13px; color: var(--ink-light); }

.decade-group + .decade-group { margin-top: 36px; }
.decade-head {
  display: flex; align-items: baseline; gap: 12px;
  font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
  border-bottom: 3px solid var(--red); padding-bottom: 6px; margin-bottom: 16px;
}
.decade-head span {
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--ink-light);
}
.album-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.album-card {
  background: white; border: 2px solid rgba(26,35,64,.1);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.album-card:hover { border-color: var(--red); transform: translateY(-2px); }
.album-cover {
  aspect-ratio: 4 / 3; background: var(--cream-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(26,35,64,.2);
}
.album-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-tag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(26,35,64,.85); color: white;
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.album-body { padding: 10px 12px 12px; }
.album-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px; font-weight: 600; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); transition: color .2s; word-break: break-word;
}
.album-card:hover .album-title { color: var(--red); }
.album-count { font-family: 'Nunito', sans-serif; font-size: 13px; color: var(--ink-light); margin-top: 3px; }
.skeleton { animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }
.empty-note {
  font-family: 'Nunito', sans-serif; font-size: 15px;
  color: var(--ink-light); padding: 48px 20px; text-align: center;
  border: 2px dashed rgba(26,35,64,.12); border-radius: var(--radius);
}

/* ─── One album ──────────────────────────────────────────────── */
.album-bar {
  background: white; border: 2px solid rgba(26,35,64,.1);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(26,35,64,.12);
  margin: -28px 0 24px; position: relative; z-index: 2;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.album-bar h2 {
  font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.1;
}
.album-bar .album-meta { font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--ink-light); margin-top: 2px; }
.album-bar .album-meta a { color: var(--red); font-weight: 700; }
.album-bar .grow { flex: 1; min-width: 200px; }
.photo-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.photo-tile {
  aspect-ratio: 1; background: var(--cream-dark); border: none; padding: 0;
  position: relative; overflow: hidden; cursor: zoom-in; border-radius: 3px;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .2s; }
.photo-tile:hover img { transform: scale(1.05); opacity: .9; }
.photo-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.photo-tile.video::after {
  content: '▶'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px;
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: #0b0e18;
  display: flex; flex-direction: column; color: white;
}
.lightbox[hidden] { display: none; }
.lb-top {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  font-family: 'Nunito', sans-serif; font-size: 14px;
}
.lb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.7); }
.lb-counter { color: rgba(255,255,255,.5); letter-spacing: .08em; white-space: nowrap; }
.lb-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: white; border-radius: var(--radius); padding: 7px 12px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 0 70px 20px;
  touch-action: pan-y pinch-zoom;
}
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-spinner { position: absolute; color: rgba(255,255,255,.4); font-family: 'Nunito', sans-serif; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: white; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav:disabled { opacity: .2; cursor: default; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
body.lb-open { overflow: hidden; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .filter-label { min-width: 100%; }
  /* One swipeable line per filter instead of a tall wall of pills */
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .filter-label { position: absolute; }
  .filter-block { position: relative; padding-top: 30px; }
  .filter-block .filter-label { top: 12px; }
  .pill { flex-shrink: 0; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .album-title { font-size: 13px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .lb-stage { padding: 0 0 12px; }
  .lb-nav { display: none; }          /* swipe instead */
  .lb-top { flex-wrap: wrap; }
}
