/* Homepage layout only — linked from index.html */

/* 1. Top photo strip */
.home-template .top-photo-strip {
  position: relative;
  width: 100%;
  background: #fff;
}

.home-template .top-photo-strip .top-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.home-template .top-photo-strip .top-carousel-track::-webkit-scrollbar {
  display: none;
}

.home-template .top-strip-slide {
  flex: 0 0 auto;
  display: block;
  width: clamp(200px, 22vw, 320px);
  height: clamp(150px, 20vw, 240px);
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--blue);
}

.home-template .top-strip-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 0;
}

.home-template .top-photo-strip .top-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.home-template .top-photo-strip .top-carousel-arrow--prev {
  left: 10px;
}

.home-template .top-photo-strip .top-carousel-arrow--next {
  right: 10px;
}

/* 2. Navigation — centered like original FLER layout */
.home-template .site-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 8%;
  border-bottom: 1px solid #ececec;
  text-align: center;
}

.home-template .site-menu .brand {
  margin: 0 auto;
}

.home-template .site-nav {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* 3. Slogan */
.home-template .home-slogan {
  padding: 72px 11% 48px;
  margin: 0;
  text-align: center;
  font-family: Butler, Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: none;
}

.home-template .home-slogan mark {
  background: linear-gradient(to top, var(--yellow) 42%, transparent 42%);
  padding: 0 6px;
}

/* 4. Editorial grid */
.home-template .home-frame {
  width: 100%;
}

.home-template .home-grid {
  padding-top: 0;
  padding-bottom: 48px;
}

.home-template .home-grid .category-card h2 {
  font-family: Butler, Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
  text-transform: none;
}

/* 5. Featured band */
.home-template .home-featured {
  padding: 0 0 56px;
}

.home-template .home-featured .category-card.c5 {
  margin: 0;
  padding: 90px 18vw 50px;
}

.home-template .home-featured .home-papi-thumb {
  background: var(--blue);
}

.home-template .home-featured .home-papi-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: var(--blue);
  border: 0;
}

/* 6. Popular posts */
.home-template .home-frame .popular-posts {
  width: min(980px, 88%);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 72px;
}

.home-template .popular-grid .popular-card-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-template .popular-grid .popular-card-link img {
  transition: transform 220ms ease, opacity 220ms ease;
}

.home-template .popular-grid .popular-card-link:hover img {
  transform: scale(1.02);
  opacity: 0.95;
}

@media (min-width: 769px) {
  .home-template .popular-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.home-template .site-footer {
  width: 100%;
}

@media (max-width: 900px) {
  .home-template .site-menu {
    padding: 20px 16px;
  }

  .home-template .home-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-template .home-featured .category-card.c5 {
    margin: 0 -24px;
    padding: 70px 24px 40px;
  }
}

@media (max-width: 768px) {
  .home-template .top-photo-strip .top-carousel-track {
    gap: 4px;
  }

  .home-template .top-strip-slide {
    width: min(72vw, 280px);
    height: 160px;
  }

  .home-template .top-photo-strip .top-carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .home-template .home-slogan {
    padding: 48px 8% 32px;
    font-size: 26px;
  }
}
