/* Album69 homepage highlights — slideshow + scrollable album.
   Calm and low-key: ivory paper, ink text, gold accents, matching
   the journal style. No animations beyond a slow crossfade. */

.home-highlights {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  font-family: "Newsreader", "Noto Serif SC", Georgia, "Songti SC", serif;
  color: var(--ink, #22303c);
}

/* ---------- Slideshow ---------- */
.home-slideshow {
  position: relative;
  margin: 0.75rem auto 0;
  border: 1px solid var(--hairline, #e7dcc4);
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy, #1e3a5f);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.25);
}

.home-slides {
  position: relative;
  height: 42vh;
  min-height: 260px;
  max-height: 440px;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--navy, #1e3a5f);
  display: block;
  transform-origin: center center;
}

/* Ken Burns: the active slide slowly zooms, like the preview. */
@keyframes home-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.home-slide.is-active img {
  animation: home-kenburns 6s ease-out forwards;
}

.home-slide--text {
  background: var(--navy, #1e3a5f);
  color: #faf6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.home-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
}

.home-slide--text .home-slide-caption {
  position: static;
  background: none;
  padding: 0;
  max-width: 36rem;
}

.home-slide-caption .home-slide-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light, #d9b36a);
}

.home-slide-caption h2 {
  margin: 0.25rem 0 0.5rem;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.25;
}

.home-slide-caption p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.home-slide-caption a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold-light, #d9b36a);
  text-underline-offset: 3px;
}

.home-slide-caption a + a {
  margin-left: 1rem;
}

.home-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.home-slide-nav:hover,
.home-slide-nav:focus-visible {
  background: rgba(0, 0, 0, 0.6);
}

.home-slide-nav--prev { left: 0.75rem; }
.home-slide-nav--next { right: 0.75rem; }

.home-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.home-slide-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.home-slide-dot.is-active {
  background: var(--gold-light, #d9b36a);
  border-color: var(--gold-light, #d9b36a);
}

.home-slide-counter {
  margin-left: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Album ---------- */
.home-album-heading {
  margin: 3rem 0 0.5rem;
  font-size: 1.75rem;
}

.home-album-intro {
  margin: 0 0 1rem;
  color: var(--muted, #6e8395);
}

.home-album-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.home-filter {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--hairline, #e7dcc4);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #22303c);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.home-filter.is-active {
  background: var(--navy, #1e3a5f);
  border-color: var(--navy, #1e3a5f);
  color: #fff;
}

.home-random {
  margin-left: auto;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent, #b0822a);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-deep, #7d5c1a);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.home-album {
  display: grid;
  gap: 1.5rem;
}

.home-card {
  border: 1px solid var(--hairline, #e7dcc4);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.home-card.is-hidden {
  display: none;
}

.home-card.is-flash {
  outline: 3px solid var(--gold-light, #d9b36a);
  outline-offset: 3px;
}

.home-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-card--text {
  background: var(--navy, #1e3a5f);
  color: #faf6ee;
}

.home-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.home-card--text .home-card-body {
  padding: 1.75rem 1.5rem;
}

.home-card-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep, #7d5c1a);
}

.home-card--text .home-card-section {
  color: var(--gold-light, #d9b36a);
}

.home-card-body h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.3;
}

.home-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.home-card-body h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent, #b0822a);
}

.home-card-body p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft, #3c4f5e);
}

.home-card--text .home-card-body p {
  color: rgba(250, 246, 238, 0.9);
}

.home-card-body .home-card-links a {
  color: inherit;
}

.home-card-body .home-card-links a + a {
  margin-left: 1rem;
}

/* ---------- Doors ---------- */
.home-doors-heading {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
}

.home-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-doors a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--hairline, #e7dcc4);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #22303c);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.home-doors a:hover {
  border-color: var(--accent, #b0822a);
  color: var(--accent-deep, #7d5c1a);
}

@media (max-width: 640px) {
  .home-slides {
    height: 42vh;
    min-height: 240px;
  }

  .home-slide-caption h2 {
    font-size: 1.35rem;
  }

  .home-random {
    margin-left: 0;
  }
}

/* ---------- Thumbnail bar (8 small cards, horizontal) ---------- */
.home-slide-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-bottom: 0;
  overflow-x: hidden;
}

.home-thumb {
  flex: 1 1 0;
  min-width: 0;
  height: 64px;
  aspect-ratio: auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy, #1e3a5f);
  cursor: pointer;
}

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

.home-thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #faf6ee;
  text-align: center;
}

.home-thumb.is-active {
  border-color: var(--gold-light, #d9b36a);
  outline: 2px solid var(--gold-light, #d9b36a);
  outline-offset: 1px;
}

.home-thumbs-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.home-thumbs-tools .home-random {
  margin-left: 0;
}

@media (max-width: 640px) {
  .home-thumbs {
    overflow-x: auto;
  }

  .home-thumb {
    flex: 0 0 120px;
    height: 72px;
    aspect-ratio: auto;
  }
}
