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

body {
  background-color: #1B1B1B;
  color: #ffffff;
  font-family: Georgia, serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 640px;
  width: 100%;
}

.fade-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  text-align: center;
}

.photo {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.photo:hover {
  box-shadow: 0 12px 56px rgba(0, 0, 0, 0.8);
  transform: scale(1.005);
}

.dates {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #aaaaaa;
  letter-spacing: 0.08em;
  text-align: center;
}

.divider {
  width: 40px;
  height: 1px;
  background: #444;
  margin: 0 auto;
}

/* ── Slideshow ────────────────────────────────────────────── */
.slideshow-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slideshow img.active {
  opacity: 1;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #ccc;
  font-size: 1rem;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }

.gallery-link a {
  font-size: 0.78rem;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.gallery-link a:visited { color: #666; }
.gallery-link a:hover { color: #aaa; }

.slide-counter {
  text-align: center;
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.1em;
}

/* ── Music player ─────────────────────────────────────────── */
.player {
  width: 100%;
  background: #242424;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-track {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #cccccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track span {
  color: #888;
  font-size: 0.75rem;
  margin-right: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-bar {
  flex: 1;
  height: 2px;
  background: #3a3a3a;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-bar-fill {
  height: 100%;
  background: #888;
  border-radius: 2px;
  width: 0%;
  transition: width 0.25s linear;
  pointer-events: none;
}

.player-time {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.05em;
  min-width: 36px;
  text-align: right;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: none;
  border: none;
  color: #aaaaaa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.player-btn:hover { color: #ffffff; }

.player-btn.play {
  width: 32px;
  height: 32px;
  border: 1px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}

.player-btn.play:hover { border-color: #aaa; }

.song-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.song-item:hover { background: #2e2e2e; }
.song-item.active { background: #2a2a2a; }

.song-num {
  font-size: 0.7rem;
  color: #555;
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

.song-item.active .song-num { color: #888; }

.song-info {
  flex: 1;
  overflow: hidden;
}

.song-title {
  font-size: 0.9rem;
  color: #cccccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-item.active .song-title { color: #ffffff; }

.song-artist {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-playing-icon {
  font-size: 0.6rem;
  color: #888;
  flex-shrink: 0;
  opacity: 0;
}

.song-item.active .song-playing-icon { opacity: 1; }

.obit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  margin-top: 8px;
}

.obit a {
  color: #aaaaaa;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  border-bottom: 1px solid #555555;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.obit a:hover {
  color: #ffffff;
  border-color: #aaaaaa;
}
