.album-browser-modal[hidden] {
  display: none;
}

.album-browser-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.album-browser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(5px);
}

.album-browser-panel {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  max-height: 84vh;
  margin: 6vh auto 0;
  overflow: auto;
  padding: 1.25rem;
  border-radius: 26px;
  border: 1px solid rgba(212, 182, 136, 0.18);
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(9, 13, 20, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.album-browser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.album-browser-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 194, 154, 0.92);
  margin-bottom: 0.35rem;
}

.album-browser-header h3 {
  margin: 0 0 0.35rem;
  color: #f4ead7;
}

.album-browser-header p {
  margin: 0;
  color: rgba(232, 225, 214, 0.82);
}

.album-browser-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #f4ead7;
}

.album-browser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.album-browser-card-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.album-browser-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.album-browser-thumb {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
}

.album-browser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-browser-copy {
  padding: 0.95rem 1rem 1.05rem;
}

.album-browser-copy h4 {
  margin: 0 0 0.35rem;
  color: #f4ead7;
}

.album-browser-copy p {
  margin: 0;
  color: rgba(232, 225, 214, 0.78);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .album-browser-grid {
    grid-template-columns: 1fr;
  }
}

.life-archive-section {
  margin-top: 1.2rem;
}

.life-archive-section .section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.life-archive-section .section-heading {
  margin-bottom: 1.4rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(247, 158, 26, 0.18);
  background: linear-gradient(90deg, rgba(11, 10, 7, 0.06) 0%, rgba(15, 12, 8, 0.02) 18%, rgba(255, 255, 255, 0.01) 44%, rgba(0, 0, 0, 0.08) 100%), linear-gradient(180deg, rgba(8, 12, 20, 0.96), rgba(3, 7, 13, 0.985));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.life-archive-section .section-kicker,
.album-browser-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 194, 154, 0.92);
}

.life-archive-section .section-heading h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  color: #f4ead7;
}

.life-archive-section .section-heading p {
  margin: 0;
  max-width: 860px;
  line-height: 1.7;
  color: rgba(232, 225, 214, 0.86);
}

.life-archive-grid,
.album-browser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.life-card,
.pathway-card {
  position: relative;
}

.story-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d8c29a;
  border: 1px solid rgba(216, 194, 154, 0.34);
  background: rgba(216, 194, 154, 0.08);
}

.album-browser-modal[hidden] {
  display: none;
}

.album-browser-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.album-browser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(5px);
}

.album-browser-panel {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  max-height: 84vh;
  margin: 6vh auto 0;
  overflow: auto;
  padding: 1.25rem;
  border-radius: 26px;
  border: 1px solid rgba(212, 182, 136, 0.18);
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(9, 13, 20, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.album-browser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.album-browser-header h3 {
  margin: 0 0 0.35rem;
  color: #f4ead7;
}

.album-browser-header p {
  margin: 0;
  color: rgba(232, 225, 214, 0.82);
}

.album-browser-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #f4ead7;
}

.album-browser-card-button {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.album-browser-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.album-browser-thumb {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
}

.album-browser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-browser-copy {
  padding: 0.95rem 1rem 1.05rem;
}

.album-browser-copy h4 {
  margin: 0 0 0.35rem;
  color: #f4ead7;
}

.album-browser-copy p {
  margin: 0;
  color: rgba(232, 225, 214, 0.78);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .life-archive-grid,
  .album-browser-grid {
    grid-template-columns: 1fr;
  }
}